23#include <gtsam/geometry/Cal3DS2_Base.h>
48 Cal3DS2(
double fx,
double fy,
double s,
double u0,
double v0,
double k1,
49 double k2,
double p1 = 0.0,
double p2 = 0.0,
double tol = 1e-5)
58 Cal3DS2(
const Vector9& v) : Base(v) {}
65 GTSAM_EXPORT
friend std::ostream& operator<<(std::ostream& os,
69 void print(
const std::string& s =
"")
const override;
72 bool equals(
const Cal3DS2& K,
double tol = 10e-9)
const;
79 Cal3DS2 retract(
const Vector& d)
const;
82 Vector localCoordinates(
const Cal3DS2& T2)
const;
89 std::shared_ptr<Base>
clone()
const override {
90 return std::shared_ptr<Base>(
new Cal3DS2(*
this));
99#if GTSAM_ENABLE_BOOST_SERIALIZATION
101 friend class boost::serialization::access;
102 template <
class Archive>
103 void serialize(Archive& ar,
const unsigned int ) {
104 ar& boost::serialization::make_nvp(
105 "Cal3DS2", boost::serialization::base_object<Cal3DS2_Base>(*
this));
Global functions in a separate testing namespace.
Definition chartTesting.h:28
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition Matrix.cpp:143
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition Group.h:37
Both ManifoldTraits and Testable.
Definition Manifold.h:156
double fx() const
focal length x
Definition Cal3.h:138
double fy() const
focal length y
Definition Cal3.h:141
Calibration of a camera with radial distortion that also supports Lie-group behaviors for optimizatio...
Definition Cal3DS2.h:35
std::shared_ptr< Base > clone() const override
Definition Cal3DS2.h:89
std::shared_ptr< Cal3DS2 > shared_ptr
< shared pointer to stereo calibration object
Definition Cal3DS2.h:40
Cal3DS2()=default
Default Constructor with only unit focal length.
Cal3DS2_Base()=default
Default Constructor with only unit focal length.
double p2() const
Second tangential distortion coefficient.
Definition Cal3DS2_Base.h:110
double k2() const
Second distortion coefficient.
Definition Cal3DS2_Base.h:104
double k1() const
First distortion coefficient.
Definition Cal3DS2_Base.h:101
double p1() const
First tangential distortion coefficient.
Definition Cal3DS2_Base.h:107