62 bool verboseCheirality =
false,
double retriangulationTh = 1
e-5) :
63 linearizationMode(linMode), degeneracyMode(degMode), retriangulationThreshold(
64 retriangulationTh), throwCheirality(throwCheirality), verboseCheirality(
71 void print(
const std::string&
str =
"")
const {
72 std::cout <<
"linearizationMode: " << linearizationMode <<
"\n";
73 std::cout <<
" degeneracyMode: " << degeneracyMode <<
"\n";
74 std::cout << triangulation << std::endl;
98 linearizationMode = linMode;
101 degeneracyMode = degMode;
104 retriangulationThreshold = retriangulationTh;
123 template<
class ARCHIVE>
125 ar & BOOST_SERIALIZATION_NVP(linearizationMode);
126 ar & BOOST_SERIALIZATION_NVP(degeneracyMode);
127 ar & BOOST_SERIALIZATION_NVP(triangulation);
128 ar & BOOST_SERIALIZATION_NVP(retriangulationThreshold);
129 ar & BOOST_SERIALIZATION_NVP(throwCheirality);
130 ar & BOOST_SERIALIZATION_NVP(verboseCheirality);
void serialize(ARCHIVE &ar, const unsigned int version)
DegeneracyMode degeneracyMode
How to linearize the factor.
bool getThrowCheirality() const
bool getVerboseCheirality() const
void setRetriangulationThreshold(double retriangulationTh)
void setEnableEPI(bool enableEPI)
TriangulationParameters triangulation
double dynamicOutlierRejectionThreshold
virtual ~SmartProjectionParams()
LinearizationMode
Linearization mode: what factor to linearize to.
void setRankTolerance(double rankTol)
bool throwCheirality
If true, re-throws Cheirality exceptions (default: false)
friend class boost::serialization::access
Serialization function.
double landmarkDistanceThreshold
SmartProjectionParams(LinearizationMode linMode=HESSIAN, DegeneracyMode degMode=IGNORE_DEGENERACY, bool throwCheirality=false, bool verboseCheirality=false, double retriangulationTh=1e-5)
DegeneracyMode getDegeneracyMode() const
bool enableEPI
if set to true, will refine triangulation using LM
double rankTolerance
(the rank is the number of singular values of the triangulation matrix which are larger than rankTole...
Functions for triangulation.
void setLandmarkDistanceThreshold(double landmarkDistanceThreshold)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
LinearizationMode linearizationMode
How to linearize the factor.
static const double rankTol
TriangulationParameters getTriangulationParameters() const
LinearizationMode getLinearizationMode() const
void setDegeneracyMode(DegeneracyMode degMode)
double getRetriangulationThreshold() const
void setLinearizationMode(LinearizationMode linMode)
void print(const std::string &str="") const
DegeneracyMode
How to manage degeneracy.
void setDynamicOutlierRejectionThreshold(double dynOutRejectionThreshold)
double retriangulationThreshold