Package boofcv.alg.mvs
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 Summary
Constructors Constructor Description ScenePointsSetIterator(SceneStructureCommon scene, DogArray_I32 indexes, T point)
ConstructorScenePointsSetIterator(T point)
-
Method Summary
Modifier and Type Method Description boolean
hasNext()
void
initialize(SceneStructureCommon scene, DogArray_I32 indexes)
Re-initializes and can be used to change the scene and set of indexesT
next()
Returns a copy of the next point in the scene.void
reset()
Returns the iterator to its original state allowing it to be reusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ScenePointsSetIterator
Constructor- Parameters:
scene
- (Input) The scene which is to be iterated throughindexes
- (Input) Indexes that specify which features in the scene it should be iterating throughpoint
- (Input,Output) Storage for the point. Make sure you get 3D vs homogenous correct.
-
ScenePointsSetIterator
-
-
Method Details
-
initialize
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 interfaceIteratorReset<T extends PointIndex<T,P>>
-
hasNext
public boolean hasNext() -
next
Returns a copy of the next point in the scene. This is overwritten on the next call.
-