egg.polygon.area {egg} | R Documentation |
Iteratively find the area of a polygon on the surface of the egg
egg.polygon.area(egg, vertices, N = 6)
egg |
an object of class |
vertices |
points describing the vertices of the polygon in spherical coordinates, as obtained from |
N |
number of triangle subdivisions |
The area of the polygon in pixels^2
## Not run: # Determine egg shape and plot egg.image(egg) fit = egg.fit() egg.plot(fit, lwd = 3, col = "red") # Interactively select a series of points (at least 3) vertices = egg.coords(fit, type = "polygon", pch = 16, lwd = 3, col = "green") # Determine the area of the polygon region egg.polygon.area(fit, vertices, N = 6) ## End(Not run)