Class ListImgFactory<T>

java.lang.Object
net.imglib2.img.ImgFactory<T>
net.imglib2.img.list.ListImgFactory<T>
Type Parameters:
T - The value type of the pixels.

public class ListImgFactory<T> extends ImgFactory<T>
ImgFactory for ListImg of any type T. You can us Type s or arbitrary Objects. If you use non-Type pixels, note, that you cannot use Type.set(Type) to change the value stored in every reference in the ListImg. Instead, you can use the ListCursor.set(Object) and ListRandomAccess.set(Object) methods to alter the underlying ArrayList.
  • Constructor Details

    • ListImgFactory

      public ListImgFactory(T type)
    • ListImgFactory

      @Deprecated public ListImgFactory()
      Deprecated.
  • Method Details

    • create

      public ListImg<T> create(long... dimensions)
      Description copied from class: ImgFactory
      Create an Img<T> with the specified dimensions.
      Specified by:
      create in class ImgFactory<T>
      Returns:
      new image with the specified dimensions.
    • create

      public ListImg<T> create(Dimensions dimensions)
      Description copied from class: ImgFactory
      Create an Img<T> with the specified dimensions.
      Overrides:
      create in class ImgFactory<T>
      Returns:
      new image with the specified dimensions.
    • create

      public ListImg<T> create(int[] dimensions)
      Description copied from class: ImgFactory
      Create an Img<T> with the specified dimensions.

      Note: This is not a vararg function because the underlying int[] based methods already copies the int[] dimensions into a disposable long[] anyways. This would be an unnecessary copy for int... varargs.

      Overrides:
      create in class ImgFactory<T>
      Returns:
      new image with the specified dimensions.
    • imgFactory

      public <S> ImgFactory<S> imgFactory(S type) throws IncompatibleTypeException
      Description copied from class: ImgFactory
      Creates the same ImgFactory for a different generic parameter if possible. If the type "S" does not suit the needs of the ImgFactory (for example implement NativeType in all NativeImgFactory, this method will throw an IncompatibleTypeException.
      Specified by:
      imgFactory in class ImgFactory<T>
      Type Parameters:
      S - the new type
      Parameters:
      type - an instance of S
      Returns:
      ImgFactory of type S
      Throws:
      IncompatibleTypeException - if type S is not compatible
    • create

      @Deprecated public ListImg<T> create(long[] dim, T type)
      Deprecated.
      Specified by:
      create in class ImgFactory<T>