#include <ImFusion/Vision/CameraCalibrationDataComponent.h>
A data component storing mainly the intrinsic calibration of a pinhole camera Information such as image size, extrinsic poses and distortions are also stored Debug values like MRE and standard deviations estimated for intrinsic parameters, which are used for evaluating the calibration results during the calibration process are also saved here.
More...
A data component storing mainly the intrinsic calibration of a pinhole camera Information such as image size, extrinsic poses and distortions are also stored Debug values like MRE and standard deviations estimated for intrinsic parameters, which are used for evaluating the calibration results during the calibration process are also saved here.
|
|
Parameter< vec2i > | p_imageSize = {"imageSize", vec2i::Zero(), this} |
| |
|
Parameter< mat3 > | p_K = {"K", mat3::Zero(), this} |
| |
|
Parameter< vec5 > | p_distortion = {"distortion", vec5::Zero(), this} |
| |
|
Parameter< mat4 > | p_camToWorldT = {"registration", mat4::Identity(), this} |
| |
|
Parameter< double > | p_mre = {"mre", 0., this} |
| |
|
Parameter< vec4 > | p_stdK = {"stdK", vec4::Zero(), this} |
| |
|
Parameter< vec5 > | p_stdDistortion = {"stdDistortion", vec5::Zero(), this} |
| |
|
Signal | signalParametersChanged |
| | Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
|
| |
|
| std::string | id () const override |
| | Returns a unique string identifier for this type of data component.
|
| |
◆ id()
Returns a unique string identifier for this type of data component.
- Note
- To avoid conflicts make sure to include potential plugin names into this ID. Due to the modular architecture of the ImFusion library, uniqueness of IDs cannot be checked at compile time. However, DataComponentFactory will check the uniqueness of the ID during registration.
Implements DataComponentBase.
◆ checkImageSizeAndCalibrationConsistency()
| bool checkImageSizeAndCalibrationConsistency |
( |
const vec2i & | size | ) |
const |
Checks if the physical image size and the size in CameraCalibrationDataComponent are consistent.
- Parameters
-
- Returns
true if the sizes are consistent, false otherwise
◆ adaptCalibrationToCropping()
| bool adaptCalibrationToCropping |
( |
const vec4i & | cropBox | ) |
|
Adapts the intrinsic calibration to a cropped image.
- Parameters
-
| cropBox | The crop box in pixel in COCO format (upper left x , upper left y, width, height) |
- Returns
true if the calibration was adapted, false otherwise
◆ adaptCalibrationToPadding()
| bool adaptCalibrationToPadding |
( |
const vec4i & | padValues | ) |
|
Adapts the intrinsic calibration to a padded image.
- Parameters
-
| padValues | The padding values (left, right, top, bottom) |
- Returns
true if the calibration was adapted, false otherwise
◆ adaptCalibrationToResizing()
| bool adaptCalibrationToResizing |
( |
const vec2i & | newSize | ) |
|
Adapts the intrinsic calibration to a resized image.
- Note
- Please make sure the previous image size was consistent with the calibration data. You can do this with
checkImageSizeAndCalibrationConsistency prior to resizing the image. If not please make sure you update it throughout the pipeline.
- Parameters
-
| newSize | The new image size |
- Returns
true if the calibration was adapted, false otherwise
◆ configure()
The documentation for this class was generated from the following file:
- ImFusion/Vision/CameraCalibrationDataComponent.h