フィルターのクリア

how to calculate the area of certain portion of an image ?

4 ビュー (過去 30 日間)
ajay
ajay 2014 年 1 月 2 日
コメント済み: Image Analyst 2014 年 1 月 4 日
how to calculate the area of certain portion of an image ?

採用された回答

Image Analyst
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 件のコメント
ajay
ajay 2014 年 1 月 4 日
its ok but i want the area of particular area
Image Analyst
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 ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by