medianColors | R Documentation |
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.
medianColors(recolorize_obj, plotting = TRUE)
recolorize_obj |
A |
plotting |
Logical. Plot results? |
A recolorize
object, with median colors instead of average colors
in the centers
attribute.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.