Specifications
Image Creation and Access
4-31
4
Discussion
The iplFree() function frees the aligned memory block allocated by one
of the functions iplMalloc(), iplwMalloc(), ipliMalloc(),
iplsMalloc(),oripldMalloc().
NOTE. The function iplFree() cannot be used to free memory allocated
by standard functions like
malloc() or calloc().
Image Data Exchange
The functions described in this section provide image manipulation
capabilities, such as setting the image pixel data, copying data from one
image to another, exchanging the data between the images, and converting
one image to another according to the attributes defined in the source and
resultant
IplImage headers.
Set, SetFP
Sets a value for an
image’s pixel data.
void iplSet(IplImage*
image
, int
fillValue
);
void iplSetFP(IplImage*
image
, float
fillValue
);
image
An image header with allocated image data.
fillValue
The value to set the pixel data.
Discussion
The functions iplSet() and iplSetFP() set the image pixel data. Before
calling the functions, you must properly construct the image header and
allocate memory for image data; see Example 4-4. For images with the bit