Specifications

Intel
®
Image Processing Library Reference Manual
4-4
4
Image Header and Attributes
The Image Processing Library functions operate on a single format for
images in memory. This format consists of a header of type
IPLImage
containing the information for all image attributes. The header also
contains a pointer to the image data. (See the attributes description in
Chapter 2, section “Data Architecture.”) The values that these attributes
can assume are listed in Table 4-2.
Table 4-2 Image Header Attributes
Description Value
Corresponding
DIB Attribute
Size of the IplImage
header (for internal use)
nSize in bytes
Image Header Revision ID
(internal use)
ID number
Number of Channels
1toN
(including alpha channel, if any)
1(Gray)
3(RGB)
4 (RGBA)
Alpha channel number 0 (if not present)
N
4 (RGBA)
Bits per channel
Gray only
All images: color, gray,
and multi-spectral
(The signed data is used
only as output for some
image output operations.)
IPL_DEPTH_1U (1-bit)
IPL_DEPTH_8U (8-bit unsigned)
IPL_DEPTH_8S (8-bit signed)
IPL_DEPTH_16U (16-bit unsign.)
IPL_DEPTH_16S (16-bit signed)
IPL_DEPTH_32S (32-bit signed)
IPL_DEPTH_32F (32-bit float)
Supported
Supported
(RGB, RGBA)
Not supported
Not supported
Not supported
Not supported
Not supported
Color model 4 character string: “Gray”, “RGB,”
“RGBA”, “CMYK,” etc.
Not supported.
Implicitly, RGB
color model.
continued