Description

A read-write property specifying how the image data should be analyzed.

Property type

A mcInterpretation enumeration.  

Syntax

object.Interpretation [= value]

The Interpretation Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McHistogram.
valueA mcInterpretation enumeration, as described in settings.

Settings

The settings for value are:

ConstantValueDescription
 mciAnyInterp0

current interpretation

 mciMonochrome1

only one channel

 mciIndexedColor2

8 bits per pixel, pseudo-colored

 mciGenericMultiBand3

multichannel, when needed, pixel luminance is averaged across the channels

 mciRGB4

normal color model, 3 channels arranged as “RGBRGBRGB...”

 mciBGR5

Similar to RGB, except the channels are reversed for DIBs as “BGRBGRBGR...”

 mciHSL6

Three channels, Hue, Saturation, and Luminance

 mciHSI7

Three channels, Hue, Saturation, and Intensity

 mciComplex8

Two channels, real and imaginary arranged as “RIRIRI...”, only supported with McFloat

 mciPolar9

Two channels, magnitude and phase arranged as “MPMPMP...”, only supported with McFloat

Remarks

The default value mciAnyInterp means that the image data should be interpreted as-is, in its native format.

Only certain Interpretation values are supported, and they depend somewhat on the source Mcimage.Type.Interpretation property. The mciIndexedColor and mciBGR Interpretation values are always illegal and may not be assigned to the Interpretation property. Other Interpretation values may be illegal depending on the source McImage.Type.Interpretation - these further checks may cause the Compute method to fail (normally called automatically when it is needed).

An Interpretation property of mciMonochrome (i.e., for a luminance histogram) is legal for any source image type, in which case the number of channels will always be one. An Interpretation value of mciGenericMultiBand is legal for a source McImage.Type.Interpretation of mciGenericMultiBand, in which case the number of channels will be the number of bands. Interpretation values of mciComplex and mciPolar are only legal for source images of those types (that is you can get an mciComplex histogram of a mciPolar image and vice versa, but not for any other source type).

You can use mciMonochrome for a luminance histogram of color images - in this case, the histogram NumberOfChannels property will always be one. If mciRGB, mciHSI or mciHSL is specified, then NumberOfChannels property will be three (e.g., Hue, Saturation and Intensity).