ProcUnit::GetImageData

Gets the pointer to the memory space where the image data is stored

IMAGE *GetImageData(
    int imageNo
);
IMAGE *GetImageData(
    int imageNo,
    int size
);

IMAGE *GetImageData(
    int imageNo,
    IMAGE       *ptrImage
);

Parameters
imageNo
Image number within the processing unit
size
Image size to be allocated
prtImage
Pointer to the image data information

Return Value
Returns the pointer to the structure in which an image data information is stored.
If failed to get, returns NULL.
The structure of image data information is:
typedef struct {
BYTE imageRGB[640*480*3]
// image data
int xsize
// image size X
int ysize
// image size Y
} IMAGE

Description
Gets the pointer to the structure which stores the image data information of the in-unit image number which is specified by the argument.
Before you get the pointer to the image data, you need to allocate the space for storing the image data by using "ImageDataAlloc()" method (see "refProcUnit::ImageDataAlloc").

Example
    int Sample::MeasureProc(ProcUnit *ptrProcUnit)
    {
        IMAGE *ImageData;

        ImageData = ptrProcUnit->GetImageData(0);

        // Store input image at the address ImageData and after

    }