HOW TO FIND THE DIAMETER FOR THE IRREGULAR SHAPE OF AN IMAGE
2 次查看(过去 30 天)
显示 更早的评论
I NEED TO FIND THE DIAMETER OF THE IRREGULAR SHAPE OF AN IMAGE?
0 个评论
回答(2 个)
David Legland
2012-10-8
Hi,
in the image processing toolbox there is a function "regionprops" that gives you the equivalent diameter of a particle. You can also access the major axis length of the inertia ellipse, that is a useful feature.
You can also consider Feret diameter, but you need to search on the FEx.
regards, David
0 个评论
Image Analyst
2012-10-8
编辑:Image Analyst
2012-10-8
See my Image Segmentation Tutorial at http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862. The function regionprops has a measurement "EquivDiameter" that you can ask for. It's basically sqrt(4*Area/pi) which is what you get for the diameter if you assume a circle of the same area as your blob.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!