Specifications
Intel
®
Image Processing Library Reference Manual
4-36
4
Convert
Converts source image data to
resultant image according to
the image headers.
void iplConvert(IplImage*
srcImage,
IplImage*
dstImage
);
srcImage
Thesourceimage.
dstImage
The resultant image.
Discussion
The function iplConvert() converts image data from the source image to
the resultant image according to the attributes defined in the source and
resultant
IplImage headers; see Example 4-6.
The main conversion rule is saturation. The images that can be converted
may have the following different characteristics:
• Bit depth per channel
• Data ordering
• Origins
(For more information about these characteristics, see Table 4-2.)
The following constraints apply to the conversion:
• If the source image has a bit depth per channel equal to 1, the resultant
image should also have the bit depth equal to 1.
• The number of channels in the source image should be equal to the
number of channels in the resultant image.
• The height and width of the source image should be equal to those of
the resultant image.
All ROIs are ignored.