How to get the region of interest(ROI) in matlab?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
ezhil K
am 2 Jan. 2019
Beantwortet: Image Analyst
am 3 Jan. 2019
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200021/Frame%200001.png)
2 Kommentare
Akzeptierte Antwort
Image Analyst
am 3 Jan. 2019
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 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!