Specifications

Intel
®
Image Processing Library Reference Manual
4-32
4
depth lower than the
fillVallue
,the
fillValue
is saturated when
assigned to pixel. If an ROI is specified, only that ROI is filled.
Example 4-4 Allocating an Image and Setting Its Pixel Values
int example44( void ) { IplImage *img;
__try {
img = iplCreateImageHeader( 1,0,IPL_DEPTH_8U,"GRAY",
"GRAY", IPL_DATA_ORDER_PIXEL, IPL_ORIGIN_TL,
IPL_ALIGN_QWORD, 100,150, NULL, NULL, NULL, NULL);
if( NULL == img ) return 0;
iplAllocateImage( img, 0, 0 );
if( NULL == img->imageData ) return 0;
iplSet( img, 255 );
}
__finally {
iplDeallocate(img, IPL_IMAGE_HEADER|IPL_IMAGE_DATA);
}
return IPL_StsOk == iplGetErrStatus();
}
Copy
Copies image data from one
image to another.
void iplCopy(IplImage*
srcImage
, IplImage*
dstImage
);
srcImage
Thesourceimage.
dstImage
The resultant image.
Discussion
The function iplCopy() copies image data from a source image to a
resultant image. Before calling this function, the source and resultant