Package boofcv.abst.geo.bundle
Class MetricBundleAdjustmentUtils
java.lang.Object
boofcv.abst.geo.bundle.MetricBundleAdjustmentUtils
- All Implemented Interfaces:
VerbosePrint
Contains everything you need to do metric bundle adjustment in one location
-
Field Summary
Modifier and TypeFieldDescriptionfinal ConfigConverge
Configures convergence criteria for SBAboolean
Toggles on and off scaling parametersdouble
Optional second pass where outliers observations.final SceneObservations
final SceneStructureMetric
The estimated scene structure. -
Constructor Summary
ConstructorDescriptionMetricBundleAdjustmentUtils
(@Nullable ConfigTriangulation triangulation, boolean homogenous) -
Method Summary
Modifier and TypeMethodDescriptionvoid
printCounts
(PrintStream out) Prints the number of different data structures in the sceneboolean
process()
Uses the already configured structure and observations to perform bundle adjustmentvoid
prune
(double keepFraction, int pruneViews, int prunePoints) Prunes outliers and views/points with too few points/observationsvoid
setVerbose
(@Nullable PrintStream out, @Nullable Set<String> configuration)
-
Field Details
-
configConverge
Configures convergence criteria for SBA -
configScale
public boolean configScaleToggles on and off scaling parameters -
keepFraction
public double keepFractionOptional second pass where outliers observations. Fraction specifies that the best X fraction are kept. -
structure
The estimated scene structure. This the final estimated scene state -
observations
-
sba
-
triangulator
-
scaler
-
-
Constructor Details
-
MetricBundleAdjustmentUtils
public MetricBundleAdjustmentUtils(@Nullable @Nullable ConfigTriangulation triangulation, boolean homogenous) -
MetricBundleAdjustmentUtils
public MetricBundleAdjustmentUtils()
-
-
Method Details
-
process
public boolean process()Uses the already configured structure and observations to perform bundle adjustment- Returns:
- true if successful
-
prune
public void prune(double keepFraction, int pruneViews, int prunePoints) Prunes outliers and views/points with too few points/observations- Parameters:
keepFraction
- Only keeps features which have the best reprojection error. 0.95 will keep 95%pruneViews
- Prunes views if less than or equal to this many featuresprunePoints
- Prunes points if less than this number of observations
-
printCounts
Prints the number of different data structures in the scene -
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration) - Specified by:
setVerbose
in interfaceVerbosePrint
-