Class NtreeImgFactory<T extends NativeType<T>>
java.lang.Object
net.imglib2.img.ImgFactory<T>
net.imglib2.img.NativeImgFactory<T>
net.imglib2.img.sparse.NtreeImgFactory<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(int[] dimensions) Create anImg<T>with the specifieddimensions.create(long... dimensions) Create aNativeImgwith the specifieddimensions.Deprecated.create(long[] dimensions, T type, NativeTypeFactory<T, A> typeFactory) create(Dimensions dimensions) Create anImg<T>with the specifieddimensions.static <A extends NtreeAccess<?,A>>
AcreateNtreeAccess(NativeTypeFactory<?, ? super A> typeFactory, long[] dimensions) <S> ImgFactory<S> imgFactory(S type) Creates the sameImgFactoryfor a different generic parameter if possible.Methods inherited from class ImgFactory
cache, create, create, create, create, create, imgFactory, type
-
Constructor Details
-
NtreeImgFactory
-
NtreeImgFactory
Deprecated.
-
-
Method Details
-
create
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
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
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
-
createNtreeAccess
public static <A extends NtreeAccess<?,A>> A createNtreeAccess(NativeTypeFactory<?, ? super A> typeFactory, long[] dimensions) -
imgFactory
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.- Specified by:
createin classNativeImgFactory<T extends NativeType<T>>
-