Class ScenePointsSetIterator<T extends PointIndex<T,P>,P extends GeoTuple<P>>

java.lang.Object
boofcv.alg.mvs.ScenePointsSetIterator<T,P>
All Implemented Interfaces:
IteratorReset<T>, Iterator<T>

public class ScenePointsSetIterator<T extends PointIndex<T,P>,P extends GeoTuple<P>> extends Object implements IteratorReset<T>
Given a scene, this will iterate through points in that scene that are inside of a provided array full of indexes. This handles 3D and homogenous points.
  • Constructor Details

    • ScenePointsSetIterator

      public ScenePointsSetIterator(SceneStructureCommon scene, DogArray_I32 indexes, T point)
      Constructor
      Parameters:
      scene - (Input) The scene which is to be iterated through
      indexes - (Input) Indexes that specify which features in the scene it should be iterating through
      point - (Input,Output) Storage for the point. Make sure you get 3D vs homogenous correct.
    • ScenePointsSetIterator

      public ScenePointsSetIterator(T point)
  • Method Details

    • initialize

      public void initialize(SceneStructureCommon scene, DogArray_I32 indexes)
      Re-initializes and can be used to change the scene and set of indexes
    • reset

      public void reset()
      Description copied from interface: IteratorReset
      Returns the iterator to its original state allowing it to be reused
      Specified by:
      reset in interface IteratorReset<T extends PointIndex<T,P>>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T extends PointIndex<T,P>>
    • next

      public T next()
      Returns a copy of the next point in the scene. This is overwritten on the next call.
      Specified by:
      next in interface Iterator<T extends PointIndex<T,P>>