Go to the documentation of this file.
28 using namespace gtsam;
30 int main(
int argc,
char* argv[]) {
60 bool separateCalibration =
true;
int optimize(const SfmData &db, const NonlinearFactorGraph &graph, const Values &initial, bool separateCalibration=false)
SfmData stores a bunch of SfmTracks.
Point2 uncalibrate(const CAL &K, const Point2 &p, OptionalJacobian< 2, 5 > Dcal, OptionalJacobian< 2, 2 > Dp)
static SharedNoiseModel gNoiseModel
std::vector< SfmTrack > tracks
Sparse set of points.
Point3_ transformFrom(const Pose3_ &x, const Point3_ &p)
Pose3 inverse() const
inverse transformation with derivatives
Common code for timeSFMBAL scripts.
SfmData preamble(int argc, char *argv[])
Matrix< Scalar, Dynamic, Dynamic > C
static Point2 project(const Pose3 &pose, const Unit3 &pointAtInfinity, const Cal3_S2::shared_ptr &cal)
std::vector< SfmCamera > cameras
Set of cameras.
Common expressions for solving geometry/slam/sfm problems.
const Pose3 & pose() const
return pose, constant version
static const CalibratedCamera camera(kDefaultPose)
int main(int argc, char *argv[])
Point3 p
3D position of the point
NonlinearFactorGraph graph
size_t numberTracks() const
The number of reconstructed 3D points.
Calibration used by Bundler.
void addExpressionFactor(const SharedNoiseModel &R, const T &z, const Expression< T > &h)
std::pair< size_t, Point2 > SfmMeasurement
A measurement with its camera index.
gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:42:20