How to recognize bean shaped object in image?

3 views (last 30 days)
Yogi
Yogi on 30 Nov 2014
Commented: Lior on 21 Dec 2014
Hi,
So far i am able to get measurements of an object in image using regionprops() but now i am not able to decide the object is of type "bean-shaped". How do i recognize it?
any type of help will be great.

Answers (1)

Image Analyst
Image Analyst on 30 Nov 2014
I'd look for a solidity in a certain range. To be more robust, so it doesn't also get things shaped like asterisks, you can get the convex hull and xor it with the blob and look for blobs (which represent bays/incursions) in a certain size range. Sorry, I don't already have code to do that, you'll have to write it. You can look at the image segmentation tutorial in my file exchange though, http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
  9 Comments
Lior
Lior on 21 Dec 2014
Maybe you can try adding properties such as: eccentricity, major/minor axis and other parameters. You can take a reference image of a ''bean-shaped'' object - apply regionprops to it and analyze the parameters you get. I would create a database of ''bean-shaped'' objects and see if there's any consistency in the properties of those images. Then I'll know what parameters to analyze. I hope I was somewhat clear... :)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!