how to mask on roi area

7 ビュー (過去 30 日間)
asthana
asthana 2014 年 2 月 19 日
コメント済み: asthana 2014 年 2 月 19 日
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.

採用された回答

Image Analyst
Image Analyst 2014 年 2 月 19 日
  1 件のコメント
asthana
asthana 2014 年 2 月 19 日
thank you very much

サインインしてコメントする。

その他の回答 (1 件)

Dishant Arora
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
  1 件のコメント
asthana
asthana 2014 年 2 月 19 日
thank you mr.dishant arora

サインインしてコメントする。

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by