colorfulness | R Documentation |
Quantify the colorfulness of an image
colorfulness(caim, m = NULL)
caim |
SpatRaster. The return of a call to |
m |
SpatRaster. A mask. For hemispherical photographs, check
|
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
CI = \dfrac{A_o}{A_p} \cdot 100
,
where A_o
and A_p
are the observed and potential area of the
AB plane. A_o
refers to the colors from the image while
A_p
to the colors from the whole sRGB cube.
A numeric vector of length one.
An early version of this function was used in \insertCiteMartin2020;textualrcaiman.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.