![]() |
ImFusion C++ SDK 4.5.0
|
#include <RGBD/Include/ImFusion/RGBD/RGBDDataComponent.h>
RGBDDataComponent stores all calibration and configuration parameters for an RGBD sensor. More...
RGBDDataComponent stores all calibration and configuration parameters for an RGBD sensor.
This includes intrinsic and distortion parameters for both depth and color cameras, image sizes, and transformations between camera coordinate systems.
Intended usage:
Important aspects:
Example 1:
Example 2:
Note: All parameters are just set to some example values and do not represent a real sensor.
Public Member Functions | |
| RGBDDataComponent (const RGBDDataComponent &other)=default | |
| RGBDDataComponent (const CameraCalibrationDataComponent &camColor, const CameraCalibrationDataComponent &camDepth, const RGBDCalibrationDataComponent &rgbdCalib=RGBDCalibrationDataComponent(), const MultiCameraCalibrationDataComponent &multiCamCalib=MultiCameraCalibrationDataComponent()) | |
| RGBDDataComponent & | operator= (const RGBDDataComponent &other)=default |
| bool | operator== (const RGBDDataComponent &other) const |
| Checks for exact equality of all parameters. | |
| bool | isApprox (const RGBDDataComponent &other, double precision=std::numeric_limits< double >::epsilon()) const |
| Checks for approximate equality of all parameters within a given precision. | |
| std::string | id () const override |
| Returns the component type identifier. | |
| bool | valid (bool checkDepth=true, bool checkColor=true, bool checkConsistentCoordinateSystems=true) const |
| Checks if the component is valid (all required parameters set). | |
| CameraCalibrationDataComponent & | colorCameraCalibration () |
| Access to the color camera calibration data. | |
| const CameraCalibrationDataComponent & | colorCameraCalibration () const |
| CameraCalibrationDataComponent & | depthCameraCalibration () |
| Access to the depth camera calibration data.There will be no automatic consistency check between color and depth camera coordinate systems and the depthToColorT transform. | |
| const CameraCalibrationDataComponent & | depthCameraCalibration () const |
| RGBDCalibrationDataComponent & | rgbdCalibration () |
| Access to the RGBD-specific calibration data.There will be no automatic consistency check between color and depth camera coordinate systems and the depthToColorT transform. | |
| const RGBDCalibrationDataComponent & | rgbdCalibration () const |
| MultiCameraCalibrationDataComponent & | multiCameraCalibration () |
| Access to the multi-camera calibration data. Calibration is w.r.t. to the depth camera coordinate system. | |
| const MultiCameraCalibrationDataComponent & | multiCameraCalibration () const |
| void | setDescription (const std::string &description) |
| Sets/gets a human-readable description of the sensor. | |
| std::string | description () const |
| void | configure (const Properties *p) override |
| Configures the component from a Properties object. | |
| void | configuration (Properties *p) const override |
| Serializes the component to a Properties object. | |
| Public Member Functions inherited from ImFusion::DataComponent< RGBDDataComponent > | |
| std::unique_ptr< DataComponentBase > | clone () const override |
| Creates a clone of this data component. | |
| std::unique_ptr< Subclass > | cloneDerived () const |
| bool | assign (const DataComponentBase &other) override |
| Assigns the content of other to this data component. | |
| bool | equals (const DataComponentBase &other) const override |
| Compares this data component to other for equality. | |
| Public Member Functions inherited from ImFusion::Configurable | |
| virtual void | configureDefaults () |
| Retrieve the properties of this object, replaces values with their defaults and sets it again. | |
| void | registerParameter (ParameterBase *param) |
| Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration(). | |
| void | unregisterParameter (const ParameterBase *param) |
| Remove the given Parameter or SubProperty from the list of registered parameters. | |
| Configurable (const Configurable &rhs) | |
| Configurable (Configurable &&rhs) noexcept | |
| Configurable & | operator= (const Configurable &) |
| Configurable & | operator= (Configurable &&) noexcept |
Static Public Member Functions | |
| static RGBDDataComponent * | fromProperties (Properties *p) |
| Creates a component from a Properties object. | |
Additional Inherited Members | |
| Public Attributes inherited from ImFusion::Configurable | |
| Signal | signalParametersChanged |
| Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
| Protected Member Functions inherited from ImFusion::DataComponentBase | |
| DataComponentBase (const DataComponentBase &)=default | |
| DataComponentBase & | operator= (const DataComponentBase &other)=default |
| Protected Attributes inherited from ImFusion::Configurable | |
| std::vector< Param > | m_params |
| List of all registered Parameter and SubProperty instances. | |
|
inlineoverridevirtual |
Returns the component type identifier.
Implements ImFusion::DataComponentBase.
| CameraCalibrationDataComponent & ImFusion::RGBDDataComponent::colorCameraCalibration | ( | ) |
Access to the color camera calibration data.
There will be no automatic consistency check between color and depth camera coordinate systems and the depthToColorT transform. User has to ensure consistency manually, but can use the valid() method for checking consistency.
| CameraCalibrationDataComponent & ImFusion::RGBDDataComponent::depthCameraCalibration | ( | ) |
Access to the depth camera calibration data.There will be no automatic consistency check between color and depth camera coordinate systems and the depthToColorT transform.
User has to ensure consistency manually, but can use the valid() method for checking consistency.
| RGBDCalibrationDataComponent & ImFusion::RGBDDataComponent::rgbdCalibration | ( | ) |
Access to the RGBD-specific calibration data.There will be no automatic consistency check between color and depth camera coordinate systems and the depthToColorT transform.
User has to ensure consistency manually, but can use the valid() method for checking consistency.
|
overridevirtual |
Configures the component from a Properties object.
For serialization we only store the depth pose in the properties
Reimplemented from ImFusion::Configurable.
|
overridevirtual |
Serializes the component to a Properties object.
For serialization we only store the depth pose in the properties
Reimplemented from ImFusion::Configurable.