Class LazyCellImg<T extends NativeType<T>, A extends DataAccess>

Type Parameters:
T - the pixel type
A - the underlying native access type
All Implemented Interfaces:
Iterable<T>, Dimensions, EuclideanSpace, Img<T>, NativeImg<T,A>, Interval, IterableInterval<T>, IterableRealInterval<T>, RandomAccessible<T>, RandomAccessibleInterval<T>, RealInterval, Typed<T>

public class LazyCellImg<T extends NativeType<T>, A extends DataAccess> extends AbstractCellImg<T, A, Cell<A>, LazyCellImg.LazyCells<Cell<A>>>
A AbstractCellImg that obtains its Cells lazily when they are accessed. Cells are obtained by a LazyCellImg.Get method that is provided by the user. Typically, this is some kind of cache.
  • Constructor Details

  • Method Details

    • typeCell

      private static <A> Cell<A> typeCell()
      Create a dummy Cell instance to be returned by LazyCells.getType().
    • factory

      public ImgFactory<T> factory()
      Description copied from interface: Img
      Get a ImgFactory that creates Imgs of the same kind as this one. This is useful to create Imgs for temporary storage in generic methods where the specific Img type is unknown. Note, that the factory can be used even if all references to this Img have been invalidated.
      Returns:
      a factory for Imgs of the same kind as this one.
    • copy

      public Img<T> copy()
      Returns:
      - A copy of the current Img instance, all pixels are duplicated