39 enum { dimension = 3 };
55 Cal3Bundler(
double f,
double k1,
double k2,
double u0 = 0,
double v0 = 0);
64 void print(
const std::string& s =
"")
const;
76 Vector3 vector()
const;
79 inline double fx()
const {
84 inline double fy()
const {
89 inline double k1()
const {
94 inline double k2()
const {
99 inline double u0()
const {
104 inline double v0()
const {
121 Point2 calibrate(
const Point2& pi,
const double tol = 1e-5)
const;
124 Matrix2 D2d_intrinsic(
const Point2& p)
const;
127 Matrix23 D2d_calibration(
const Point2& p)
const;
130 Matrix25 D2d_intrinsic_calibration(
const Point2& p)
const;
140 Vector3 localCoordinates(
const Cal3Bundler& T2)
const;
143 virtual size_t dim()
const {
159 friend class boost::serialization::access;
160 template<
class Archive>
161 void serialize(Archive & ar,
const unsigned int ) {
162 ar & BOOST_SERIALIZATION_NVP(f_);
163 ar & BOOST_SERIALIZATION_NVP(k1_);
164 ar & BOOST_SERIALIZATION_NVP(k2_);
165 ar & BOOST_SERIALIZATION_NVP(u0_);
166 ar & BOOST_SERIALIZATION_NVP(v0_);
static size_t Dim()
dimensionality
Definition: Cal3Bundler.h:148
Both ManifoldTraits and Testable.
Definition: Manifold.h:120
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition: Matrix.cpp:141
Definition: Cal3Bundler.h:30
double k2() const
distorsion parameter k2
Definition: Cal3Bundler.h:94
double fx() const
focal length x
Definition: Cal3Bundler.h:79
double k1() const
distorsion parameter k1
Definition: Cal3Bundler.h:89
Template to create a binary predicate.
Definition: Testable.h:110
OptionalJacobian is an Eigen::Ref like class that can take be constructed using either a fixed size o...
Definition: OptionalJacobian.h:39
double v0() const
get parameter v0
Definition: Cal3Bundler.h:104
double u0() const
get parameter u0
Definition: Cal3Bundler.h:99
double fy() const
focal length y
Definition: Cal3Bundler.h:84
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition: concepts.h:30
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
virtual size_t dim() const
dimensionality
Definition: Cal3Bundler.h:143