percentage_of_clipped_highlights: Percentage of clipped highlights

View source: R/percentage_of_clipped_highlights.R

percentage_of_clipped_highlightsR Documentation

Percentage of clipped highlights

Description

Wrapper function for terra::freq()

Usage

percentage_of_clipped_highlights(r, m)

Arguments

r

Single-layer object from the SpatRaster.

m

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

Value

Numeric vector of lenght one.

See Also

Other Tool Functions: colorfulness(), correct_vignetting(), defuzzify(), extract_dn(), extract_feature(), extract_rl(), extract_sky_points_simple(), extract_sky_points(), extract_sun_coord(), find_sky_pixels_nonnull(), find_sky_pixels(), masking(), optim_normalize(), read_bin(), read_caim_raw(), read_caim(), write_bin(), write_caim()

Examples

r <- read_caim()$Blue
z <- zenith_image(ncol(r), lens())
m <- !is.na(z)
percentage_of_clipped_highlights(r, m)
r <- normalize(r, 0, 1000, TRUE)
percentage_of_clipped_highlights(r, m)

rcaiman documentation built on Nov. 15, 2023, 1:08 a.m.