View source: R/ring_segmentation.R
ring_segmentation | R Documentation |
Segment a hemispherical view into concentric rings by slicing the zenith
angle from 0
to 90
deg at equal steps.
ring_segmentation(z, angle_width, return = "id")
z |
terra::SpatRaster generated with |
angle_width |
numeric vector of length one. Ring width in degrees. Must divide the 0-90 deg range into an integer number of segments. |
return |
character vector of length one. Output mode: "id" (default) or "angle". |
Single-layer terra::SpatRaster: ring IDs if return = "id"
,
or mean zenith angle (deg) if return = "angle"
.
z <- zenith_image(600, lens())
rings <- ring_segmentation(z, 15)
plot(rings == 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.