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: Settings The settings for value are:
 | mciAnyInterp | 0 |
current interpretation
|
 | mciMonochrome | 1 |
only one channel
|
 | mciIndexedColor | 2 |
8 bits per pixel, pseudo-colored
|
 | mciGenericMultiBand | 3 |
multichannel, when needed, pixel luminance is averaged across the channels
|
 | mciRGB | 4 |
normal color model, 3 channels arranged as RGBRGBRGB...
|
 | mciBGR | 5 |
Similar to RGB, except the channels are reversed for DIBs as BGRBGRBGR...
|
 | mciHSL | 6 |
Three channels, Hue, Saturation, and Luminance
|
 | mciHSI | 7 |
Three channels, Hue, Saturation, and Intensity
|
 | mciComplex | 8 |
Two channels, real and imaginary arranged as RIRIRI..., only supported with McFloat
|
 | mciPolar | 9 |
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).
|