Class SceneObservations.View

java.lang.Object
boofcv.abst.geo.bundle.SceneObservations.View
Enclosing class:
SceneObservations

public static class SceneObservations.View
extends Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    DogArray_F32 observations
    Pixel observations of features in 'point' in an interleaved format (x,y)
    DogArray_I32 point
    list of Point ID's that are visible in this view.
  • Constructor Summary

    Constructors
    Constructor Description
    View()  
  • Method Summary

    Modifier and Type Method Description
    void add​(int featureIndex, float x, float y)
    Adds an observation of the specified feature.
    void checkDuplicatePoints()  
    void getPixel​(int index, PointIndex2D_F64 observation)  
    void getPixel​(int index, Point2D_F64 p)  
    int getPointId​(int index)  
    void remove​(int index)
    Removes the feature and observation at the specified element
    void reset()
    Puts it back into its original state.
    void resize​(int numPoints)  
    void safeAssignToFeature​(int index, int featureIdx)
    Assigns this observation to th specified feature.
    void set​(int index, int featureIdx, float x, float y)
    Sets the feature Id and observation for an observation
    void setPixel​(int index, float x, float y)  
    int size()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • point

      public DogArray_I32 point
      list of Point ID's that are visible in this view. -1 indicates the point has been removed
    • observations

      public DogArray_F32 observations
      Pixel observations of features in 'point' in an interleaved format (x,y)
  • Constructor Details

    • View

      public View()
  • Method Details

    • size

      public int size()
    • remove

      public void remove​(int index)
      Removes the feature and observation at the specified element
    • safeAssignToFeature

      public void safeAssignToFeature​(int index, int featureIdx)
      Assigns this observation to th specified feature. Does sanity checks to make sure everything is consistent.
    • set

      public void set​(int index, int featureIdx, float x, float y)
      Sets the feature Id and observation for an observation
      Parameters:
      index - Which observation to set
      featureIdx - The feature which was observed
      x - observation x-axis
      y - observation y-axis
    • setPixel

      public void setPixel​(int index, float x, float y)
    • getPointId

      public int getPointId​(int index)
    • getPixel

      public void getPixel​(int index, Point2D_F64 p)
    • getPixel

      public void getPixel​(int index, PointIndex2D_F64 observation)
    • add

      public void add​(int featureIndex, float x, float y)
      Adds an observation of the specified feature.
      Parameters:
      featureIndex - Feature index
      x - pixel x-coordinate
      y - pixel y-coordinate
    • checkDuplicatePoints

      public void checkDuplicatePoints()
    • reset

      public void reset()
      Puts it back into its original state.
    • resize

      public void resize​(int numPoints)