CustomRasterInfo Structure
Declared in: CustomProcess.h
Used to communicate information about the image.
[C++]
enum CustomProcess_ColorSpaceValue
{
Gray = 0,
RGB = 1,
CMYK = 2,
YCbCr = 3,
YUV = 4,
LHS = 5,
YCCK = 6,
Palette = 7,
Other = 0xFF
};
/// Values for Datatypes
enum CustomProcess_ PixelDataValue
{
UInt8 = 0,
UInt16 = 1,
UInt32 = 2,
UInt64 = 3,
Int8 = 4,
Int16 = 5,
Int32 = 6,
Int64 = 7,
Float32 = 8,
Float64 = 9,
CInt16 = 10,
CInt32 = 11,
CFloat32 = 12,
CFloat64 = 13,
Elevation = 14,
};
typedef struct
{
unsigned long Rows;
unsigned long Cols;
unsigned long BandsPerPixel;
unsigned long BitsPerBand;
enum CustomProcess_ColorSpaceValue ColorSpace;
enum CustomProcess_PixelDataValue DataType;
unsigned short** ColorMap;
}CustomRasterInfo;
Members
Rows
Number of rows of the Image.
Cols
Number of columns of the Image.
BandsPerPixel
Number of rows of the Image.
BitsPerBand
Number of columns of the Image.
ColorSpace
An enumerated value corresponding to a color space. E.g. RGB for a 3 band true color image, or Gray for a one band grayscale image.
Elevation services usually come with a colorspace value of Other.
DataType
An enumerated value corresponding to a pixel data type. E.g. UInt8 for an 8 bit image, or Elevation for 32bit elevation data.
ColorMap
A pointer to a color map for a raster. This is rarely used.
Example
For a detailed example using this structure, see Sample custom process.
Related Topics
Referenced By: CustomProcess_Initialize