Go to the documentation of this file.
22 using namespace gtsam;
27 static Cal3f K(500.0, 1000.0, 2000.0);
41 Matrix3 K_matrix =
K.
K();
43 Vector3 expected_homogeneous = K_matrix * p_homogeneous;
44 Point2 expected(expected_homogeneous.x() / expected_homogeneous.z(),
45 expected_homogeneous.y() / expected_homogeneous.z());
67 Cal3f K(500.0, 1000.0, 2000.0);
98 Cal3f K1(500.0, 1000.0, 2000.0);
114 Cal3f K2(500.0, 1000.0, 2000.0);
121 std::stringstream
os;
static int runAllTests(TestResult &result)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
#define GTSAM_CONCEPT_TESTABLE_INST(T)
Concept check for values that can be used in unit tests.
#define EXPECT(condition)
Calibration model with a single focal length and zero skew.
double py() const
image center in y
Point2 calibrate_(const Cal3f &k, const Point2 &pt)
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)
ofstream os("timeSchurFactors.csv")
static const Cal3Bundler K2(625, 1e-3, 1e-3)
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)
Point2 uncalibrate_(const Cal3f &k, const Point2 &pt)
static Cal3f K(500.0, 1000.0, 2000.0)
Calibration model with a single focal length and zero skew.
static Point2 p(2.0, 3.0)
virtual Matrix3 K() const
return calibration matrix K
static Cal3_S2::shared_ptr K1(new Cal3_S2(fov, w, h))
Vector1 vector() const
vectorized form (column-wise)
double fx() const
focal length x
Point2 calibrate(const Point2 &pi, OptionalJacobian< 2, 1 > Dcal={}, OptionalJacobian< 2, 2 > Dp={}) const
TEST(SmartFactorBase, Pinhole)
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)
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)
**
The matrix class, also used for vectors and row-vectors.
double px() const
image center in x
Point2 uncalibrate(const Point2 &p, OptionalJacobian< 2, 1 > Dcal={}, OptionalJacobian< 2, 2 > Dp={}) const
: convert intrinsic coordinates xy to image coordinates uv Version of uncalibrate with derivatives
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:19