CVB.Net 15.0
LineScanCalibrator Struct Reference

Result of the linescan calibration executed by the CalibrationLineScan.CreateLineScanCalibration function. More...

Public Member Functions

 LineScanCalibrator (NonLinearTransformation transformation, double pixelSize, double meanError, double standardDeviation)
 New calibration result More...
 

Properties

NonLinearTransformation Transformation [get]
 Transformation object. More...
 
double PixelSize [get]
 Pixel size after transformation. More...
 
double MeanError [get]
 Mean difference between stripe width in the transformed image and reference (calculated over all stripes).
 
double StandardDeviation [get]
 Standard deviation of the mean error.
 

Detailed Description

Result of the linescan calibration executed by the CalibrationLineScan.CreateLineScanCalibration function.

Constructor & Destructor Documentation

◆ LineScanCalibrator()

LineScanCalibrator ( NonLinearTransformation  transformation,
double  pixelSize,
double  meanError,
double  standardDeviation 
)

New calibration result

Parameters
transformationTransformation object.
pixelSizePixel size after transformation.
meanErrorMean deviation of all distances between stripes of transformed image from reference stripe width.
standardDeviationStandard deviation of meanError .

Property Documentation

◆ PixelSize

double PixelSize
get

Pixel size after transformation.

The pixel size has the same units as referenceDistanceCalibrationPoints and referenceWidthStripes given within function CalibrationLineScan.CreateLineScanCalibration.

◆ Transformation

NonLinearTransformation Transformation
get

Transformation object.

The transformation object includes the coefficients of a 3rd order polynomial. Mixed coefficients are zero. Depending on the ScanDirection specified in LineScanCalibrationConfiguration, the estimated polynomial is:

Scan direction in X:

x' = a1 * x^3 + a5 * x^2 + a8 * x + a10
y' = b9 * y

Scan direction in Y:

y' = b4 * y^3 + b7 * y^2 + b9 * y + b10
x' = a8 * x

where

x: pixel position in x (column),

y: pixel position in y (row),

a1-a10: coefficients in x,

b1-b10: coefficients in y,

x' and y': transformed x and y coordinates.