How to recognize bean shaped object in image?

조회 수: 2 (최근 30일)
Yogi
Yogi 2014년 11월 30일
댓글: Lior 2014년 12월 21일
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.

답변 (1개)

Image Analyst
Image Analyst 2014년 11월 30일
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
Image Analyst
Image Analyst 2014년 12월 21일
Correct.
Lior
Lior 2014년 12월 21일
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... :)

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by