how to calculate the area of certain portion of an image ?
1 回表示 (過去 30 日間)
古いコメントを表示
how to calculate the area of certain portion of an image ?
0 件のコメント
採用された回答
Image Analyst
2014 年 1 月 2 日
編集済み: Image Analyst
2014 年 1 月 2 日
Call regionprops(). See my Image Segmentation Tutorial. It goes over all of that:
For example with a simple thresholding:
binaryImage = grayImage > 90;
measurements = regionprops(binaryImage, 'Area');
allAreas = [measurements.Area];
2 件のコメント
Image Analyst
2014 年 1 月 4 日
Then just get it. For example to get the area of blob #42, do this
blob42area = allAreas(42);
blob42area = measurements(42).Area; % Same thing as above.
その他の回答 (0 件)
参考
カテゴリ
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!