egg.pixel.data: Extract egg pixel data

Description Usage Arguments Value Examples

Description

Extracts egg pixels from the current image

Usage

1
2
egg.pixel.data(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), colour (col) and corrected size (pixel.size) of each pixel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

eggs documentation built on May 2, 2019, 5:23 p.m.