bwarea & area, white/black ratio
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
dan kin
am 3 Okt. 2012
0 Stimmen
3 Kommentare
Image Analyst
am 3 Okt. 2012
Bearbeitet: Image Analyst
am 3 Okt. 2012
You are correct. It is not the white to black ratio - it is an area in pixels.
shivam sahil
am 21 Dez. 2017
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
am 22 Dez. 2017
See attached demo. Also see the function colorcloud().
Kategorien
Mehr zu Region and Image Properties finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!