bwarea & area, white/black ratio
古いコメントを表示
Hi,
Can someone please explain me what is the difference of bwarea & area.
I have an image which is black and white (after segmentation and fill) & I wish to calculate the area of an object (as I understand done by bwarea) relative to the image area (imageArea = regionprops(image_name, 'Area')), more or less calculating the white/black ratio.
Any other ideas is welcome.
Thanks.
採用された回答
その他の回答 (1 件)
dan kin
2012 年 10 月 3 日
0 投票
3 件のコメント
Image Analyst
2012 年 10 月 3 日
編集済み: Image Analyst
2012 年 10 月 3 日
You are correct. It is not the white to black ratio - it is an area in pixels.
shivam sahil
2017 年 12 月 21 日
Hey! I want to implement the same code for RGB to get pixel count of particular rgb index, please guide me with the code for the same.
Image Analyst
2017 年 12 月 22 日
See attached demo. Also see the function colorcloud().
カテゴリ
ヘルプ センター および File Exchange で Region and Image Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!