ProcUnit::SetMeasureImage

Registers image data of the current target image

int SetMeasureImage(
   int  measureImageNo,
   int  imageNo
);

Parameters
measureImageNo
The current target image number to be registered
imageNo
Image number within the processing unit to be registered

Return Value
Returns 0 when the current target image to be processed is successfully registered.
Otherwise returns a non-zero value.

Description
Registers the image data specified by the image number in the processing unit to the specified current target image number.
After registering the current target image using this method, you can obtain the image data by using "GetMeasureImage()" method (see "refProcUnit::GetMeasureImage").

Example
   int Sample::AssignProc(ProcUnit *ptrProcUnit)
    {

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

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

        BYTE *imageData = ptrProcUnit->GetImageData(10);

        // Store the input image at ImageData and after


        // Register the created image data with the current target image number 0

        ptrProcUnit->SetMeasureImage(0, 10);
    }