Class LazyCellImg.LazyCells<T extends Cell<?>>

All Implemented Interfaces:
Iterable<T>, Dimensions, EuclideanSpace, Img<T>, Interval, IterableInterval<T>, IterableRealInterval<T>, RandomAccessible<T>, RandomAccessibleInterval<T>, RealInterval, Typed<T>
Enclosing class:
LazyCellImg<T extends NativeType<T>, A extends DataAccess>

public static final class LazyCellImg.LazyCells<T extends Cell<?>> extends AbstractLongListImg<T>
  • Field Details

  • Constructor Details

  • Method Details

    • get

      protected T get(long index)
      Specified by:
      get in class AbstractLongListImg<T extends Cell<?>>
    • getType

      public T getType()
      Description copied from interface: Typed
      Get an instance of T.

      It should not be assumed that the returned T instance is an independent copy. In particular, repeated calls to getType() may return the same instance.

      Returns:
      an instance of T
    • set

      protected void set(long index, T value)
      Specified by:
      set in class AbstractLongListImg<T extends Cell<?>>
    • 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