Find area from a binary image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi All,
I want to calculate the Area of a region in binary image . i have used regionprops and bwarea to get the area of white region from the binary image but both of the function gives different values . i dont know how i can extract exact area from the image . please suggest me what should i have to use ?
i have attached the image as well![aaaa.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198427/image.jpeg)
![aaaa.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198427/image.jpeg)
0 comentarios
Respuestas (1)
Rik
el 6 de Dic. de 2018
I would expect you want to know the number of pixels in that blob. If that is the case, than you should use regionprops.
There is a note in the regionprops doc where it describes the area property: "Actual number of pixels in the region, returned as a scalar. (This value might differ slightly from the value returned by bwarea, which weights different patterns of pixels differently.)"
1 comentario
Rik
el 17 de Dic. de 2018
Did this suggestion solve your problem? If so, please consider marking it as accepted answer. It will make it easier for other people with the same question to find an answer. If this didn't solve your question, please comment with what problems you are still having.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!