Struct RieglDistortion
Defined in File DistortionModels.hpp
Inheritance Relationships
Base Type
public lvr2::DistortionModelInterface(Struct DistortionModelInterface)
Struct Documentation
-
struct RieglDistortion : public lvr2::DistortionModelInterface
Implementation of the riegl distortion model.
Public Functions
-
RieglDistortion(const std::vector<double> &coeffs)
-
RieglDistortion() = default
-
RieglDistortion(const RieglDistortion&) = default
-
RieglDistortion(RieglDistortion&&) = default
-
RieglDistortion &operator=(const RieglDistortion&) = default
-
RieglDistortion &operator=(RieglDistortion&&) = 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[] = "riegl"
-
RieglDistortion(const std::vector<double> &coeffs)