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

Value

Numeric vector of lenght one.

See Also

Other Tool Functions: calc_oor_index(), calc_spherical_distance(), colorfulness(), correct_vignetting(), defuzzify(), display_caim(), extract_dn(), extract_feature(), extract_rel_radiance(), extract_sky_points(), extract_sun_coord(), find_sky_pixels(), masking(), optim_dist_to_black(), optim_normalize(), read_bin(), read_caim(), read_caim_raw(), read_ootb_sky_model(), sor_filter(), vicinity_filter(), write_bin(), write_caim(), write_ootb_sky_model()

Examples

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

GastonMauroDiaz/rcaiman documentation built on April 14, 2025, 9:39 a.m.