Specifications
Image Creation and Access
4-15
4
DeallocateImage
Deallocates (frees) memory
for image data pointed to in
the image header.
void iplDeallocateImage(IplImage*
image
)
image
An image header with a pointer to the allocated
image data memory. The image data pointer will
be set to
NULL after this function executes.
Discussion
The function iplDeallocateImage() is used to free image data memory
pointed to by the
imageData
member of the image header. The respective
pointer to image data or ROI data is set to
NULL after the memory is freed
up.
CloneImage
Creates a copy of an image.
IplImage* iplCloneImage (const IplImage*
image
);
image
Header of the image to be cloned.
Discussion
The function creates a copy of
image
, including its data and ROI. The
imageID
,
maskROI
,and
tileInfo
fields of the copy are set to NULL.
Return Value
A pointer to the created copy of
image
. If the source image is tiled, the
function creates a non-tiled image and does not copy the image data.