Class SceneObservations


  • public class SceneObservations
    extends java.lang.Object
    Storage for feature observation in each view. Input for bundle adjustment. When possible arrays are used to reduce memory requirements.
    • Field Detail

      • viewsRigid

        public final org.ddogleg.struct.FastQueue<SceneObservations.View> viewsRigid
        Views of points on rigid objects
    • Constructor Detail

      • SceneObservations

        public SceneObservations()
    • 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 views
        rigidObjects - 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
      • checkOneObservationPerView

        public void checkOneObservationPerView()
        Makes sure that each feature is only observed in each view