|
libfreenect2 0.4
Open source driver for the Kinect for Windows v2 (K4W2) sensor
|
Versioned user calibration for conventional depth-to-color geometry. More...
#include <libfreenect2/calibration_profile.h>
Public Member Functions | |
| CalibrationProfile () | |
| CalibrationProfile (const CalibrationProfile &other) | |
| CalibrationProfile (CalibrationProfile &&other) noexcept | |
| CalibrationProfile & | operator= (const CalibrationProfile &other) |
| CalibrationProfile & | operator= (CalibrationProfile &&other) noexcept |
| ~CalibrationProfile () | |
| uint32_t | schemaVersion () const |
| const std::string & | serial () const |
| const std::string & | firmware () const |
| void | setDeviceIdentity (const std::string &serial, const std::string &firmware) |
| const ProjectiveCameraModel & | colorCamera () const |
| const ProjectiveCameraModel & | irCamera () const |
| const RigidTransform & | depthToColor () const |
| void | setColorCamera (const ProjectiveCameraModel &camera) |
| void | setIrCamera (const ProjectiveCameraModel &camera) |
| void | setDepthToColor (const RigidTransform &transform) |
| bool | hasDepthCorrection () const |
| const DepthCorrectionProfile & | depthCorrection () const |
| void | setDepthCorrection (const DepthCorrectionProfile &correction) |
| void | clearDepthCorrection () |
| bool | hasQualityMetrics () const |
| const CalibrationQualityMetrics & | qualityMetrics () const |
| void | setQualityMetrics (const CalibrationQualityMetrics &quality) |
| void | clearQualityMetrics () |
| const std::string & | createdUtc () const |
| const std::string & | toolVersion () const |
| const std::string & | jobSha256 () const |
| void | setProvenance (const std::string &created_utc, const std::string &tool_version, const std::string &job_sha256) |
| bool | isValid (std::string *error=nullptr) const |
| bool | matchesDevice (const std::string &serial, const std::string &firmware, bool allow_serial_mismatch, std::string *warning=nullptr, std::string *error=nullptr) const |
| Check binding identity. | |
| bool | save (const std::string &path, std::string *error=nullptr) const |
Static Public Member Functions | |
| static bool | load (const std::string &path, CalibrationProfile &profile, std::string *error=nullptr) |
Versioned user calibration for conventional depth-to-color geometry.
A moved-from profile may only be assigned to, copied from, or destroyed; copying from one yields a default-constructed profile. Other member functions require an object that has not been moved from.
| CalibrationProfile | ( | ) |
Referenced by CalibrationProfile(), CalibrationProfile(), load(), operator=(), and operator=().
| CalibrationProfile | ( | const CalibrationProfile & | other | ) |
References CalibrationProfile().
|
noexcept |
References CalibrationProfile().
| ~CalibrationProfile | ( | ) |
| CalibrationProfile & operator= | ( | const CalibrationProfile & | other | ) |
References CalibrationProfile().
|
noexcept |
References CalibrationProfile().
| uint32_t schemaVersion | ( | ) | const |
| const std::string & serial | ( | ) | const |
Referenced by matchesDevice(), and setDeviceIdentity().
| const std::string & firmware | ( | ) | const |
Referenced by matchesDevice(), and setDeviceIdentity().
| void setDeviceIdentity | ( | const std::string & | serial, |
| const std::string & | firmware ) |
References firmware(), and serial().
| const ProjectiveCameraModel & colorCamera | ( | ) | const |
| const ProjectiveCameraModel & irCamera | ( | ) | const |
| const RigidTransform & depthToColor | ( | ) | const |
| void setColorCamera | ( | const ProjectiveCameraModel & | camera | ) |
| void setIrCamera | ( | const ProjectiveCameraModel & | camera | ) |
| void setDepthToColor | ( | const RigidTransform & | transform | ) |
| bool hasDepthCorrection | ( | ) | const |
| const DepthCorrectionProfile & depthCorrection | ( | ) | const |
| void setDepthCorrection | ( | const DepthCorrectionProfile & | correction | ) |
| void clearDepthCorrection | ( | ) |
| bool hasQualityMetrics | ( | ) | const |
| const CalibrationQualityMetrics & qualityMetrics | ( | ) | const |
| void setQualityMetrics | ( | const CalibrationQualityMetrics & | quality | ) |
| void clearQualityMetrics | ( | ) |
| const std::string & createdUtc | ( | ) | const |
| const std::string & toolVersion | ( | ) | const |
| const std::string & jobSha256 | ( | ) | const |
| void setProvenance | ( | const std::string & | created_utc, |
| const std::string & | tool_version, | ||
| const std::string & | job_sha256 ) |
| bool isValid | ( | std::string * | error = nullptr | ) | const |
| bool matchesDevice | ( | const std::string & | serial, |
| const std::string & | firmware, | ||
| bool | allow_serial_mismatch, | ||
| std::string * | warning = nullptr, | ||
| std::string * | error = nullptr ) const |
Check binding identity.
Firmware mismatches are returned as warnings.
References firmware(), and serial().
| bool save | ( | const std::string & | path, |
| std::string * | error = nullptr ) const |
|
static |
References CalibrationProfile().