25 #include <gtsam/geometry/Cal3DS2_Base.h> 53 enum { dimension = 10 };
61 Cal3Unified(
double fx,
double fy,
double s,
double u0,
double v0,
62 double k1,
double k2,
double p1 = 0.0,
double p2 = 0.0,
double xi = 0.0) :
63 Base(fx, fy, s, u0, v0, k1, k2, p1, p2), xi_(xi) {}
65 virtual ~Cal3Unified() {}
71 Cal3Unified(
const Vector &v) ;
78 virtual void print(
const std::string& s =
"")
const ;
81 bool equals(
const Cal3Unified& K,
double tol = 10e-9)
const;
88 inline double xi()
const {
return xi_;}
102 Point2 calibrate(
const Point2& p,
const double tol=1e-5)
const;
118 Vector10 localCoordinates(
const Cal3Unified& T2)
const ;
121 virtual size_t dim()
const {
return 10 ; }
124 static size_t Dim() {
return 10; }
127 Vector10 vector()
const ;
134 friend class boost::serialization::access;
135 template<
class Archive>
136 void serialize(Archive & ar,
const unsigned int )
138 ar & boost::serialization::make_nvp(
"Cal3Unified",
139 boost::serialization::base_object<Cal3DS2_Base>(*
this));
140 ar & BOOST_SERIALIZATION_NVP(xi_);
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
double xi() const
mirror parameter
Definition: Cal3Unified.h:88
static size_t Dim()
Return dimensions of calibration manifold object.
Definition: Cal3Unified.h:124
OptionalJacobian is an Eigen::Ref like class that can take be constructed using either a fixed size o...
Definition: OptionalJacobian.h:39
Definition: Cal3Unified.h:42
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
Cal3Unified()
Default Constructor with only unit focal length.
Definition: Cal3Unified.h:59
virtual size_t dim() const
Return dimensions of calibration manifold object.
Definition: Cal3Unified.h:121
Definition: Cal3DS2_Base.h:39