Go to the documentation of this file.
29 using namespace gtsam;
39 int main (
int argc,
char* argv[]) {
43 if (argc>1)
filename = string(argv[1]);
54 noiseModel::Isotropic::Sigma(2, 1.0);
80 params.setVerbosity(
"ERROR");
83 }
catch (exception&
e) {
virtual const Values & optimize()
Array< double, 1, 3 > e(1./3., 0.5, 2.)
A nonlinear optimizer that uses the Levenberg-Marquardt trust-region scheme.
std::vector< SfmMeasurement > measurements
The 2D image projections (id,(u,v))
a general SFM factor with an unknown calibration
static const SmartProjectionParams params
SfmData stores a bunch of SfmTracks.
int main(int argc, char *argv[])
double error(const Values &values) const
std::vector< SfmTrack > tracks
Sparse set of points.
utility functions for loading datasets
void addPrior(Key key, const T &prior, const SharedNoiseModel &model=nullptr)
GeneralSFMFactor< SfmCamera, Point3 > MyFactor
size_t numberCameras() const
The number of cameras.
Data structure for dealing with Structure from Motion data.
Matrix< Scalar, Dynamic, Dynamic > C
Factor Graph consisting of non-linear factors.
std::vector< SfmCamera > cameras
Set of cameras.
GTSAM_EXPORT std::string findExampleDataFile(const std::string &name)
static const CalibratedCamera camera(kDefaultPose)
Point3 p
3D position of the point
NonlinearFactorGraph graph
size_t numberTracks() const
The number of reconstructed 3D points.
IsDerived< DERIVEDFACTOR > emplace_shared(Args &&... args)
Emplace a shared pointer to factor of given type.
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:13:18