I have an image of an eye. I wanted to detect and crop the conjunctival region. How should I go about this?
5 views (last 30 days)
Show older comments

0 Comments
Answers (1)
Image Analyst
on 27 Aug 2016
Try imfreehand(). Demo attached.
2 Comments
Image Analyst
on 28 Aug 2016
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?
See Also
Categories
Find more on Eye Tracking in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!