How to measure the size for an irregular object on a binary image ? such perimeter and length
Show older comments
Answers (1)
Image Analyst
on 12 Jun 2020
For perimeters, use regionprops()
props = regionprops(mask, 'Perimeter');
allPerimeters = [props.Perimeter]
For Feret diameters (lengths), use bwferet().
If you want to extract only the largest blob, use bwareafilt
mask = bwareafilt(mask, 1);
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!