ProcUnit::TransformAngle
Performs angle transformation
int TransformAngle(
int imageNo,
int mode,
double srcAngle,
double *destAngle,
);
Parameters
imageNo
|
Image number
|
mode
|
Transformation mode
0:After transform → Before transform
1:Before transform → After transform
10:Picture element → Calibration
|
srcAngle
|
Angle value before transformation
|
*destAngle
|
Pointer to angle value after transformation
|
Return Value
Returns 0 when performs angle transformation succeeded.
Otherwise returns a non-zero value.
Description
Performs angle transformation.
Example
int Sample::TransformAngle(ProcUnit *ptrProcUnit, int imageNo, int mode, double srcAngle, double *destAngle)
{
// Get the pointer to the inner processing unit
ProcUnit *ptrInnerUnit = ptrProcUnit->GetInnerUnit(0);
// Performs angle transformation
ptrInnerUnit->TransformAngle(imageNo, mode, srcAngle, destAngle);
}