Learn R Programming

rcaiman (version 2.0.1)

display_caim: 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)

Value

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

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

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab