Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


returns the value of property "prop" for the entire image.

returns the values in the specified output format.

ImageMeasurements[{image1, image2, },]
returns measurements for all imagei.

Details and OptionsDetails and Options

  • ImageMeasurements works with arbitrary 2D and 3D images.
  • ImageMeasurements[image,{"prop1","prop2",}] computes multiple properties.
  • ImageMeasurements[image,"Properties"] gives names of all available properties as a list of strings.
  • Position, area, and length measurements are computed in the standard image coordinate system.
  • For images of type "Byte" and "Bit16", ImageMeasurements always normalizes values to lie between 0 and 1.
  • The following properties can be computed on images:
  • Global image properties:
  • "AspectRatio"ratio of height to width
    "Channels"number of image channels
    "ColorSpace"image color space
    "DataRange"range of the underlying data
    "DataType"underlying data type
    "Dimensions"dimensions of the image
    "Interleaving"amount of interleaving of the image
    "SampleDepth"number of bits used to represent each pixel
    "Transparency"whether or not the image has an alpha channel
  • Basic histogram properties, measured for each channel individually:
  • "Min"minimum value
    "Max"maximum value
    "Mean"average value
    "Median"median value
    "StandardDeviation"standard deviation
    "Total"total of all values
  • Basic image intensity properties:
  • "MinIntensity"minimum intensity
    "MaxIntensity"maximum intensity
    "MeanIntensity"average intensity
    "MedianIntensity"median intensity
    "StandardDeviationIntensity"standard deviation of the intensity distribution
    "TotalIntensity"total intensity
  • Spatial intensity measurements:
  • "Skew"asymmetry in intensity distribution
    "IntensityCentroid"coordinates of the intensity-weighted centroid
  • Statistical measurements:
  • "Entropy"data entropy (base E)
    "Energy"data energy
  • The following format specifications can be used:
  • Automaticdetermine the output automatically
    "Association"format the result as an Association
    "Dataset"format the result as a Dataset
    "List"format the result as a List
    "RuleList"format the result as a list of Rule expressions
  • ImageMeasurements takes a Masking option. The default setting is Masking->All. The Masking option is ignored when returning global image properties.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Extract mean color value:

Click for copyable input
Click for copyable input

Mean pixel intensity:

Click for copyable input

Global image entropy:

Click for copyable input

Standard deviation of pixel intensity in a 3D image:

Click for copyable input
Introduced in 2012
| Updated in 2015