Image Representation

Mathematica's symbolic architecture allows a unique representation and treatment of images in both programs and documents. Mathematica supports images with arbitrary numbers of channels and arbitrary color depths, and with a full range of internal data types either specified explicitly or chosen automatically.

ReferenceReference

Image, Image3D represent a general multichannel image

ImageQ test whether an expression is an image

Image Properties

ImageMeasurements returns specified properties of an image

ImageType the type of data in the image (, , , , )

ImageData the array of raster data for an image

ImageColorSpace ▪ ImageChannels ▪ ImageDimensions ▪ ImageAspectRatio

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

ImageValuePositions, PixelValuePositions positions of the specified pixel value

Image3DSlices gives the 2D image slices for a 3D image

Image Options

Options find the options of an image

ColorSpace in what color space to interpret channel values (, , etc.)

Interleaving whether to interleave channels into the data array

MetaInformation arbitrary metadata imported and exported with an image

ImageSize ▪ Magnification ▪ ImageResolution

Colors & Levels »

ImageHistogram histogram of levels by channel

FindThreshold global threshold that partitions the intensity levels

DominantColors find a list of dominant colors

ImageCooccurrence co-occurrence matrix of image pixel intensities

BinaryImageQ ▪ Binarize ▪ ImageLevels ▪ ...

ColorConvert convert between color spaces

AlphaChannel ▪ ColorSeparate ▪ ColorCombine

Image Decompositions

KarhunenLoeveDecomposition

Importing & Exporting

Import, Export import, export in all standard formats

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