egg.pixel.data {eggs} | R Documentation |
Extracts egg pixels from the current image
egg.pixel.data(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
), colour (col
) and corrected size (pixel.size
) 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 data of all pixels px = egg.pixel.data(egg, fit) ## End(Not run)