How to select an object of a bw image
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a bw image with two blobs. I want to calculate area centroid etc. Of each individually....how can i achieve this??!
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!