Package boofcv.abst.geo.bundle
Class SceneObservations
java.lang.Object
boofcv.abst.geo.bundle.SceneObservations
public class SceneObservations extends Object
Storage for feature observation in each view. Input for bundle adjustment. When possible arrays are used to
reduce memory requirements.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SceneObservations.View
-
Field Summary
Fields Modifier and Type Field Description DogArray<SceneObservations.View>
views
Views of general points.DogArray<SceneObservations.View>
viewsRigid
Views of points on rigid objects -
Constructor Summary
Constructors Constructor Description SceneObservations()
-
Method Summary
Modifier and Type Method Description void
checkOneObservationPerView()
Makes sure that each feature is only observed in each viewint
getObservationCount()
Returns the total number of observations across all views.SceneObservations.View
getView(int which)
SceneObservations.View
getViewRigid(int which)
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 views
-
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
-
checkOneObservationPerView
public void checkOneObservationPerView()Makes sure that each feature is only observed in each view
-