Package net.imglib2.img.sparse
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>
- Author:
- Tobias Pietzsch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateByteInstance(long[] dimensions, Fraction entitiesPerPixel) createCharInstance(long[] dimensions, Fraction entitiesPerPixel) createDoubleInstance(long[] dimensions, Fraction entitiesPerPixel) createFloatInstance(long[] dimensions, Fraction entitiesPerPixel) createIntInstance(long[] dimensions, Fraction entitiesPerPixel) createLongInstance(long[] dimensions, Fraction entitiesPerPixel) createShortInstance(long[] dimensions, Fraction entitiesPerPixel) <S> ImgFactory<S> imgFactory(S type) Creates the sameImgFactoryfor a different generic parameter if possible.Methods inherited from class net.imglib2.img.ImgFactory
create, create, create, create, create, imgFactory
-
Constructor Details
-
NtreeImgFactory
public NtreeImgFactory()
-
-
Method Details
-
create
Description copied from class:NativeImgFactoryThis class will ask theTypeto create a suitableImgfor theTypeand the dimensionality.Typewill then call one of the abstract methods defined below to create theNativeImg- Overrides:
createin classNativeImgFactory<T extends NativeType<T>>- Returns:
Img- the instantiated Container
-
createByteInstance
- Specified by:
createByteInstancein classNativeImgFactory<T extends NativeType<T>>
-
createCharInstance
- Specified by:
createCharInstancein classNativeImgFactory<T extends NativeType<T>>
-
createShortInstance
- Specified by:
createShortInstancein classNativeImgFactory<T extends NativeType<T>>
-
createIntInstance
- Specified by:
createIntInstancein classNativeImgFactory<T extends NativeType<T>>
-
createLongInstance
- Specified by:
createLongInstancein classNativeImgFactory<T extends NativeType<T>>
-
createFloatInstance
- Specified by:
createFloatInstancein classNativeImgFactory<T extends NativeType<T>>
-
createDoubleInstance
- Specified by:
createDoubleInstancein classNativeImgFactory<T extends NativeType<T>>
-
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
-