Struct DistortionModelInterface
Defined in File DistortionModels.hpp
Inheritance Relationships
Derived Types
public lvr2::OpenCVDistortion(Struct OpenCVDistortion)public lvr2::RieglDistortion(Struct RieglDistortion)public lvr2::UnknownDistortion(Struct UnknownDistortion)
Struct Documentation
-
struct DistortionModelInterface
Subclassed by lvr2::OpenCVDistortion, lvr2::RieglDistortion, lvr2::UnknownDistortion
Public Functions
-
virtual Vector2d distortPoint(const Vector2d &p) const = 0
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
-
virtual const std::vector<double> &coefficients() const = 0
Access to the internal distortion coefficients used for serialization.
- Returns:
A const reference to the internal distortion coefficients vector
-
virtual std::string name() const = 0
Access to the name of the distortion model used for serialization.
- Returns:
A std::string containing the model name
-
virtual Vector2d distortPoint(const Vector2d &p) const = 0