Class PathCursor<T>

java.lang.Object
sc.fiji.snt.util.PathCursor<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 PathCursor<T> extends Object implements net.imglib2.Cursor<T>
Iterate over the pixels along the defined nodes of a Path
Author:
Cameron Arshadi
  • Constructor Details

    • PathCursor

      public PathCursor(net.imglib2.RandomAccessible<T> accessible, Path path)
  • 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>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
      Specified by:
      next in interface net.imglib2.RealCursor<T>
    • jumpFwd

      public void jumpFwd(long steps)
      Specified by:
      jumpFwd in interface net.imglib2.Iterator
    • fwd

      public void fwd()
      Specified by:
      fwd in interface net.imglib2.Iterator
    • reset

      public void reset()
      Specified by:
      reset in interface net.imglib2.Iterator
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
      Specified by:
      hasNext in interface net.imglib2.Iterator
    • localize

      public void localize(float[] position)
      Specified by:
      localize in interface net.imglib2.RealLocalizable
    • localize

      public void localize(double[] position)
      Specified by:
      localize in interface net.imglib2.RealLocalizable
    • localize

      public void localize(int[] position)
      Specified by:
      localize in interface net.imglib2.Localizable
    • localize

      public void localize(long[] position)
      Specified by:
      localize in interface net.imglib2.Localizable
    • getIntPosition

      public int getIntPosition(int d)
      Specified by:
      getIntPosition in interface net.imglib2.Localizable
    • getLongPosition

      public long getLongPosition(int d)
      Specified by:
      getLongPosition in interface net.imglib2.Localizable
    • getFloatPosition

      public float getFloatPosition(int d)
      Specified by:
      getFloatPosition in interface net.imglib2.Localizable
      Specified by:
      getFloatPosition in interface net.imglib2.RealLocalizable
    • getDoublePosition

      public double getDoublePosition(int d)
      Specified by:
      getDoublePosition in interface net.imglib2.Localizable
      Specified by:
      getDoublePosition in interface net.imglib2.RealLocalizable
    • numDimensions

      public int numDimensions()
      Specified by:
      numDimensions in interface net.imglib2.EuclideanSpace
    • get

      public T get()
      Specified by:
      get in interface net.imglib2.Sampler<T>