Package boofcv.abst.geo.bundle
Class SceneObservations
java.lang.Object
boofcv.abst.geo.bundle.SceneObservations
Storage for feature observation in each view. Input for bundle adjustment. When possible arrays are used to
reduce memory requirements.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal DogArray<SceneObservations.View>
Views of general points.final DogArray<SceneObservations.View>
Views of points on rigid objects -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Makes sure that each feature is only observed in each viewint
Returns the total number of observations across all views.getView
(int which) getViewRigid
(int viewIndex) Returns the rigid object specific view for the view with the specified index.boolean
hasRigid()
True if there are rigid viewsvoid
initialize
(int numViews) Initialize the data structures for this number of views.void
initialize
(int numViews, boolean rigidObjects) Initialize the data structures for this number of viewsboolean
isIdentical
(SceneObservations other) Returns true of the two observations contain the same values
-
Field Details
-
views
Views of general points. -
viewsRigid
Views of points on rigid objects
-
-
Constructor Details
-
SceneObservations
public SceneObservations()
-
-
Method Details
-
initialize
public void initialize(int numViews) Initialize the data structures for this number of views. Rigid is set to be false.- Parameters:
numViews
- Number of views
-
initialize
public void initialize(int numViews, boolean rigidObjects) Initialize the data structures for this number of views- Parameters:
numViews
- Number of viewsrigidObjects
- If true then there are rigid objects that can be observed
-
getObservationCount
public int getObservationCount()Returns the total number of observations across all views. general and rigid points- Returns:
- number of observations
-
hasRigid
public boolean hasRigid()True if there are rigid views -
getView
-
getViewRigid
Returns the rigid object specific view for the view with the specified index. -
checkOneObservationPerView
public void checkOneObservationPerView()Makes sure that each feature is only observed in each view -
isIdentical
Returns true of the two observations contain the same values
-