egg.pixels: Extract egg pixels

Description Usage Arguments Value Examples

View source: R/egg.pixels.R

Description

Extracts egg pixels from the current image

Usage

1
2
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

 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 coordinates of all pixels
px = egg.pixels(egg, fit)

## End(Not run)

egg documentation built on May 2, 2019, 5:55 p.m.

Related to egg.pixels in egg...