Go to the documentation of this file.
36 enum { dimension = 5 };
70 OptionalJacobian<2, 2> Dp = {})
const;
79 Point2 calibrate(
const Point2&
p, OptionalJacobian<2, 5> Dcal = {},
80 OptionalJacobian<2, 2> Dp = {})
const;
94 GTSAM_EXPORT
friend std::ostream&
operator<<(std::ostream&
os,
98 void print(
const std::string&
s =
"Cal3_S2")
const override;
101 bool equals(
const Cal3_S2&
K,
double tol = 10
e-9)
const;
107 if (H1) *H1 = -I_5x5;
109 return Cal3_S2(
q.fx_ - fx_,
q.fy_ - fy_,
q.s_ - s_,
q.u0_ - u0_,
118 inline static size_t Dim() {
return dimension; }
122 return Cal3_S2(fx_ +
d(0), fy_ +
d(1), s_ +
d(2), u0_ +
d(3), v0_ +
d(4));
127 return T2.vector() - vector();
135 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
136 friend class boost::serialization::access;
138 template <
class Archive>
139 void serialize(Archive& ar,
const unsigned int ) {
140 ar& boost::serialization::make_nvp(
141 "Cal3_S2", boost::serialization::base_object<Cal3>(*
this));
Cal3_S2(double fov, int w, int h)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static const double d[K][N]
std::ostream & operator<<(std::ostream &os, const Dih6 &m)
Vector5 localCoordinates(const Cal3_S2 &T2) const
Unretraction for the calibration.
Common code for all Calibration models.
Cal3_S2(const Vector5 &d)
constructor from vector
Both ManifoldTraits and Testable.
ofstream os("timeSchurFactors.csv")
const Cal3_S2 cal(focalLength, focalLength, 0.0, principalPoint.x(), principalPoint.y())
void print(const Matrix &A, const string &s, ostream &stream)
EIGEN_DEVICE_FUNC const Scalar & q
Common base class for all calibration models.
static const Pose3 T2(Rot3::Rodrigues(0.3, 0.2, 0.1), P2)
Cal3_S2 retract(const Vector &d) const
Given 5-dim tangent vector, create new calibration.
Point2_ uncalibrate(const Expression< CALIBRATION > &K, const Point2_ &xy_hat)
The most common 5DOF 3D->2D calibration.
Cal3_S2 between(const Cal3_S2 &q, OptionalJacobian< 5, 5 > H1={}, OptionalJacobian< 5, 5 > H2={}) const
"Between", subtracts calibrations. between(p,q) == compose(inverse(p),q)
std::shared_ptr< Cal3 > shared_ptr
static size_t Dim()
return DOF, dimensionality of tangent space
Cal3_S2(double fx, double fy, double s, double u0, double v0)
constructor from doubles
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:56