Package boofcv.alg.structure
Class SceneWorkingGraph
java.lang.Object
boofcv.alg.structure.SceneWorkingGraph
A scene graph which is designed to be easy to manipulate as the scene's structure is determined. Intended to be
used with
PairwiseImageGraph
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Information on a camera which captured one or more views in this scene.static class
Information on the set of inlier observations used to compute the camera locationstatic class
Observation (pixel coordinates) of an image feature inside of aSceneWorkingGraph.View
.static class
Data structure related to an image. -
Field Summary
Modifier and TypeFieldDescriptionfinal gnu.trove.map.TIntObjectMap<SceneWorkingGraph.Camera>
Camera database ID to scene Cameralist of views that have already been explored when expanding the sceneint
If stored in an array, the index of the scene in the arrayfinal DogArray<SceneWorkingGraph.Camera>
List of scene camerasfinal List<SceneWorkingGraph.View>
int
Number of views in the seed set.List of views in pairwise graph it could expand intofinal Map<String,
SceneWorkingGraph.View> List of all views in the scene graph. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCamera
(int indexDB) addView
(PairwiseImageGraph.View pview, SceneWorkingGraph.Camera camera) Adds a new view to the graph.boolean
containsView
(String id) boolean
isKnown
(PairwiseImageGraph.View pview) boolean
gnu.trove.map.TObjectIntMap<String>
lookupUsedViewIds
(@Nullable gnu.trove.map.TObjectIntMap<String> storage) Convenience function to get a mapping of view ID to index.lookupView
(String id) void
reset()
Resets it into it's initial state.void
setTo
(SceneWorkingGraph src)
-
Field Details
-
cameras
Camera database ID to scene Camera -
listCameras
List of scene cameras -
views
List of all views in the scene graph. Look up based on the image/view's id -
listViews
-
exploredViews
list of views that have already been explored when expanding the scene -
index
public int indexIf stored in an array, the index of the scene in the array -
open
List of views in pairwise graph it could expand into -
numSeedViews
public int numSeedViewsNumber of views in the seed set. This is used to determine if a feature is a member of the seed set as the first views are always part of the seed
-
-
Constructor Details
-
SceneWorkingGraph
public SceneWorkingGraph()
-
-
Method Details
-
reset
public void reset()Resets it into it's initial state. -
setTo
-
containsView
-
lookupView
-
isSeedSet
-
isKnown
-
addCamera
-
addCameraCopy
-
addView
public SceneWorkingGraph.View addView(PairwiseImageGraph.View pview, SceneWorkingGraph.Camera camera) Adds a new view to the graph. If the view already exists an exception is thrown- Parameters:
pview
- (Input) Pairwise view to create the new view from.- Returns:
- The new view created
-
getAllViews
-
getViewCamera
-
lookupUsedViewIds
public gnu.trove.map.TObjectIntMap<String> lookupUsedViewIds(@Nullable @Nullable gnu.trove.map.TObjectIntMap<String> storage) Convenience function to get a mapping of view ID to index.- Parameters:
storage
- (Output) Optional storage for output.- Returns:
- Map from view ID to view index
-