Modules | Enumerations

Image Representation

Collaboration diagram for Image Representation:

Modules

 Raw Data Conversion Utilities
 imImage
 Raw Data Utilities
 Color Mode Utilities

Enumerations

enum  imDataType {
  IM_BYTE, IM_SHORT, IM_USHORT, IM_INT,
  IM_FLOAT, IM_DOUBLE, IM_CFLOAT, IM_CDOUBLE
}
enum  imColorSpace {
  IM_RGB, IM_MAP, IM_GRAY, IM_BINARY,
  IM_CMYK, IM_YCBCR, IM_LAB, IM_LUV,
  IM_XYZ
}
enum  imColorModeConfig { IM_ALPHA = 0x100, IM_PACKED = 0x200, IM_TOPDOWN = 0x400 }

Detailed Description

See im.h

Enumeration Type Documentation

enum imDataType

Image data type descriptors.
See also Data Type Utilities.

Enumerator:
IM_BYTE 

"unsigned char". 1 byte from 0 to 255.

IM_SHORT 

"short". 2 bytes from -32,768 to 32,767.

IM_USHORT 

"unsigned short". 2 bytes from 0 to 65,535.

IM_INT 

"int". 4 bytes from -2,147,483,648 to 2,147,483,647.

IM_FLOAT 

"float". 4 bytes single precision IEEE floating point.

IM_DOUBLE 

"double". 8 bytes double precision IEEE floating point.

IM_CFLOAT 

complex "float". 2 float values in sequence, real and imaginary parts.

IM_CDOUBLE 

complex "double". 2 double values in sequence, real and imaginary parts.

Image color mode color space descriptors (first byte).
See also Color Mode Utilities.

Enumerator:
IM_RGB 

Red, Green and Blue (nonlinear).

IM_MAP 

Indexed by RGB color map (data_type=IM_BYTE).

IM_GRAY 

Shades of gray, luma (nonlinear Luminance), or an intensity value that is not related to color.

IM_BINARY 

Indexed by 2 colors: black (0) and white (1) (data_type=IM_BYTE).

IM_CMYK 

Cian, Magenta, Yellow and Black (nonlinear).

IM_YCBCR 

ITU-R 601 Y'CbCr. Y' is luma (nonlinear Luminance).

IM_LAB 

CIE L*a*b*. L* is Lightness (nonlinear Luminance, nearly perceptually uniform).

IM_LUV 

CIE L*u*v*. L* is Lightness (nonlinear Luminance, nearly perceptually uniform).

IM_XYZ 

CIE XYZ. Linear Light Tristimulus, Y is linear Luminance.

Image color mode configuration/extra descriptors (1 bit each in the second byte).
See also Color Mode Utilities.

Enumerator:
IM_ALPHA 

adds an Alpha channel

IM_PACKED 

packed components (rgbrgbrgb...)

IM_TOPDOWN 

orientation from top down to bottom