egg.pixels {egg} | R Documentation |
Extracts egg pixels from the current image
egg.pixels(egg.image, egg, lower.theta = 0, upper.theta = pi, lower.phi = 0, upper.phi = pi)
egg.image |
a raster image of an egg |
egg |
an object of class |
lower.theta |
the lower limit from which to extract pixels around the horizontal axis |
upper.theta |
the upper limit from which to extract pixels around the horizontal axis |
lower.phi |
the lower limit from which to extract pixels around the vertical axis |
upper.phi |
the upper limit from which to extract pixels around the vertical axis |
An object of class egg.pixels
containing the speherical coordinates (coords
) and colour (col
) of each pixel
## Not run: # Determine egg shape and plot egg.image(egg) fit = egg.fit() egg.plot(fit, lwd = 3, col = "red") # Extract the coordinates of all pixels px = egg.pixels(egg, fit) ## End(Not run)