medianColors {recolorize} | R Documentation |
Change color centers to median color of all pixels assigned to it
Description
By default, recolorize sets the centers of each color patch to the average (mean) color of all pixels assigned to it. This can sometimes result in colors that look washed out, especially in cases where a region is very shiny (e.g. black with white reflective highlights will average to grey). In these cases, switching to median colors may be either more accurate or more visually pleasing.
Usage
medianColors(recolorize_obj, plotting = TRUE)
Arguments
recolorize_obj |
A |
plotting |
Logical. Plot results? |
Value
A recolorize
object, with median colors instead of average colors
in the centers
attribute.
[Package recolorize version 0.2.0 Index]