ProcUnit::TransformArea

Performs area transformation

int TransformArea(
   int  imageNo,
   int  mode,
   double       srcArea,
   double       *destArea,
);

Parameters
imageNo
Image number
mode
Transformation mode
0:After transform → Before transform
1:Before transform → After transform
10:Picture element → Calibration
srcArea
Area value before transformation
*destArea
Pointer to area value after transformation

Return Value
Returns 0 when performs area transformation succeeded.
Otherwise returns a non-zero value.

Description
Performs area transformation.

Example
    int Sample::TransformArea(ProcUnit *ptrProcUnit, int imageNo, int mode, double srcArea, double *destArea)
    {

        // Get the pointer to the inner processing unit

        ProcUnit *ptrInnerUnit = ptrProcUnit->GetInnerUnit(0);

        // Performs area transformation

        ptrInnerUnit->TransformArea(imageNo, mode, srcArea, destArea);
    }