Learn R Programming

rcaiman (version 2.0.1)

azimuth_image: Build azimuth image

Description

Creates a single-layer raster in which pixel values represent azimuth angles, assuming an upwards-looking hemispherical photograph with the optical axis vertically aligned.

Usage

azimuth_image(z, orientation = 0)

Value

terra::SpatRaster with the same dimensions as the input zenith image. Each pixel contains the azimuth angle in degrees, with zero representing North and angles increasing counter-clockwise. The object carries attributes orientation and lens_coef.

Arguments

z

terra::SpatRaster generated with zenith_image().

orientation

numeric vector of length one. Azimuth angle (in degrees) corresponding to the direction at which the top of the image was pointing when the picture was taken. This design follows the common field protocol of recording the angle at which the top of the camera points.

Examples

Run this code
z <- zenith_image(600, lens("Nikon_FCE9"))
a <- azimuth_image(z)
plot(a)
if (FALSE) {
a <- azimuth_image(z, 45)
plot(a)
}

Run the code above in your browser using DataLab