Color Quantization of Photographic Images II: Palette from Colors out of Color Schemes
Color Quantization of Photographic Images II: Palette from Colors out of Color Schemes
Color quantization reduces the number of colors in an image to a limited set of distinct colors, called a palette.
This Demonstration illustrates how a photographic image can be quantized using a palette of six colors from any of the color schemes available in Mathematica.
Use the arrow-shaped locator objects to select six colors within one of the color schemes. The selected image is then quantized with a palette consisting of these colors by using the built-in Mathematica function Nearest. Similarity of colors is evaluated by the Euclidean distance between their RGB values.