39 #ifndef INCLUDE_OKVIS_CAMERAS_RADIALTANGENTIALDISTORTION_HPP_
40 #define INCLUDE_OKVIS_CAMERAS_RADIALTANGENTIALDISTORTION_HPP_
54 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
73 inline bool setParameters(
const Eigen::VectorXd & parameters);
83 inline std::string
type()
const
85 return "RadialTangentialDistortion";
100 return std::shared_ptr<DistortionBase>(
117 inline bool distort(
const Eigen::Vector2d & pointUndistorted,
118 Eigen::Vector2d * pointDistorted)
const;
126 inline bool distort(
const Eigen::Vector2d & pointUndistorted,
127 Eigen::Vector2d * pointDistorted,
128 Eigen::Matrix2d * pointJacobian,
129 Eigen::Matrix2Xd * parameterJacobian = NULL)
const;
139 const Eigen::Vector2d & pointUndistorted,
140 const Eigen::VectorXd & parameters, Eigen::Vector2d * pointDistorted,
141 Eigen::Matrix2d * pointJacobian = NULL,
142 Eigen::Matrix2Xd * parameterJacobian = NULL)
const;
153 inline bool undistort(
const Eigen::Vector2d & pointDistorted,
154 Eigen::Vector2d * pointUndistorted)
const;
161 inline bool undistort(
const Eigen::Vector2d & pointDistorted,
162 Eigen::Vector2d * pointUndistorted,
163 Eigen::Matrix2d * pointJacobian)
const;
Eigen::Matrix< double, NumDistortionIntrinsics, 1 > parameters_
all distortion parameters
Definition: RadialTangentialDistortion.hpp:167
std::string type() const
The class type.
Definition: RadialTangentialDistortion.hpp:83
static std::shared_ptr< DistortionBase > createTestObject()
Unit test support – create a test distortion object.
Definition: RadialTangentialDistortion.hpp:98
double k1_
radial parameter 1
Definition: RadialTangentialDistortion.hpp:169
bool distort(const Eigen::Vector2d &pointUndistorted, Eigen::Vector2d *pointDistorted) const
Distortion only.
Definition: RadialTangentialDistortion.hpp:86
static RadialTangentialDistortion testObject()
Unit test support – create a test distortion object.
Definition: RadialTangentialDistortion.hpp:104
double p1_
tangential parameter 1
Definition: RadialTangentialDistortion.hpp:171
double p2_
tangential parameter 2
Definition: RadialTangentialDistortion.hpp:172
Header implementation file for the RadialTangentialDistortion class.
bool distortWithExternalParameters(const Eigen::Vector2d &pointUndistorted, const Eigen::VectorXd ¶meters, Eigen::Vector2d *pointDistorted, Eigen::Matrix2d *pointJacobian=NULL, Eigen::Matrix2Xd *parameterJacobian=NULL) const
Distortion and Jacobians using external distortion intrinsics parameters.
Definition: RadialTangentialDistortion.hpp:155
Header file for the DistortionBase class.
int numDistortionIntrinsics() const
Number of distortion parameters.
Definition: RadialTangentialDistortion.hpp:89
bool setParameters(const Eigen::VectorXd ¶meters)
set the generic parameters
Definition: RadialTangentialDistortion.hpp:72
bool getParameters(Eigen::VectorXd ¶meters) const
Obtain the generic parameters.
Definition: RadialTangentialDistortion.hpp:76
Definition: RadialTangentialDistortion.hpp:51
Base class for all distortion models.
Definition: DistortionBase.hpp:52
bool undistort(const Eigen::Vector2d &pointDistorted, Eigen::Vector2d *pointUndistorted) const
Undistortion only.
Definition: RadialTangentialDistortion.hpp:210
double k2_
radial parameter 2
Definition: RadialTangentialDistortion.hpp:170
static const int NumDistortionIntrinsics
Definition: RadialTangentialDistortion.hpp:94
EIGEN_MAKE_ALIGNED_OPERATOR_NEW RadialTangentialDistortion()
The default constructor with all zero ki.
Definition: RadialTangentialDistortion.hpp:49