Package boofcv.alg.structure
Class InitializeCommonMetric
java.lang.Object
boofcv.alg.structure.InitializeCommonMetric
- All Implemented Interfaces:
VerbosePrint
Given a set of views and a set of features which are visible in all views, estimate their metric structure.
- Select the three best 3 views
- Association between all 3 views
- Robust self calibration
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DogArray<DogArray_I32>
List of feature indexes for each view that are part of the inlier set.protected final ThreeViewEstimateMetricScene
Used to convert observations from 3-views into a metric sceneprotected final DogArray_I32
lookup table from feature ID in seed view to structure index.Common algorithms for reconstructing the projective sceneprotected final FastArray<PairwiseImageGraph.View>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Robustly estimates metric views with extrinsics known up to a scale factorgetPairwiseGraphViewByStructureIndex
(int index) Returns thePairwiseImageGraph.View
given the index of the view in structureboolean
metricScene
(LookUpSimilarImages dbSimilar, LookUpCameraInfo dbCams, PairwiseImageGraph.View seed, DogArray_I32 seedConnIdx, MetricCameras results) Computes a metric reconstruction.void
setVerbose
(@Nullable PrintStream out, @Nullable Set<String> configuration)
-
Field Details
-
utils
Common algorithms for reconstructing the projective scene -
pixelToMetric3
Used to convert observations from 3-views into a metric scene -
inlierIndexes
List of feature indexes for each view that are part of the inlier set. The seed view is at index 0. The other indexes are in order of 'seedConnIdx'. -
viewsByStructureIndex
-
seedToStructure
lookup table from feature ID in seed view to structure index. There will only be 3D features for members of the inlier set.
-
-
Constructor Details
-
InitializeCommonMetric
-
InitializeCommonMetric
public InitializeCommonMetric()
-
-
Method Details
-
metricScene
public boolean metricScene(LookUpSimilarImages dbSimilar, LookUpCameraInfo dbCams, PairwiseImageGraph.View seed, DogArray_I32 seedConnIdx, MetricCameras results) Computes a metric reconstruction. Reconstruction will be relative the 'seed' and only use features listed in 'common'. The list of views is taken from seed and is specified in 'motions'.- Parameters:
dbSimilar
- (Input) Data based used to look up information on each imageseed
- (Input) The seed view that will act as the originseedConnIdx
- (Input) Indexes of motions in the seed view to use when initializingresults
- (Output) Found metric reconstruction for seed and selected connected views- Returns:
- true is successful or false if it failed
-
estimateMetricCamerasRobustly
public boolean estimateMetricCamerasRobustly()Robustly estimates metric views with extrinsics known up to a scale factor -
getPairwiseGraphViewByStructureIndex
Returns thePairwiseImageGraph.View
given the index of the view in structure -
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration) - Specified by:
setVerbose
in interfaceVerbosePrint
-
getStructure
-