CVBpy 15.0
LineScanCalibrator Class Reference

Result of the linescan calibration executed by the cvb.foundation.create_line_scan_calibration function. More...

Inherits object.

Properties

 mean_error = property
 float: Mean difference between stripe width in the transformed image and reference (calculated over all stripes).
 
 pixel_size = property
 float: Pixel size after transformation. More...
 
 standard_deviation = property
 float: Standard deviation of the mean error.
 
 transformation = property
 cvb.foundation.NonLinearTransformation: Transformation object. More...
 

Detailed Description

Result of the linescan calibration executed by the cvb.foundation.create_line_scan_calibration function.

Property Documentation

◆ pixel_size

pixel_size = property
static

float: Pixel size after transformation.

The pixel size has the same units as reference_distance_calibration_points and reference_width_stripes given within function cvb.foundation.create_line_scan_calibration.

◆ transformation

transformation = property
static

cvb.foundation.NonLinearTransformation: Transformation object.

The transformation object includes the coefficients of a 3rd order polynomial. Mixed coefficients are zero. Depending on the scan direction cvb.foundation.ScanDirection specified in cvb.foundation.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.