ProcUnit::TransformLine

Performs line transformation

int TransformLine(
   int  imageNo,
   int  mode,
   double       srcA,
   double       srcB,
   double       srcC,
   double       *destA,
   double       *destB,
   double       *destC,
);

Parameters
imageNo
Image number
mode
Transformation mode
0:After transform → Before transform
1:Before transform → After transform
10:Picture element → Calibration
srcA
Parameter A value of line before transformation
srcB
Parameter B value of line before transformation
srcC
Parameter C value of line before transformation
*destA
Pointer to parameter A value of line after transformation
*destB
Pointer to parameter B value of line after transformation
*destC
Pointer to parameter C value of line after transformation

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

Description
Performs line transformation.

Example
    int Sample::TransformLine(ProcUnit *ptrProcUnit, int imageNo, int mode, double srcA, double srcB, double srcC, double *destA, double *destB, double *destC)
    {

        // Get the pointer to the inner processing unit

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

        // Performs line transformation

        ptrInnerUnit->TransformLine(imageNo, mode, srcA, srcB, srcC, destA, destB, destC);
    }