Description
A read-write property specifying how the image data should be interpreted.
-
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 ancestor image data should be interpreted in its native format. The effect of this is that a luminance profile is computed for each channel separately, using the native interpretation. By specifying another interpretation a monochrome (i.e. intensity) or different color interpretation profile may be accessed.
Only certain Interpretation values are supported, and they depend somewhat on the ancestor 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.
An Interpretation property of mciMonochrome (i.e., for an intensity profile) is legal for any source image type, in which case the NumberOfChannels will always be one. An Interpretation value of mciGenericMultiBand is legal for a source McImage.Type.Interpretation of mciGenericMultiBand, in which case the NumberOfChannels 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 an intensity profile 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).
|