egg.pixels {egg}R Documentation

Extract egg pixels

Description

Extracts egg pixels from the current image

Usage

egg.pixels(egg.image, egg, lower.theta = 0, upper.theta = pi,
  lower.phi = 0, upper.phi = pi)

Arguments

egg.image

a raster image of an egg

egg

an object of class egg.fit

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

Value

An object of class egg.pixels containing the speherical coordinates (coords) and colour (col) of each pixel

Examples

## 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)

[Package egg version 0.1.0 Index]