Package net.imglib2.img
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 ofNativeImgFactory???
-
-
Constructor Summary
Constructors Constructor Description NativeImgFactory()Deprecated.NativeImgFactory(T type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NativeImg<T,?>create(int[] dimensions)Create anImg<T>with the specifieddimensions.abstract NativeImg<T,?>create(long... dimensions)Create aNativeImgwith the specifieddimensions.abstract NativeImg<T,?>create(long[] dimension, T type)Deprecated.NativeImg<T,?>create(Dimensions dimensions)Create anImg<T>with the specifieddimensions.-
Methods inherited from class net.imglib2.img.ImgFactory
cache, create, create, create, create, create, imgFactory, imgFactory, type
-
-
-
-
Constructor Detail
-
NativeImgFactory
public NativeImgFactory(T type)
-
NativeImgFactory
@Deprecated public NativeImgFactory()
Deprecated.
-
-
Method Detail
-
create
public abstract NativeImg<T,?> create(long... dimensions)
Create aNativeImgwith the specifieddimensions.- Specified by:
createin classImgFactory<T extends NativeType<T>>- Parameters:
dimensions- the dimensions of the image.- Returns:
- new
NativeImgwith the specifieddimensions.
-
create
public NativeImg<T,?> create(Dimensions dimensions)
Create anImg<T>with the specifieddimensions.- Overrides:
createin classImgFactory<T extends NativeType<T>>- Returns:
- new image with the specified
dimensions.
-
create
public NativeImg<T,?> create(int[] dimensions)
Create anImg<T>with the specifieddimensions.Note: This is not a vararg function because the underlying
int[]based methods already copies theint[]dimensions into a disposablelong[]anyways. This would be an unnecessary copy forint...varargs.- Overrides:
createin classImgFactory<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:
createin classImgFactory<T extends NativeType<T>>
-
-