Struct DistortionModelInterface

Inheritance Relationships

Derived Types

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