Go to the documentation of this file.
26 using namespace gtsam;
39 static Cal3Unified K(100, 105, 0.0, 320, 240, 1
e-3, 2.0 * 1
e-3, 3.0 * 1
e-3,
45 Point2 p_i(364.7791831734982, 305.6677211952602);
105 2.0 * 1
e-3 + 8, 3.0 * 1
e-3 + 9, 4.0 * 1
e-3 + 10,
112 d << 2, 3, 4, 5, 6, 7, 8, 9, 10, 1;
133 std::stringstream
os;
135 <<
", px: " <<
cal.
px() <<
", py: " <<
cal.
py() <<
", k1: " <<
cal.k1()
136 <<
", k2: " <<
cal.k2() <<
", p1: " <<
cal.p1() <<
", p2: " <<
cal.p2()
137 <<
", xi: " <<
cal.xi();
double fy() const
focal length y
static int runAllTests(TestResult &result)
Point2 uncalibrate(const Point2 &p, OptionalJacobian< 2, 10 > Dcal={}, OptionalJacobian< 2, 2 > Dp={}) const
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static const double d[K][N]
#define GTSAM_CONCEPT_TESTABLE_INST(T)
#define EXPECT_LONGS_EQUAL(expected, actual)
Concept check for values that can be used in unit tests.
#define EXPECT(condition)
Point2 uncalibrate_(const Cal3Unified &k, const Point2 &pt)
double py() const
image center in y
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative22(std::function< Y(const X1 &, const X2 &)> h, const X1 &x1, const X2 &x2, double delta=1e-5)
static const Point3 pt(1.0, 2.0, 3.0)
static Cal3Unified K(100, 105, 0.0, 320, 240, 1e-3, 2.0 *1e-3, 3.0 *1e-3, 4.0 *1e-3, 0.1)
ofstream os("timeSchurFactors.csv")
const Cal3_S2 cal(focalLength, focalLength, 0.0, principalPoint.x(), principalPoint.y())
Provides additional testing facilities for common data structures.
Some functions to compute numerical derivatives.
bool assert_stdout_equal(const std::string &expected, const V &actual)
EIGEN_DEVICE_FUNC const Scalar & q
Point2 nPlaneToSpace(const Point2 &p) const
Convert a normalized unit plane point to 3D space.
Point2 calibrate(const Point2 &p, OptionalJacobian< 2, 10 > Dcal={}, OptionalJacobian< 2, 2 > Dp={}) const
Conver a pixel coordinate to ideal coordinate.
void insert(Key j, const Vector &value)
Point2 spaceToNPlane(const Point2 &p) const
Convert a 3D point to normalized unit plane.
Unified Calibration Model, see Mei07icra for details.
const gtsam::Symbol key('X', 0)
double fx() const
focal length x
TEST(SmartFactorBase, Pinhole)
static Point2 p(0.5, 0.7)
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative21(const std::function< Y(const X1 &, const X2 &)> &h, const X1 &x1, const X2 &x2, double delta=1e-5)
Vector localCoordinates(const Cal3Unified &T2) const
Given a different calibration, calculate update to obtain it.
Calibration of a omni-directional camera with mirror + lens radial distortion.
void Print(const CONTAINER &keys, const string &s, const KeyFormatter &keyFormatter)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
#define GTSAM_CONCEPT_MANIFOLD_INST(T)
**
double px() const
image center in x
std::uint64_t Key
Integer nonlinear key type.
Point2 calibrate_(const Cal3Unified &k, const Point2 &pt)
static size_t Dim()
Return dimensions of calibration manifold object.
A non-templated config holding any types of Manifold-group elements.
Cal3Unified retract(const Vector &d) const
Given delta vector, update calibration.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:19