i want to detect just the ROI from the image.

4 views (last 30 days)
In a binary image I have two objects , from which I wanted to detect just one object and neglect the others. Is there any sutomated detection to find object other tham selecting ROI by roipoly, imfreehand, roicolor etc???

Accepted Answer

Image Analyst
Image Analyst on 13 Apr 2013
There are lots of ways to define an ROI. Take a look at my BlobsDemo Image Segmentation Tutorial where I define the foreground ROI on the basis of intensity. You can also do it based on color, different from a prior frame of video, etc. etc.
If you want me to post my demo where you can extract the N largest or smallest blobs, let me know.
  1 Comment
Image Analyst
Image Analyst on 14 Apr 2013
I'm not sure what you mean. I do do that. I gave the link and in the code it shows, with comments, how the blobs are extracted by thresholding and labeling. If there is something more helpful that I can do, then let me know, but be more specific.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!