mask_sunlit_canopy {rcaiman}R Documentation

Mask sunlit canopy

Description

It is a wrapper function around membership_to_color(). It was developed with images in sRGB color space (Díaz 2023).

Usage

mask_sunlit_canopy(caim, m = NULL)

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().

Value

An object of class SpatRaster with values 0 and 1.

References

Díaz GM (2023). “Optimizing forest canopy structure retrieval from smartphone-based hemispherical photography.” Methods in Ecology and Evolution, 14(3), 875–884. doi:10.1111/2041-210x.14059.

See Also

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

Examples

## Not run: 
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)

## End(Not run)

[Package rcaiman version 1.2.2 Index]