AliceVision
Photogrammetric Computer Vision Framework
Public Member Functions | Protected Attributes | List of all members
aliceVision::camera::Distortion Class Referenceabstract

Abstract class to model the distortion of a camera-lense couple using a set of parameters. More...

#include <Distortion.hpp>

Inheritance diagram for aliceVision::camera::Distortion:
aliceVision::camera::DistortionBrown aliceVision::camera::DistortionFisheye aliceVision::camera::DistortionFisheye1 aliceVision::camera::DistortionRadialK1 aliceVision::camera::DistortionRadialK3 aliceVision::camera::DistortionRadialK3PT

Public Member Functions

virtual EDISTORTION getType () const =0
 
virtual Distortionclone () const =0
 
bool operator== (const Distortion &other) const
 
void setParameters (const std::vector< double > &params)
 
std::vector< double > & getParameters ()
 
const std::vector< double > & getParameters () const
 
std::size_t getDistortionParametersCount () const
 
virtual Vec2 addDistortion (const Vec2 &p) const
 Add distortion to the point p (assume p is in the camera frame [normalized coordinates])
 
virtual Vec2 removeDistortion (const Vec2 &p) const
 Remove distortion (return p' such that disto(p') = p)
 
virtual double getUndistortedRadius (double r) const
 
virtual Eigen::Matrix2d getDerivativeAddDistoWrtPt ([[maybe_unused]] const Vec2 &p) const
 
virtual Eigen::MatrixXd getDerivativeAddDistoWrtDisto ([[maybe_unused]] const Vec2 &p) const
 
virtual Eigen::Matrix2d getDerivativeRemoveDistoWrtPt ([[maybe_unused]] const Vec2 &p) const
 
virtual Eigen::MatrixXd getDerivativeRemoveDistoWrtDisto ([[maybe_unused]] const Vec2 &p) const
 
void setLocked (bool lock)
 
bool isLocked () const
 

Protected Attributes

std::vector< double > _distortionParams {}
 
bool _isLocked {false}
 

Detailed Description

Abstract class to model the distortion of a camera-lense couple using a set of parameters.

Note
Distortion models are expressed in terms of the camera's focal length.

The documentation for this class was generated from the following file: