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