Namespaces | Functions
LensCalibration

Namespaces

namespace  sal3d::LensDistortion
 

Namespace for the Lens Distortion classes and functions.


Functions

Model sal3d::LensDistortion::calibrateTsai (const std::vector< sal3d::Frame > &frames, int patternRows, int patternCols, int &nvalid, std::vector< Point2D > &points)
 Calculates a Tsai model to compensate the lens distortion.
Model sal3d::LensDistortion::calibrateTsai (const std::vector< sal3d::Frame > &frames, int patternRows, int patternCols)
 Calculates a Tsai model to compensate the lens distortion.
Model sal3d::LensDistortion::calibrateTsai (const sal3d::Frame &frame, int patternRows, int patternCols)
 Calculates a Tsai model to compensate the lens distortion.
Model sal3d::LensDistortion::calibrateDotsTsai (const std::vector< sal3d::Frame > &frames, int &patternRows, int &patternCols, int &nvalid, std::vector< Point2D > &points)
 Calculates a Tsai model to compensate the lens distortion.
Model sal3d::LensDistortion::calibrateDotsTsai (const std::vector< sal3d::Frame > &frames)
 Calculates a Tsai model to compensate the lens distortion.
Model sal3d::LensDistortion::calibrateDotsTsai (const sal3d::Frame &frame)
 Calculates a Tsai model to compensate the lens distortion.
Model sal3d::LensDistortion::calibrateDotsCubic (const sal3d::Frame &frame)
 Calculates a cubic polinomial model to compensate the lens distortion.
Model sal3d::LensDistortion::calibrateDotsCubic (const sal3d::Frame &frame, int &patternRows, int &patternCols, std::vector< Point2D > &points)
 Calculates a cubic polinomial model to compensate the lens distortion.
Model sal3d::LensDistortion::calibrateCubic (const sal3d::Frame &frame, int patternRows, int patternCols, std::vector< Point2D > &points)
 Calculates a Tsai model to compensate the lens distortion.

Function Documentation

Model sal3d::LensDistortion::calibrateCubic ( const sal3d::Frame frame,
int  patternRows,
int  patternCols,
std::vector< Point2D > &  points 
) [inline]

Calculates a Tsai model to compensate the lens distortion.

This function requires linking with lenscalib.lib (import library for lenscalib.dll).

Provided a Frame object containing the acquired chessboard with the camera, this functions calculates the CubicModel that can later be applied to do the metric calibration and obtain undisorted COP objects. The function also needs to know the number of rows and columns of the chessboard pattern, in order for the detection to succeed.

Parameters:
[in]frameThe Frame of the chessboard pattern acquired with the camera.
[in]patternRowsThe number of rows of the calibration pattern.
[in]patternColsThe number of columns of the calibration pattern.
[out]pointsList of detected points.
Returns:
The TsaiModel that corrects the lens distortion.
Exceptions:
sal3d::ErrorOn error

References sal3d::Frame::c_frame().

Model sal3d::LensDistortion::calibrateDotsCubic ( const sal3d::Frame frame) [inline]

Calculates a cubic polinomial model to compensate the lens distortion.

This function requires linking with lenscalib.lib (import library for lenscalib.dll).

Provided a Frame object containing the acquired black dot pattern with the camera, this functions calculates the CubicModel that can later be applied to do the metric calibration and obtain undisorted COP objects.

Parameters:
[in]frameThe Frame of the dots pattern acquired with the camera.
Returns:
The CibucModel that corrects the lens distortion.
Exceptions:
sal3d::ErrorOn error

References sal3d::Frame::c_frame().

Model sal3d::LensDistortion::calibrateDotsCubic ( const sal3d::Frame frame,
int &  patternRows,
int &  patternCols,
std::vector< Point2D > &  points 
) [inline]

Calculates a cubic polinomial model to compensate the lens distortion.

This function requires linking with lenscalib.lib (import library for lenscalib.dll).

Provided a Frame object containing the acquired black dot pattern with the camera, this functions calculates the CubicModel that can later be applied to do the metric calibration and obtain undisorted COP objects.

Parameters:
[in]frameThe Frame of the dots pattern acquired with the camera.
[out]patternRowsThe number of rows found in the calibration pattern.
[out]patternColsThe number of columns found in the calibration pattern.
[out]pointsList of detected points.
Returns:
The CibucModel that corrects the lens distortion.
Exceptions:
sal3d::ErrorOn error

References sal3d::Frame::c_frame().

Model sal3d::LensDistortion::calibrateDotsTsai ( const std::vector< sal3d::Frame > &  frames,
int &  patternRows,
int &  patternCols,
int &  nvalid,
std::vector< Point2D > &  points 
) [inline]

Calculates a Tsai model to compensate the lens distortion.

This function requires linking with lenscalib.lib (import library for lenscalib.dll).

Provided a set of Frame objects containing the acquired black dot pattern with the camera, this functions calculates the TsaiModel that can later be applied to do the metric calibration and obtain undisorted COP objects.

The function will find the number of rows and columns of the dots pattern.

The number of frames that were considered valid and the coordinates of the detected dots are also given.

Parameters:
[in]framesThe Frames of the dots pattern acquired with the camera.
[out]patternRowsThe number of rows found in the calibration pattern.
[out]patternColsThe number of columns found in the calibration pattern.
[out]nvalidNumber of Frames for which it was possible to correctly detect the pattern.
[out]pointsList of detected points.
Returns:
The TsaiModel that corrects the lens distortion.
Exceptions:
sal3d::ErrorOn error

Referenced by sal3d::LensDistortion::calibrateDotsTsai().

Model sal3d::LensDistortion::calibrateDotsTsai ( const std::vector< sal3d::Frame > &  frames) [inline]

Calculates a Tsai model to compensate the lens distortion.

This function requires linking with lenscalib.lib (import library for lenscalib.dll).

Provided a set of Frame objects containing the acquired black dot pattern with the camera, this functions calculates the TsaiModel that can later be applied to do the metric calibration and obtain undisorted COP objects.

Parameters:
[in]framesThe Frames of the dots pattern acquired with the camera.
Returns:
The TsaiModel that corrects the lens distortion.
Exceptions:
sal3d::ErrorOn error

References sal3d::LensDistortion::calibrateDotsTsai().

Model sal3d::LensDistortion::calibrateDotsTsai ( const sal3d::Frame frame) [inline]

Calculates a Tsai model to compensate the lens distortion.

This function requires linking with lenscalib.lib (import library for lenscalib.dll).

Provided a Frame object containing the acquired black dot pattern with the camera, this functions calculates the TsaiModel that can later be applied to do the metric calibration and obtain undisorted COP objects.

Parameters:
[in]frameThe Frame of the dots pattern acquired with the camera.
Returns:
The TsaiModel that corrects the lens distortion.
Exceptions:
sal3d::ErrorOn error

References sal3d::LensDistortion::calibrateDotsTsai().

Model sal3d::LensDistortion::calibrateTsai ( const std::vector< sal3d::Frame > &  frames,
int  patternRows,
int  patternCols,
int &  nvalid,
std::vector< Point2D > &  points 
) [inline]

Calculates a Tsai model to compensate the lens distortion.

This function requires linking with lenscalib.lib (import library for lenscalib.dll).

Provided a set of Frame objects containing the acquired chessboard with the camera, this functions calculates the TsaiModel that can later be applied to do the metric calibration and obtain undisorted COP objects. The function also needs to know the number of rows and columns of the chessboard pattern, in order for the detection to succeed.

The number of frames that were considered valid and the coordinates of the detected intersections are also given.

Parameters:
[in]framesThe Frames of the chessboard pattern acquired with the camera.
[in]patternRowsThe number of rows of the calibration pattern.
[in]patternColsThe number of columns of the calibration pattern.
[out]nvalidNumber of Frames for which it was possible to correctly detect the pattern.
[out]pointsList of detected points.
Returns:
The TsaiModel that corrects the lens distortion.
Exceptions:
sal3d::ErrorOn error

Referenced by sal3d::LensDistortion::calibrateTsai().

Model sal3d::LensDistortion::calibrateTsai ( const std::vector< sal3d::Frame > &  frames,
int  patternRows,
int  patternCols 
) [inline]

Calculates a Tsai model to compensate the lens distortion.

This function requires linking with lenscalib.lib (import library for lenscalib.dll).

Provided a set of Frame objects containing the acquired chessboard with the camera, this functions calculates the TsaiModel that can later be applied to do the metric calibration and obtain undisorted COP objects. The function also needs to know the number of rows and columns of the chessboard pattern, in order for the detection to succeed.

Parameters:
[in]framesThe Frames of the chessboard pattern acquired with the camera.
[in]patternRowsThe number of rows of the calibration pattern.
[in]patternColsThe number of columns of the calibration pattern.
Returns:
The TsaiModel that corrects the lens distortion.
Exceptions:
sal3d::ErrorOn error

References sal3d::LensDistortion::calibrateTsai().

Model sal3d::LensDistortion::calibrateTsai ( const sal3d::Frame frame,
int  patternRows,
int  patternCols 
) [inline]

Calculates a Tsai model to compensate the lens distortion.

This function requires linking with lenscalib.lib (import library for lenscalib.dll).

Provided a Frame object containing the acquired chessboard with the camera, this functions calculates the TsaiModel that can later be applied to do the metric calibration and obtain undisorted COP objects. The function also needs to know the number of rows and columns of the chessboard pattern, in order for the detection to succeed.

Parameters:
[in]frameThe Frame of the chessboard pattern acquired with the camera.
[in]patternRowsThe number of rows of the calibration pattern.
[in]patternColsThe number of columns of the calibration pattern.
Returns:
The TsaiModel that corrects the lens distortion.
Exceptions:
sal3d::ErrorOn error

References sal3d::LensDistortion::calibrateTsai().