display_caim: Display a canopy image

View source: R/display_caim.R

display_caimR Documentation

Display a canopy image

Description

Wrapper for EBImage::display() that streamlines the visualization of canopy images, optionally overlaying binary masks and segmentation borders. It is intended for quick inspection of processed or intermediate results in a graphical viewer.

Usage

display_caim(caim = NULL, bin = NULL, g = NULL)

Arguments

caim

terra::SpatRaster. Typically the output of read_caim(). Can be multi- or single-layer.

bin

logical terra::SpatRaster with one layer. A binarized hemispherical image. See binarize_with_thr() for details.

g

single-layer terra::SpatRaster with integer values. Sky segmentation map produced by sky_grid_segmentation().

Value

Invisible NULL. Called for side effects (image viewer popup).

Examples

## Not run: 
caim <- read_caim()
z <- zenith_image(ncol(caim), lens())
r <- normalize_minmax(caim$Blue)
g <- ring_segmentation(z, 30)
bin <- binarize_by_region(r, g, method = "thr_isodata")
display_caim(caim$Blue, bin, g)

## End(Not run)

rcaiman documentation built on Sept. 9, 2025, 5:42 p.m.