Struct OpenCVDistortion
Defined in File DistortionModels.hpp
Inheritance Relationships
Base Type
public lvr2::DistortionModelInterface(Struct DistortionModelInterface)
Struct Documentation
-
struct OpenCVDistortion : public lvr2::DistortionModelInterface
Public Functions
-
OpenCVDistortion(const std::vector<double> &coeffs)
-
OpenCVDistortion() = default
-
OpenCVDistortion(const OpenCVDistortion&) = default
-
OpenCVDistortion(OpenCVDistortion&&) = default
-
OpenCVDistortion &operator=(const OpenCVDistortion&) = default
-
OpenCVDistortion &operator=(OpenCVDistortion&&) = default
-
inline virtual lvr2::Vector2d distortPoint(const lvr2::Vector2d &p) const override
Distorts a point using the internal distortion model.
- Parameters:
p – The point to distort in normalized image coordinates (x and y in [-1, 1])
- Returns:
The distorted point in normalized image coordinates
-
inline virtual std::string name() const override
Access to the name of the distortion model used for serialization.
- Returns:
A std::string containing the model name
-
inline virtual const std::vector<double> &coefficients() const override
Access to the internal distortion coefficients used for serialization.
- Returns:
A const reference to the internal distortion coefficients vector
Public Members
-
std::vector<double> coefficients_
Public Static Attributes
-
static constexpr char type[] = "opencv"
-
OpenCVDistortion(const std::vector<double> &coeffs)