A set of parameters, which is used to configure linescan calibration calculated with function CreateLineScanCalibration.
More...
#include <cvb/foundation/calibration_line_scan.hpp>
A set of parameters, which is used to configure linescan calibration calculated with function CreateLineScanCalibration.
◆ LineScanCalibrationConfiguration()
Constructor for linescan calibration configuration.
- Parameters
-
[in] | maxIterations | Number of maximal iterations for all nonlinear solvers in the calibration algorithm. |
[in] | polyDegree | A positive (or zero) integer value that defines the polynomial to be used. Note, that currently only a polynomial of degree 3 is supported. |
[in] | tolerance | Value for early stopping criteria. |
[in] | scanDirection | Scanning direction of camera. |
[in] | preDefinedPixelSizeMode | Decision if predefined pixel size needs to be used. |
[in] | pixelSize | Pixel size of transformed image. |
- Exceptions
-
Does | not throw any exception. |
◆ MaxIterations()
Gets the number of maximal iterations for all nonlinear solvers in the calibration algorithm.
See SetMaxIterations for details.
- Returns
- The number of maximal iterations for all nonlinear solvers in the calibration algorithm.
- Exceptions
-
Does | not throw any exception. |
◆ PixelSize()
double PixelSize |
( |
| ) |
const |
|
inlinenoexcept |
Gets the pixel size of transformed image.
See SetPixelSize for details.
- Returns
- The pixel size of transformed image.
- Exceptions
-
Does | not throw any exception. |
This parameter is used if and only if pre-defined pixel size is used. Then this value is the (fixed) metric resolution of the calibrated image.
◆ PolyDegree()
Gets a positive (or zero) integer value that defines the polynomial to be used.
See SetPolyDegree for details.
- Returns
- A positive (or zero) integer value that defines the polynomial to be used.
- Exceptions
-
Does | not throw any exception. |
By now only PolyDegree that is equal to 3 is supported.
◆ PreDefinedPixelSizeMode()
Gets the decision if the calibrator uses predefined pixel size.
See SetPreDefinedPixelSizeMode for details.
- Returns
- The decision if it uses predefined pixel size.
- Exceptions
-
Does | not throw any exception. |
◆ ScanDirection()
Gets the scanning direction of camera.
- Returns
- The scanning direction of camera.
- Exceptions
-
Does | not throw any exception. |
◆ SetMaxIterations()
Sets number of maximal iterations for all nonlinear solvers in the calibration algorithm.
For linescan calibration through polynomial this is used twice for finding the best polynomial to equalize the differences between edge points and to find the right feed-forward factor.
- Parameters
-
[in] | maxIterations | The number of maximal iterations for all non linear solvers in the calibration algorithm. |
- Exceptions
-
Does | not throw any exception. |
◆ SetPixelSize()
void SetPixelSize |
( |
double |
pixelSize | ) |
|
|
inlinenoexcept |
Sets the pixel size of transformed image.
This value will only be considered, if PreDefinedPixelSizeMode is set to PreDefinedPixelSizeMode::Use. The pixel size of the transformed image will be equal to pixelSize. It must have the same units as referenceDistanceCalibrationPoints and referenceWidthStripes specified in CreateLineScanCalibration.
- Parameters
-
[in] | pixelSize | The pixel size of transformed image. |
- Exceptions
-
Does | not throw any exception. |
◆ SetPolyDegree()
Sets a positive (or zero) integer value that defines the polynomial to be used.
Note, that currently only a polynomial of degree 3 is supported.
- Parameters
-
[in] | polyDegree | A positive (or zero) integer value that defines the polynomial to be used. |
- Exceptions
-
Does | not throw any exception. |
◆ SetPreDefinedPixelSizeMode()
Sets the decision if predefined pixel size needs to be used.
If this value is set to PreDefinedPixelSizeMode::Use, the transformed image will have a fixed pixel size. The desired pixel size has to be set with SetPixelSize.
- Parameters
-
[in] | preDefinedPixelSize | The decision if predefined pixel size needs to be used. |
- Exceptions
-
Does | not throw any exception. |
◆ SetScanDirection()
Sets the scanning direction of camera.
- Parameters
-
[in] | scanDirection | The scanning direction of camera. |
- Exceptions
-
Does | not throw any exception. |
◆ SetTolerance()
void SetTolerance |
( |
double |
tolerance | ) |
|
|
inlinenoexcept |
Sets the value for early stopping criteria.
Value that is used for stopping criteria in the nonlinear solvers.
- Parameters
-
[in] | tolerance | The value for early stopping criteria. |
- Exceptions
-
Does | not throw any exception. |
◆ Tolerance()
double Tolerance |
( |
| ) |
const |
|
inlinenoexcept |
Gets the value for early stopping criteria.
See SetTolerance for details.
- Returns
- The value for early stopping criteria.
- Exceptions
-
Does | not throw any exception. |