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