IDS peak ICV v1.1.0
Loading...
Searching...
No Matches
CameraCalibration Class Reference

#include <peak_icv/algorithms/calibration/peak_icv_camera_calibration.hpp>

Public Member Functions

 CameraCalibration (CalibrationPlate calibrationPlate)
 Constructs a CameraCalibration with the given calibration plate.
 
CalibrationResult Process (const std::vector< Image > &images) const
 Calculates intrinsic and extrinsic parameters.
 

Detailed Description

Camera calibration representation holding the logic to compute intrinsic and extrinsic parameters.

This class represents the camera calibration process. It requires a CalibrationPlate instance that provides the world coordinates of the reference points on the physical calibration plate. These points are needed to calculate the camera parameters.

The main operation is the CameraCalibration::Process() method, which calculates intrinsic and extrinsic parameters from input images.

Since
ids_peak_icv 1.1

Definition at line 44 of file peak_icv_camera_calibration.hpp.

Constructor & Destructor Documentation

◆ CameraCalibration()

CameraCalibration ( CalibrationPlate calibrationPlate)
inlineexplicit

Constructs a CameraCalibration with the given calibration plate.

Parameters
[in]calibrationPlateHolds the world coordinates of the reference points.
Since
ids_peak_icv 1.1

Definition at line 91 of file peak_icv_camera_calibration.hpp.

Member Function Documentation

◆ Process()

CalibrationResult Process ( const std::vector< Image > & images) const
inline

Calculates intrinsic and extrinsic parameters.

Processes several images showing the calibration plate in different poses to accurately calculate camera calibration parameters.

The calibration process involves detecting the reference points in the images and matching them to their known world coordinates provided by the calibration plate. Using these correspondences, the method estimates the camera’s intrinsic parameters (such as focal length and distortion) and extrinsic parameters (position and orientation).

Note
This operation disregards any specified image regions. It processes the entire image.
Parameters
[in]imagesA vector of images of a calibration plate in different poses.
Returns
The calibration results, including intrinsic and extrinsic parameters.
Exceptions
NotSupportedExceptionIf the pattern of the calibration plate is not supported or the image has an unsupported format.
MismatchExceptionIf the images do not all have the same size.
TargetNotFoundExceptionIf the marker points were not found on the specified image.
Since
ids_peak_icv 1.1

Definition at line 95 of file peak_icv_camera_calibration.hpp.