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>

public class DiskCursor3D<T> extends CircleCursor3D<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
  • 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 target RandomAccessible. 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 target RandomAccessible. 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 yBasis
      yBasis - 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

      public net.imglib2.Cursor<T> copy()
      Specified by:
      copy in interface net.imglib2.Cursor<T>
      Specified by:
      copy in interface net.imglib2.RealCursor<T>
      Specified by:
      copy in interface net.imglib2.Sampler<T>
      Overrides:
      copy in class CircleCursor3D<T>
    • fwd

      public void fwd()
      Specified by:
      fwd in interface net.imglib2.Iterator
      Overrides:
      fwd in class CircleCursor3D<T>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
      Specified by:
      hasNext in interface net.imglib2.Iterator
      Overrides:
      hasNext in class CircleCursor3D<T>
    • reset

      public void reset()
      Specified by:
      reset in interface net.imglib2.Iterator
      Overrides:
      reset in class CircleCursor3D<T>