How to select an object of a bw image

1 回表示 (過去 30 日間)
Scrat
Scrat 2015 年 10 月 24 日
回答済み: Image Analyst 2015 年 10 月 24 日
I have a bw image with two blobs. I want to calculate area centroid etc. Of each individually....how can i achieve this??!

採用された回答

Image Analyst
Image Analyst 2015 年 10 月 24 日
With regionprops():
labeledImage = bwlabel(binaryImage);
measurements = regionprops(labeledImage, 'Area');
allAreas = [measurements.Area]
See my Image Segmentation Tutorial for a full demo: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by