makePolarSectors: Slice the polar space in sectors

Description Usage Arguments Details Value See Also Examples

Description

Make sectors by slicing the azimuth angle from 0 to 360 in equals intervals.

Usage

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

## S4 method for signature 'AzimuthImage'
makePolarSectors(x, angleWidth, angleMean = FALSE)

Arguments

x

AzimuthImage.

angleWidth

Angle. It must divides 0:360 into a whole number of segments.

angleMean

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

Details

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

Value

PolarSegmentation.

See Also

makeAimage, makeRings, makePolarGrid.

Examples

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

s <- makePolarSectors(a, angleWidth = asAngle(10))
s
plot(s)
s <- makePolarSectors(a, angleWidth = asAngle(10), angleMean = TRUE)
s
plot(s)

s <- makePolarSectors(a, angleWidth = asAngle(15))
s
plot(s)

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