Class NativeImgFactory<T extends NativeType<T>>

java.lang.Object
net.imglib2.img.ImgFactory<T>
net.imglib2.img.NativeImgFactory<T>
Direct Known Subclasses:
ArrayImgFactory, CellImgFactory, NtreeImgFactory, PlanarImgFactory

public abstract class NativeImgFactory<T extends NativeType<T>> extends ImgFactory<T>
TODO: get rid of NativeImgFactory???
  • Constructor Details

    • NativeImgFactory

      public NativeImgFactory(T type)
    • NativeImgFactory

      @Deprecated public NativeImgFactory()
      Deprecated.
  • Method Details

    • create

      public abstract NativeImg<T,?> create(long... dimensions)
      Create a NativeImg with the specified dimensions.
      Specified by:
      create in class ImgFactory<T extends NativeType<T>>
      Parameters:
      dimensions - the dimensions of the image.
      Returns:
      new NativeImg with the specified dimensions.
    • create

      public NativeImg<T,?> create(Dimensions dimensions)
      Create an Img<T> with the specified dimensions.
      Overrides:
      create in class ImgFactory<T extends NativeType<T>>
      Returns:
      new image with the specified dimensions.
    • create

      public NativeImg<T,?> create(int[] dimensions)
      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 extends NativeType<T>>
      Returns:
      new image with the specified dimensions.
    • create

      @Deprecated public abstract NativeImg<T,?> create(long[] dimension, T type)
      Deprecated.
      Specified by:
      create in class ImgFactory<T extends NativeType<T>>