Package boofcv.abst.geo.bundle
Class SceneObservations
- java.lang.Object
-
- boofcv.abst.geo.bundle.SceneObservations
-
public class SceneObservations extends java.lang.ObjectStorage 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 classSceneObservations.View
-
Field Summary
Fields Modifier and Type Field Description org.ddogleg.struct.FastQueue<SceneObservations.View>viewsViews of general points.org.ddogleg.struct.FastQueue<SceneObservations.View>viewsRigidViews of points on rigid objects
-
Constructor Summary
Constructors Constructor Description SceneObservations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckOneObservationPerView()Makes sure that each feature is only observed in each viewintgetObservationCount()Returns the total number of observations across all views.SceneObservations.ViewgetView(int which)SceneObservations.ViewgetViewRigid(int which)booleanhasRigid()True if there are rigid viewsvoidinitialize(int numViews)Initialize the data structures for this number of views.voidinitialize(int numViews, boolean rigidObjects)Initialize the data structures for this number of views
-
-
-
Field Detail
-
views
public final org.ddogleg.struct.FastQueue<SceneObservations.View> views
Views of general points.
-
viewsRigid
public final org.ddogleg.struct.FastQueue<SceneObservations.View> viewsRigid
Views of points on rigid objects
-
-
Method Detail
-
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
public SceneObservations.View getView(int which)
-
getViewRigid
public SceneObservations.View getViewRigid(int which)
-
checkOneObservationPerView
public void checkOneObservationPerView()
Makes sure that each feature is only observed in each view
-
-