Package sc.fiji.snt.util
Class DiskCursor3D<T>
java.lang.Object
sc.fiji.snt.util.CircleCursor3D<T>
sc.fiji.snt.util.DiskCursor3D<T>
- All Implemented Interfaces:
Iterator<T>,net.imglib2.Cursor<T>,net.imglib2.EuclideanSpace,net.imglib2.Iterator,net.imglib2.Localizable,net.imglib2.RealCursor<T>,net.imglib2.RealLocalizable,net.imglib2.Sampler<T>,net.imglib2.Typed<T>
Iterate the pixels of an oriented solid disk in 3-space, where the disk is constructed from the unit normal
to the circle plane, the center point, and radius.
- Author:
- Cameron Arshadi
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDiskCursor3D(net.imglib2.RandomAccessible<T> rai, net.imglib2.Localizable center, long radius, double[] circleNorm) Iterates over a parameterized disk in the targetRandomAccessible.DiskCursor3D(net.imglib2.RandomAccessible<T> rai, net.imglib2.Localizable center, long radius, double[] xBasis, double[] yBasis) Iterates over a parameterized disk in the targetRandomAccessible. -
Method Summary
Methods inherited from class sc.fiji.snt.util.CircleCursor3D
get, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, jumpFwd, localize, localize, localize, localize, next, numDimensions, roundPos, setPosMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.imglib2.Cursor
copyCursorMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface net.imglib2.Localizable
localize, localize, positionAsLongArray, positionAsPointMethods inherited from interface net.imglib2.RealLocalizable
positionAsDoubleArray, positionAsRealPointMethods inherited from interface net.imglib2.Sampler
getType
-
Constructor Details
-
DiskCursor3D
public DiskCursor3D(net.imglib2.RandomAccessible<T> rai, net.imglib2.Localizable center, long radius, double[] circleNorm) Iterates over a parameterized disk in the targetRandomAccessible. Each point of the disk is iterated exactly once.- Parameters:
rai- the random accessible. It is the caller's responsibility to ensure it can be accessed everywhere the disk will be iterated.center- the disk center. Must be at least of dimension 3. Dimensions 0, 1 and 2 are used to specify the disk center.radius- the circle radius.circleNorm- the unit normal to the disk plane, must be 3-dimensional. The "new" x and y basis vectors will be constructed from this vector.
-
DiskCursor3D
public DiskCursor3D(net.imglib2.RandomAccessible<T> rai, net.imglib2.Localizable center, long radius, double[] xBasis, double[] yBasis) Iterates over a parameterized disk in the targetRandomAccessible. Each point of the disk is iterated exactly once.- Parameters:
rai- the random accessible. It is the caller responsibility to ensure it can be accessed everywhere the disk will be iterated.center- the disk center.radius- the disk radius.xBasis- the vector representing the "new" x-axis of the disk plane. Should be orthogonal to both the circle normal and the yBasisyBasis- the vector representing the "new" y-axis of the disk plane. Should be orthogonal to both the circle normal and the xBasis
-
-
Method Details
-
copy
-
fwd
public void fwd()- Specified by:
fwdin interfacenet.imglib2.Iterator- Overrides:
fwdin classCircleCursor3D<T>
-
hasNext
public boolean hasNext() -
reset
public void reset()- Specified by:
resetin interfacenet.imglib2.Iterator- Overrides:
resetin classCircleCursor3D<T>
-