How to assign a name to ROI in MATLAB?.
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a gray scale image. I want to draw multiple ROIs (impoly, imrect etc.) in the image and I have two things to do.
(1) I need to assign a particular name (Eg; ROI1, ROI2 etc.) to each ROI which is supposed to be displayed in image along with ROI.
(2) I also want to display the number of pixels in each ROI and this number should be updated whenever the position or dimension of ROI is changed.
I am stuck at this step and would really appreciate any suggestions. Thanks
댓글 수: 2
Walter Roberson
2016년 9월 5일
Is it necessary to write the information into the image itself? For example are you using imwrite() to write the annotated images? Or is it enough that it is displayed on the screen?
채택된 답변
Walter Roberson
2016년 9월 6일
text() the string into place if you only need to affect the display.
댓글 수: 5
Walter Roberson
2016년 9월 6일
roi objects do not contain any kind of "this object has changed" information, so what you could do is createMask again and compare to the previous mask.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!