public class NtreeImgFactory<T extends NativeType<T>> extends NativeImgFactory<T>
Constructor and Description |
---|
NtreeImgFactory() |
Modifier and Type | Method and 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 same
ImgFactory for a different generic parameter if
possible. |
create, create, create, create, create, imgFactory
public NtreeImg<T,?> create(long[] dim, T type)
NativeImgFactory
Type
to create a suitable Img
for
the Type
and the dimensionality.
Type
will then call one of the abstract methods defined below to
create the NativeImg
create
in class NativeImgFactory<T extends NativeType<T>>
Img
- the instantiated Containerpublic NtreeImg<T,ByteNtree> createByteInstance(long[] dimensions, Fraction entitiesPerPixel)
createByteInstance
in class NativeImgFactory<T extends NativeType<T>>
public NtreeImg<T,CharNtree> createCharInstance(long[] dimensions, Fraction entitiesPerPixel)
createCharInstance
in class NativeImgFactory<T extends NativeType<T>>
public NtreeImg<T,ShortNtree> createShortInstance(long[] dimensions, Fraction entitiesPerPixel)
createShortInstance
in class NativeImgFactory<T extends NativeType<T>>
public NtreeImg<T,IntNtree> createIntInstance(long[] dimensions, Fraction entitiesPerPixel)
createIntInstance
in class NativeImgFactory<T extends NativeType<T>>
public NtreeImg<T,LongNtree> createLongInstance(long[] dimensions, Fraction entitiesPerPixel)
createLongInstance
in class NativeImgFactory<T extends NativeType<T>>
public NtreeImg<T,FloatNtree> createFloatInstance(long[] dimensions, Fraction entitiesPerPixel)
createFloatInstance
in class NativeImgFactory<T extends NativeType<T>>
public NtreeImg<T,DoubleNtree> createDoubleInstance(long[] dimensions, Fraction entitiesPerPixel)
createDoubleInstance
in class NativeImgFactory<T extends NativeType<T>>
public <S> ImgFactory<S> imgFactory(S type) throws IncompatibleTypeException
ImgFactory
ImgFactory
for a different generic parameter if
possible.
If the type "S" does not suit the needs of the ImgFactory
(for
example implement NativeType
in all NativeImgFactory
,
this method will throw an IncompatibleTypeException
.imgFactory
in class ImgFactory<T extends NativeType<T>>
S
- the new typetype
- an instance of SImgFactory
of type SIncompatibleTypeException
- if type S is not compatibleCopyright © 2009–2018 ImgLib2. All rights reserved.