Specifications
Image Creation and Access
4-35
4
Exchange
Exchanges image data
between two images.
void iplExchange(IplImage*
ImageA
, IplImage*
ImageB
);
ImageA
The first image.
ImageB
The second image.
Discussion
The function iplExchange() exchanges image data between two images,
the first and the second. The image headers must be properly constructed
before calling this function, and image data for both images must be
allocated. The following constraints apply to the data exchanging:
• The bit depths per channel of both images should be equal.
• The numbers of channels of interest in both images should be equal.
• The data ordering of both images should be the same (either pixel- or
plane-oriented) .
The
align
,
width
,and
height
field values (see Table 4-2) may differ in
the first and the second image. The data are exchanged at the areas of
intersection between the ROI of the first image and the ROI of the second
image.