Color Processing

Mathematica provides convenient functions and algorithms for manipulating colors in images, with full generality for arbitrary numbers of color channels.

ReferenceReference

ImageAdjust adjust levels, brightness, contrast, gamma, etc.

Lighter ▪ Darker

ColorNegate negate color values

ImageDemosaic reconstruct a color image from raw images

Level & Histogram Processing

ImageHistogram histogram of levels by channel

ImageLevels tally of levels in each channel

DominantColors find a list of dominant colors

Binarize ▪ ColorQuantize

Threshold ▪ FindThreshold

HistogramTransform, HistogramTransformInterpolation equalize levels

Color Spaces

ColorConvert convert between color spaces

ColorSpace option for specifying color spaces

ImageColorSpace gives the color space setting for an image

, , , , , , named color spaces

ColorProfileData representation for general color spaces

Channel Operations

ColorSeparate, ColorCombine separate, combine color channels

ImageChannels the number of channels in an image

AlphaChannel the alpha channel of the image

SetAlphaChannel ▪ RemoveAlphaChannel

Pixel Operations

ImageValuePositions, PixelValuePositions coordinates of pixels of a given color

ImageValue, PixelValue get the value of a pixel at the specified position

ReplaceImageValue, ReplacePixelValue replace the value of specified pixels

ColorReplace change pixel values based on color replacement rules

ImageApply apply an arbitrary function to each pixel value

ImageScan scan over every pixel of an image, applying a function

Pseudocolor Images »

Colorize create pseudocolor images

ReliefImage create an image from data using simulated relief

HighlightImage highlight the region of interest in an image

Colors »

RGBColor ▪ GrayLevel ▪ Hue ▪ Red ▪ Blend ▪ ColorSlider ▪ ...

New to Mathematica? Find your learning path »
Have a question? Ask support »