View source: R/sector_segmentation.R
| sector_segmentation | R Documentation |
Segment a hemispherical view into equal azimuth sectors by slicing the
azimuth angle from 0 to 360 deg at fixed steps.
sector_segmentation(a, angle_width)
a |
terra::SpatRaster generated with |
angle_width |
numeric vector of lenght one. Sector width in degrees. Must divide the 0–360 deg range into an integer number of sectors. |
Single-layer terra::SpatRaster with integer values. Segments will resemble pizza slices.
z <- zenith_image(600, lens())
a <- azimuth_image(z)
sectors <- sector_segmentation(a, 15)
plot(sectors == 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.