39 #ifndef INCLUDE_OKVIS_CAMERAS_RADIALTANGENTIALDISTORTION8_HPP_
40 #define INCLUDE_OKVIS_CAMERAS_RADIALTANGENTIALDISTORTION8_HPP_
54 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
69 double k3,
double k4,
double k5,
79 inline bool setParameters(
const Eigen::VectorXd & parameters);
89 inline std::string
type()
const
91 return "RadialTangentialDistortion8";
106 return std::shared_ptr<DistortionBase>(
108 0.9541, 0.1151, -0.0075));
114 0.9541, 0.1151, -0.0075);
125 inline bool distort(
const Eigen::Vector2d & pointUndistorted,
126 Eigen::Vector2d * pointDistorted)
const;
134 inline bool distort(
const Eigen::Vector2d & pointUndistorted,
135 Eigen::Vector2d * pointDistorted,
136 Eigen::Matrix2d * pointJacobian,
137 Eigen::Matrix2Xd * parameterJacobian = NULL)
const;
147 const Eigen::Vector2d & pointUndistorted,
148 const Eigen::VectorXd & parameters, Eigen::Vector2d * pointDistorted,
149 Eigen::Matrix2d * pointJacobian = NULL,
150 Eigen::Matrix2Xd * parameterJacobian = NULL)
const;
161 inline bool undistort(
const Eigen::Vector2d & pointDistorted,
162 Eigen::Vector2d * pointUndistorted)
const;
169 inline bool undistort(
const Eigen::Vector2d & pointDistorted,
170 Eigen::Vector2d * pointUndistorted,
171 Eigen::Matrix2d * pointJacobian)
const;
bool undistort(const Eigen::Vector2d &pointDistorted, Eigen::Vector2d *pointUndistorted) const
Undistortion only.
Definition: RadialTangentialDistortion8.hpp:249
double k1_
radial parameter 1
Definition: RadialTangentialDistortion8.hpp:177
static RadialTangentialDistortion8 testObject()
Unit test support – create a test distortion object.
Definition: RadialTangentialDistortion8.hpp:111
Definition: RadialTangentialDistortion8.hpp:51
double k5_
radial parameter 3
Definition: RadialTangentialDistortion8.hpp:183
bool getParameters(Eigen::VectorXd ¶meters) const
Obtain the generic parameters.
Definition: RadialTangentialDistortion8.hpp:82
double k6_
radial parameter 4
Definition: RadialTangentialDistortion8.hpp:184
double k2_
radial parameter 2
Definition: RadialTangentialDistortion8.hpp:178
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: RadialTangentialDistortion8.hpp:183
EIGEN_MAKE_ALIGNED_OPERATOR_NEW RadialTangentialDistortion8()
The default constructor with all zero ki.
Definition: RadialTangentialDistortion8.hpp:48
double k3_
radial parameter 3
Definition: RadialTangentialDistortion8.hpp:181
static std::shared_ptr< DistortionBase > createTestObject()
Unit test support – create a test distortion object.
Definition: RadialTangentialDistortion8.hpp:104
Header file for the DistortionBase class.
bool setParameters(const Eigen::VectorXd ¶meters)
set the generic parameters
Definition: RadialTangentialDistortion8.hpp:85
bool distort(const Eigen::Vector2d &pointUndistorted, Eigen::Vector2d *pointDistorted) const
Distortion only.
Definition: RadialTangentialDistortion8.hpp:103
double k4_
radial parameter 4
Definition: RadialTangentialDistortion8.hpp:182
double p1_
tangential parameter 1
Definition: RadialTangentialDistortion8.hpp:179
double p2_
tangential parameter 2
Definition: RadialTangentialDistortion8.hpp:180
static const int NumDistortionIntrinsics
Definition: RadialTangentialDistortion8.hpp:100
Base class for all distortion models.
Definition: DistortionBase.hpp:52
int numDistortionIntrinsics() const
Number of distortion parameters.
Definition: RadialTangentialDistortion8.hpp:95
std::string type() const
The class type.
Definition: RadialTangentialDistortion8.hpp:89
Eigen::Matrix< double, NumDistortionIntrinsics, 1 > parameters_
all distortion parameters
Definition: RadialTangentialDistortion8.hpp:175