I have an image of an eye. I wanted to detect and crop the conjunctival region. How should I go about this?
5 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Image Analyst
2016-8-27
Try imfreehand(). Demo attached.
2 个评论
Image Analyst
2016-8-28
The first is just a warning that says it's shrinking your image to fit it onto the screen. You can ignore that warning.
The second one is where it tried to do regionprops to compute the area or something. It was expecting to have a gray scale image and you probably passed it the full color image. You can either do that on the 3 color channels one at a time, or you can somehow create a gray scale image, or simply just don't use regionprops. I'm not really sure what you want after you hand-draw the region. Do you want a smaller image where it has just the bounding box of the small region you traced? Or do you want to mask out (blacken) the area of your image outside the region you traced?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Eye Tracking 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
