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.[more]
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.[less]
The code for the "multiSlider" is based on a Demonstration by Brett Champion: "Effects of Bin Width and Height in a Histogram".