Package boofcv.alg.structure.spawn
Class MetricSpawnSceneFromView
java.lang.Object
boofcv.alg.structure.spawn.MetricSpawnSceneFromView
- All Implemented Interfaces:
VerbosePrint
Given a view and set of views connected to it, attempt to create a new metric scene. First a projective scene
is found. From this projective scene and metric one is created. Then bundle adjustment is used to refine the
metric scene. Features are then sanity checked to see if the pass basic physical constraints, see
MetricSanityChecks
. If too many fail then the reconstruction is aborted. Otherwise, all the failing
features are removed and assumed to be outliers and bundle adjustment is run again. If there are no more
bad features it's considered to be a successful reconstruction.-
Field Summary
Modifier and TypeFieldDescriptiondouble
If less than this number of features fail the physical constraint test, attempt to recover by removing themprotected PairwiseGraphUtils
-
Constructor Summary
ConstructorDescriptionMetricSpawnSceneFromView
(RefineMetricWorkingGraph refineWorking, PairwiseGraphUtils utils) -
Method Summary
Modifier and TypeMethodDescriptionboolean
process
(LookUpSimilarImages dbSimilar, LookUpCameraInfo dbCams, PairwiseImageGraph pairwise, PairwiseImageGraph.View seed, DogArray_I32 motions) Computes the metric scene given the seed and related viewsvoid
setVerbose
(@Nullable PrintStream out, @Nullable Set<String> configuration)
-
Field Details
-
fractionBadFeaturesRecover
public double fractionBadFeaturesRecoverIf less than this number of features fail the physical constraint test, attempt to recover by removing them -
utils
-
-
Constructor Details
-
MetricSpawnSceneFromView
-
MetricSpawnSceneFromView
public MetricSpawnSceneFromView()
-
-
Method Details
-
process
public boolean process(LookUpSimilarImages dbSimilar, LookUpCameraInfo dbCams, PairwiseImageGraph pairwise, PairwiseImageGraph.View seed, DogArray_I32 motions) Computes the metric scene given the seed and related views- Parameters:
dbSimilar
- Image data base to retieve feature and shape infopairwise
- Pairwise graphseed
- The view which will be the origin of the metric scenemotions
- edges in seed that were used to generate the score- Returns:
- true if successful or false if it failed
-
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration) - Specified by:
setVerbose
in interfaceVerbosePrint
-