calculating the area inside boundary
Mostrar comentarios más antiguos
Hi,
I am trying to find the number of pixels inside the boundary where I have the boundary points coordinates only.
actually I want to calculate the area inside the boundary. I need some help.
2 comentarios
David Barry
el 22 de Dic. de 2016
Please remove the code formatting from your question and upload some example data/code.
Image Analyst
el 22 de Dic. de 2016
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 22 de Dic. de 2016
If you have a binary image of the perimeter/boundary, you can fill it and call bwarea() or sum()
binaryImage = imfill(boundaryImage, 'holes');
area1 = sum(binaryImage(:))
area2 = bwarea(binaryImage)
Categorías
Más información sobre Elementary Polygons en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!