ProcUnit::ImageDataAlloc

Allocates image data space

int ImageDataAlloc(
   int          imageNo,
   int          size
);

int ImageDataAlloc(
    int         imageNo,
    IMAGE               *ptrImage
);

Parameters
imageNo
Image number within the processing unit
size
Image size to be allocated
ptrImage
Image size to be allocated

Return Value
Returns 0 when the image data space is successfully allocated.
Otherwise returns a non-zero value.

Description
Allocates image data space of the size specified for the in-unit image number which is specified by the argument.

Example
   int Sample::MeasureInit
    {

        // Allocate image data space of 640*480*3 bytes for image No. 0

        ptrProcUnit->ImageDataAlloc(0, 640 * 480 * 3);
    }