Description

Defines the charactereistics of an image, including color model and memory layout.

Return Type

None  

Syntax

object.Initialize eOrganization, ePixelDataType, eInterpretation, eBitsPerChannel, eNumberOfChannels

The Initialize Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McImageType.
eOrganizationRequired. A mcOrganization enumeration, as described in settings.

mcOrganization : Image Array format. (DIB, flat, etc.)

ePixelDataTypeRequired. A mcPixelDataType enumeration, as described in settings.

mcPixelDataType : Integer or Float.

eInterpretationRequired. A mcInterpretation enumeration, as described in settings.

mcInterpretation : Monochrome, RGB, etc.

eBitsPerChannelRequired. A mcBitsPerChannel enumeration, as described in settings.

mcBitsPerChannel : Dynamic range of each pixel.

eNumberOfChannelsRequired. A Long value.

long : Number of elements, or channels, per pixel. For example, RGB has 3 elements.

Settings

The settings for eOrganization are:

ConstantValueDescription
 mcoAnyArray0

to retrieve current array type

 mcoFlatArray1

simple block of bytes (i.e. legacy Frame Grabbers)

 mcoInverted2

Flat Array reads bottom to top

 mcoDIBArray3

DWORD aligned, and inverted

 mcoBMPArray4

rows are INT aligned (as in Bit Map)

 mcoNewDIBArray5

new format DIB - DWORD aligned, not inverted

The settings for ePixelDataType are:

ConstantValueDescription
 mcpdtAnyType0

current band type

 mcpdtInteger1

pixels hold integral values

 mcpdtFloat2

numbers are floating point

The settings for eInterpretation 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

The settings for eBitsPerChannel are:

ConstantValueDescription
 mcbpcAnyBits0

don't care

 mcbpc8Bits8

integer only, values range from 0 to 255

 mcbpc12Bits12

integer only, needs 16 bits, values range from 0 to 4095

 mcbpc16Bits16

integer only, values range from 0 to 65535

 mcbpc32Bits32

can be either integer or float. If integer, values range from 0 to 4Gig.

 mcbpc64Bits64

float only

Remarks

Allows the caller to set all ImageType properties at once. For performance reasons, the parameters are not verified; instead, the user should call IsValid() when needed to verify the ImageType object.

Exceptions

Exception: Meaning:

None.