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>
-
public class NtreeImgFactory<T extends NativeType<T>> extends NativeImgFactory<T>
- Author:
- Tobias Pietzsch
-
-
Constructor Summary
Constructors Constructor Description NtreeImgFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NtreeImg<T,?>
create(long[] dim, T type)
NtreeImg<T,ByteNtree>
createByteInstance(long[] dimensions, Fraction entitiesPerPixel)
NtreeImg<T,CharNtree>
createCharInstance(long[] dimensions, Fraction entitiesPerPixel)
NtreeImg<T,DoubleNtree>
createDoubleInstance(long[] dimensions, Fraction entitiesPerPixel)
NtreeImg<T,FloatNtree>
createFloatInstance(long[] dimensions, Fraction entitiesPerPixel)
NtreeImg<T,IntNtree>
createIntInstance(long[] dimensions, Fraction entitiesPerPixel)
NtreeImg<T,LongNtree>
createLongInstance(long[] dimensions, Fraction entitiesPerPixel)
NtreeImg<T,ShortNtree>
createShortInstance(long[] dimensions, Fraction entitiesPerPixel)
<S> ImgFactory<S>
imgFactory(S type)
Creates the sameImgFactory
for a different generic parameter if possible.-
Methods inherited from class net.imglib2.img.ImgFactory
create, create, create, create, create, imgFactory
-
-
-
-
Method Detail
-
create
public NtreeImg<T,?> create(long[] dim, T type)
Description copied from class:NativeImgFactory
This class will ask theType
to create a suitableImg
for theType
and the dimensionality.Type
will then call one of the abstract methods defined below to create theNativeImg
- Overrides:
create
in classNativeImgFactory<T extends NativeType<T>>
- Returns:
Img
- the instantiated Container
-
createByteInstance
public NtreeImg<T,ByteNtree> createByteInstance(long[] dimensions, Fraction entitiesPerPixel)
- Specified by:
createByteInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createCharInstance
public NtreeImg<T,CharNtree> createCharInstance(long[] dimensions, Fraction entitiesPerPixel)
- Specified by:
createCharInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createShortInstance
public NtreeImg<T,ShortNtree> createShortInstance(long[] dimensions, Fraction entitiesPerPixel)
- Specified by:
createShortInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createIntInstance
public NtreeImg<T,IntNtree> createIntInstance(long[] dimensions, Fraction entitiesPerPixel)
- Specified by:
createIntInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createLongInstance
public NtreeImg<T,LongNtree> createLongInstance(long[] dimensions, Fraction entitiesPerPixel)
- Specified by:
createLongInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createFloatInstance
public NtreeImg<T,FloatNtree> createFloatInstance(long[] dimensions, Fraction entitiesPerPixel)
- Specified by:
createFloatInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createDoubleInstance
public NtreeImg<T,DoubleNtree> createDoubleInstance(long[] dimensions, Fraction entitiesPerPixel)
- Specified by:
createDoubleInstance
in classNativeImgFactory<T extends NativeType<T>>
-
imgFactory
public <S> ImgFactory<S> imgFactory(S type) throws IncompatibleTypeException
Description copied from class:ImgFactory
Creates the sameImgFactory
for a different generic parameter if possible. If the type "S" does not suit the needs of theImgFactory
(for example implementNativeType
in allNativeImgFactory
, this method will throw anIncompatibleTypeException
.- Specified by:
imgFactory
in classImgFactory<T extends NativeType<T>>
- Type Parameters:
S
- the new type- Parameters:
type
- an instance of S- Returns:
ImgFactory
of type S- Throws:
IncompatibleTypeException
- if type S is not compatible
-
-