Color Quantization of Photographic Images II: Palette from Colors out of Color Schemes

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

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]

Contributed by: Erik Mahieu (August 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

The code for the "multiSlider" is based on a Demonstration by Brett Champion: "Effects of Bin Width and Height in a Histogram".



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send