Go to the documentation of this file.
30 using namespace gtsam;
39 int main(
int argc,
char* argv[]) {
65 v9 << Pose3::Logmap(openGLpose),
camera.calibration();
int main(int argc, char *argv[])
int optimize(const SfmData &db, const NonlinearFactorGraph &graph, const Values &initial, bool separateCalibration=false)
PinholeCamera< Cal3Bundler > Camera
SfmData stores a bunch of SfmTracks.
static SharedNoiseModel gNoiseModel
std::vector< SfmTrack > tracks
Sparse set of points.
Common code for timeSFMBAL scripts.
SfmData preamble(int argc, char *argv[])
Matrix< Scalar, Dynamic, Dynamic > C
std::vector< SfmCamera > cameras
Set of cameras.
Adaptor for Ceres style auto-differentiated functions.
const Pose3 & pose() const
return pose, constant version
Pose3 gtsam2openGL(const Rot3 &R, double tx, double ty, double tz)
This function converts a GTSAM camera pose to an openGL camera pose.
static const CalibratedCamera camera(kDefaultPose)
Point3 p
3D position of the point
NonlinearFactorGraph graph
size_t numberTracks() const
The number of reconstructed 3D points.
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 Sat Nov 16 2024 04:09:06