Learn R Programming

rcaiman (version 1.2.2)

rings_segmentation: Do rings segmentation

Description

Segment an hemispherical view by slicing the zenith angle from zero to 90º in equals intervals.

Usage

rings_segmentation(z, angle_width, return_angle = FALSE)

Value

An object from the class SpatRaster with segments shaped like concentric rings.

Arguments

z

SpatRaster built with zenith_image().

angle_width

Numeric vector of length one. Angle in degrees able to divide the angle range into a whole number of segments.

return_angle

Logical vector of length one. If it is FALSE, all the pixels that belong to a segment are labeled with an ID number. Otherwise, the angle mean of the segment is assigned to the pixels.

See Also

Other Segmentation Functions: chessboard(), mask_hs(), mask_sunlit_canopy(), polar_qtree(), qtree(), sectors_segmentation(), sky_grid_segmentation()

Examples

Run this code
z <- zenith_image(600, lens())
rings <- rings_segmentation(z, 15)
plot(rings == 1)

Run the code above in your browser using DataLab