Class CellRandomAccess<T extends NativeType<T>,C extends Cell<?>>

All Implemented Interfaces:
EuclideanSpace, AbstractCellImg.CellImgSampler<C>, Localizable, Positionable, RandomAccess<T>, RealLocalizable, Sampler<T>

public class CellRandomAccess<T extends NativeType<T>,C extends Cell<?>> extends AbstractLocalizable implements RandomAccess<T>, AbstractCellImg.CellImgSampler<C>
RandomAccess on a AbstractCellImg. The boundaries of the current cell are cached, so that position changes within the same cell have minimal overhead.
Author:
Tobias Pietzsch
  • Field Details

    • type

      protected final T extends NativeType<T> type
    • grid

      protected final CellGrid grid
    • randomAccessOnCells

      protected final RandomAccess<C extends Cell<?>> randomAccessOnCells
    • cellDims

      protected final int[] cellDims
    • dimensions

      protected final long[] dimensions
    • currentCellSteps

      protected int[] currentCellSteps
    • currentCellMin

      protected long[] currentCellMin
    • currentCellMax

      protected long[] currentCellMax
    • isOutOfBounds

      protected boolean isOutOfBounds
    • oobCellMin

      protected final long[] oobCellMin
    • oobCellMax

      protected final long[] oobCellMax
    • index

      protected int index
      The current index of the type. It is faster to duplicate this here than to access it through type.getIndex().
  • Constructor Details

  • Method Details