![]() |
Zivid C++ API 2.19.0+b5c53d0f-1
|
Representation of the estimated errors of a calibrated hand-eye transform. More...
#include <Zivid/Calibration/HandEyeResidual.h>
Public Member Functions | |
| ZIVID_CORE_EXPORT | HandEyeResidual (float rotation, float translation, float spatialExtent=std::numeric_limits< float >::quiet_NaN(), float pointRMSE=std::numeric_limits< float >::quiet_NaN()) |
| Constructs a hand-eye residual instance. | |
| ZIVID_CORE_EXPORT float | rotation () const |
| Rotational residual in degrees. | |
| ZIVID_CORE_EXPORT float | translation () const |
| Translational residual. | |
| ZIVID_CORE_EXPORT float | spatialExtent () const |
| Spatial extent (RMS radius about the centroid) of the feature points used for this pose, in the same unit as the inputs (millimetres by default). | |
| ZIVID_CORE_EXPORT float | pointRMSE () const |
| Per-pose root-mean-square of the per-feature distances between the reference feature set and this capture's feature set, in the same unit as the inputs (millimetres by default). | |
| ZIVID_CORE_EXPORT std::string | toString () const |
| Get string representation of the hand-eye residual. | |
Representation of the estimated errors of a calibrated hand-eye transform.
| ZIVID_CORE_EXPORT Zivid::Calibration::HandEyeResidual::HandEyeResidual | ( | float | rotation, |
| float | translation, | ||
| float | spatialExtent = std::numeric_limits< float >::quiet_NaN(), | ||
| float | pointRMSE = std::numeric_limits< float >::quiet_NaN() ) |
Constructs a hand-eye residual instance.
| rotation | Residual for rotation part. |
| translation | Residual for translation part. |
| spatialExtent | Spatial extent of the feature points, see spatialExtent(). |
| pointRMSE | Per-feature root-mean-square distance, see pointRMSE(). |
| ZIVID_CORE_EXPORT float Zivid::Calibration::HandEyeResidual::pointRMSE | ( | ) | const |
Per-pose root-mean-square of the per-feature distances between the reference feature set and this capture's feature set, in the same unit as the inputs (millimetres by default).
The translation residual compares only the centroids of the two feature sets, so opposing per-feature errors cancel in it. They do not cancel here. NaN when the pose has no shared features.
| ZIVID_CORE_EXPORT float Zivid::Calibration::HandEyeResidual::rotation | ( | ) | const |
Rotational residual in degrees.
| ZIVID_CORE_EXPORT float Zivid::Calibration::HandEyeResidual::spatialExtent | ( | ) | const |
Spatial extent (RMS radius about the centroid) of the feature points used for this pose, in the same unit as the inputs (millimetres by default).
This is the lever arm over which orientation acts: dividing the per-pose translational spread of the feature points (see pointRMSE()) by this extent gives the rotational "noise floor" — the smallest orientation the data can resolve for this pose. A rotational residual at or below that floor is weakly constrained. NaN when the pose has fewer than two usable feature points.
| ZIVID_CORE_EXPORT std::string Zivid::Calibration::HandEyeResidual::toString | ( | ) | const |
Get string representation of the hand-eye residual.
| ZIVID_CORE_EXPORT float Zivid::Calibration::HandEyeResidual::translation | ( | ) | const |
Translational residual.
The unit of the residual is the same as the unit of the hand-eye inputs. Zivid point clouds are, by default, in millimeters.