how to mask on roi area
显示 更早的评论
hello sir/madam i want to mask some portion of image and that portion will decide by user not me. so how to mask the portion and how to get the detail about that mask portion like area.
采纳的回答
更多回答(1 个)
Dishant Arora
2014-2-19
you can ask user to interactively specify ROI:
I = imread('fullfilename');
imshow(I)
h = imfreehand(gca);
wait(h) % waits for user to specify region of interest
bw = createMask(h) % Binary mask with 1's inside ROI
类别
在 帮助中心 和 File Exchange 中查找有关 ROI-Based Processing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!