How to calculate width of a blob to the height of a blob

3 次查看(过去 30 天)
How to filter out the blobs whose width/height >=0.2

回答(1 个)

Image Analyst
Image Analyst 2014-1-15
Use regionprops to get the boundingbox. Then get the ratio. Then use ismember. See my Image Segmentation Tutorial for demonstration of that. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Community Treasure Hunt

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

Start Hunting!

Translated by