Skip to contents

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 recolorize class object.

plotting

Logical. Plot results?

Value

A recolorize object, with median colors instead of average colors in the centers attribute.