If target.color
is a character-string (e.g. "red1"
) are members of colors()
,
it will be translated into its HSV-representation.
If target.color
is a vector of RGB-values, it gets translated into its
HSV-representation.
The resulting HSV-color will be applied to all elements of pixel.array
which are members of pixel.idx
are translated to their HSV-representation.
Arguments
- pixel.array
image array as loaded via duflor::load_image()
- pixel.idx
list declaring pixels to which target.color.hsv is applied
- target.color
color in rgb-format
0-255
, or a member ofcolors()
- mask_extreme
by default, only the
hue
- andsaturation
-components are applied to the pixels. Set this argument toTRUE
to also applyvalue
. This will increase the contrast of the image drastically, but might result in less favorable images.)