필터 지우기
필터 지우기

How to get the region of interest(ROI) in matlab?

조회 수: 2 (최근 30일)
ezhil K
ezhil K 2019년 1월 2일
답변: Image Analyst 2019년 1월 3일
I have written a code to get the region of interest.But I dont get any output here.I have attached my code.I have also attached my input image.Can anyone help me in getting output?
I = imread('Frame 0001.png');
BW = roipoly(I);
imshow(I);
figure
imshow(BW);
Frame 0001.png
  댓글 수: 2
Matt J
Matt J 2019년 1월 2일
편집: Matt J 2019년 1월 2일
What error messages are returned? If none, then what is displayed in your second figure and what does
>> whos BW
return?
ezhil K
ezhil K 2019년 1월 3일
No error messages are returned.But I don't get aby image for second imshow().I get only the figure window alone.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2019년 1월 3일
It's doing what you told it to.
Did you actually left-click three or more points then right-click to close off the polynomial, then double click inside of the polygon to accept it?
I think you did not. I did and it did in fact show the mask binary image I drew.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by