Learn R Programming

rcaiman (version 1.2.2)

mask_sunlit_canopy: Mask sunlit canopy

Description

It is a wrapper function around membership_to_color(). It was developed with images in sRGB color space Diaz2023rcaiman.

Usage

mask_sunlit_canopy(caim, m = NULL)

Value

An object of class SpatRaster with values 0 and 1.

Arguments

caim

SpatRaster. The return of a call to read_caim() or read_caim_raw().

m

SpatRaster. A mask. For hemispherical photographs, check mask_hs().

References

See Also

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

Examples

Run this code
if (FALSE) {
path <- system.file("external/APC_0020.jpg", package = "rcaiman")
caim <- read_caim(path)
plotRGB(caim)
caim <- normalize(caim)
m <- mask_sunlit_canopy(caim)
plot(m)
}

Run the code above in your browser using DataLab