39 enum { dimension = 9 };
51 double k2,
double p1 = 0.0,
double p2 = 0.0,
double tol = 1
e-5)
67 GTSAM_EXPORT
friend std::ostream&
operator<<(std::ostream&
os,
71 void print(
const std::string&
s =
"")
const override;
87 size_t dim()
const override {
return Dim(); }
90 inline static size_t Dim() {
return dimension; }
97 std::shared_ptr<Base>
clone()
const override {
98 return std::shared_ptr<Base>(
new Cal3DS2(*
this));
107 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 109 friend class boost::serialization::access;
110 template <
class Archive>
111 void serialize(Archive& ar,
const unsigned int ) {
112 ar& boost::serialization::make_nvp(
113 "Cal3DS2", boost::serialization::base_object<Cal3DS2_Base>(*
this));
void print(const Matrix &A, const string &s, ostream &stream)
std::shared_ptr< Base > clone() const override
Both ManifoldTraits and Testable.
std::ostream & operator<<(std::ostream &os, const Dih6 &m)
std::string serialize(const T &input)
serializes to a string
static Cal3_S2 K(500, 500, 0.1, 640/2, 480/2)
Calibration of a camera with radial distortion.
static const Pose3 T2(Rot3::Rodrigues(0.3, 0.2, 0.1), P2)
std::shared_ptr< Cal3 > shared_ptr
size_t dim() const override
Return dimensions of calibration manifold object.
Cal3DS2(const Vector9 &v)
Array< int, Dynamic, 1 > v
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Calibration of a camera with radial distortion that also supports Lie-group behaviors for optimizatio...
Cal3DS2(double fx, double fy, double s, double u0, double v0, double k1, double k2, double p1=0.0, double p2=0.0, double tol=1e-5)
static size_t Dim()
Return dimensions of calibration manifold object.
ofstream os("timeSchurFactors.csv")