Package net.imglib2.img.array
Class ArrayImgFactory<T extends NativeType<T>>
- java.lang.Object
-
- net.imglib2.img.ImgFactory<T>
-
- net.imglib2.img.NativeImgFactory<T>
-
- net.imglib2.img.array.ArrayImgFactory<T>
-
public class ArrayImgFactory<T extends NativeType<T>> extends NativeImgFactory<T>
Factory forArrayImgs.
-
-
Constructor Summary
Constructors Constructor Description ArrayImgFactory()Deprecated.ArrayImgFactory(T type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ArrayImg<T,?>create(int[] dimensions)Create anImg<T>with the specifieddimensions.ArrayImg<T,?>create(long... dimensions)Create aNativeImgwith the specifieddimensions.ArrayImg<T,?>create(long[] dim, T type)Deprecated.private <A extends ArrayDataAccess<A>>
ArrayImg<T,A>create(long[] dimensions, T type, NativeTypeFactory<T,A> typeFactory)ArrayImg<T,?>create(Dimensions dimensions)Create anImg<T>with the specifieddimensions.<S> ImgFactory<S>imgFactory(S type)Creates the sameImgFactoryfor a different generic parameter if possible.static intnumEntitiesRangeCheck(long[] dimensions, Fraction entitiesPerPixel)-
Methods inherited from class net.imglib2.img.ImgFactory
cache, create, create, create, create, create, imgFactory, type
-
-
-
-
Constructor Detail
-
ArrayImgFactory
public ArrayImgFactory(T type)
-
ArrayImgFactory
@Deprecated public ArrayImgFactory()
Deprecated.
-
-
Method Detail
-
create
public ArrayImg<T,?> create(long... dimensions)
Description copied from class:NativeImgFactoryCreate aNativeImgwith the specifieddimensions.- Specified by:
createin classNativeImgFactory<T extends NativeType<T>>- Parameters:
dimensions- the dimensions of the image.- Returns:
- new
NativeImgwith the specifieddimensions.
-
create
public ArrayImg<T,?> create(Dimensions dimensions)
Description copied from class:NativeImgFactoryCreate anImg<T>with the specifieddimensions.- Overrides:
createin classNativeImgFactory<T extends NativeType<T>>- Returns:
- new image with the specified
dimensions.
-
create
public ArrayImg<T,?> create(int[] dimensions)
Description copied from class:NativeImgFactoryCreate 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 classNativeImgFactory<T extends NativeType<T>>- Returns:
- new image with the specified
dimensions.
-
create
private <A extends ArrayDataAccess<A>> ArrayImg<T,A> create(long[] dimensions, T type, NativeTypeFactory<T,A> typeFactory)
-
numEntitiesRangeCheck
public static int numEntitiesRangeCheck(long[] dimensions, Fraction entitiesPerPixel)
-
imgFactory
public <S> ImgFactory<S> imgFactory(S type) throws IncompatibleTypeException
Description copied from class:ImgFactoryCreates the sameImgFactoryfor a different generic parameter if possible. If the type "S" does not suit the needs of theImgFactory(for example implementNativeTypein allNativeImgFactory, this method will throw anIncompatibleTypeException.- Specified by:
imgFactoryin classImgFactory<T extends NativeType<T>>- Type Parameters:
S- the new type- Parameters:
type- an instance of S- Returns:
ImgFactoryof type S- Throws:
IncompatibleTypeException- if type S is not compatible
-
create
@Deprecated public ArrayImg<T,?> create(long[] dim, T type)
Deprecated.- Specified by:
createin classNativeImgFactory<T extends NativeType<T>>
-
-