makeRings: Make rings.

Description Usage Arguments Details Value See Also Examples

Description

Make rings by dividing the zenith angle from 0 to 90 in equals intervals.

Usage

1
2
3
4
makeRings(x, angleWidth, angleMean = FALSE)

## S4 method for signature 'ZenithImage'
makeRings(x, angleWidth, angleMean = FALSE)

Arguments

x

ZenithImage.

angleWidth

Angle. It must divide 0-90 into a whole number of segments.

angleMean

logical. If FALSE, all the pixels that belong to a ring are labeled with an ID number. Otherwise, the angle mean of the ring is assigned to the pixels.

Details

The intervals are closed on the right and open on the left. The first ring never contains 0 because the zenith point is always in between two pixels (see makeZimage).

Value

PolarSegmentation.

See Also

makeZimage, makePolarSectors, makePolarGrid.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
z <- makeZimage(480, lensPolyCoef())

r <- makeRings(z, angleWidth = asAngle(30))
r
plot(r)
r <- makeRings(z, angleWidth = asAngle(30), angleMean = TRUE)
r
plot(r)

r <- makeRings(z, angleWidth = asAngle(10))
plot(r)

GastonMauroDiaz/caiman documentation built on Jan. 22, 2022, 4:43 a.m.