
Quantify the colorfulness of an image
colorfulness(caim, m = NULL)
A numeric vector of length one.
SpatRaster. The return of a call to read_caim()
or
read_caim_raw()
.
SpatRaster. A mask. For hemispherical photographs, check
mask_hs()
. Default (NULL
) is the equivalent to enter
!is.na(caim$Red)
.
Quantify the colorfulness of an sRGB image using a bidimensional space formed by the green/red and the blue/yellow axes of the CIE LAB space, symbolized with A and B, respectively. The colorfulness index (CI) is defined as
where
Other Tool Functions:
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()
,
percentage_of_clipped_highlights()
,
read_bin()
,
read_caim_raw()
,
read_caim()
,
write_bin()
,
write_caim()
caim <- read_caim() %>% normalize()
colorfulness(caim)
Run the code above in your browser using DataLab