Area Calculation Using polyarea: Figure vs PNG
Mostrar comentarios más antiguos
I'm encountering an issue while working with the polyarea function. I've created a 2D scatter plot and used drawfreehand to select my roi and polyarea to calculate its area. However, when I save the figure as a PNG and recalculate the area from the image, the result is significantly larger. From what I can understand it has to do with how I am saving the figure to a png (?).
What I eventually want to do is have a png displaying a set of points and a figure displaying a different set of points and calculate their respective areas and compare them. The two will not be displaying the same thing necesserily so that why I need their areas to be comperable in dimensions.
I am attaching an example script.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Images 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!