public class ArrayImgFactory<T extends NativeType<T>> extends NativeImgFactory<T>
Constructor and Description |
---|
ArrayImgFactory() |
Modifier and Type | Method and Description |
---|---|
ArrayImg<T,?> |
create(long[] dim,
T type)
|
ArrayImg<T,ByteArray> |
createByteInstance(long[] dimensions,
Fraction entitiesPerPixel) |
ArrayImg<T,CharArray> |
createCharInstance(long[] dimensions,
Fraction entitiesPerPixel) |
ArrayImg<T,DoubleArray> |
createDoubleInstance(long[] dimensions,
Fraction entitiesPerPixel) |
ArrayImg<T,FloatArray> |
createFloatInstance(long[] dimensions,
Fraction entitiesPerPixel) |
ArrayImg<T,IntArray> |
createIntInstance(long[] dimensions,
Fraction entitiesPerPixel) |
ArrayImg<T,LongArray> |
createLongInstance(long[] dimensions,
Fraction entitiesPerPixel) |
ArrayImg<T,ShortArray> |
createShortInstance(long[] dimensions,
Fraction entitiesPerPixel) |
<S> ImgFactory<S> |
imgFactory(S type)
Creates the same
ImgFactory for a different generic parameter if
possible. |
static int |
numEntitiesRangeCheck(long[] dimensions,
Fraction entitiesPerPixel) |
create, create, create, create, create, imgFactory
public ArrayImg<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 static int numEntitiesRangeCheck(long[] dimensions, Fraction entitiesPerPixel)
public ArrayImg<T,ByteArray> createByteInstance(long[] dimensions, Fraction entitiesPerPixel)
createByteInstance
in class NativeImgFactory<T extends NativeType<T>>
public ArrayImg<T,CharArray> createCharInstance(long[] dimensions, Fraction entitiesPerPixel)
createCharInstance
in class NativeImgFactory<T extends NativeType<T>>
public ArrayImg<T,DoubleArray> createDoubleInstance(long[] dimensions, Fraction entitiesPerPixel)
createDoubleInstance
in class NativeImgFactory<T extends NativeType<T>>
public ArrayImg<T,FloatArray> createFloatInstance(long[] dimensions, Fraction entitiesPerPixel)
createFloatInstance
in class NativeImgFactory<T extends NativeType<T>>
public ArrayImg<T,IntArray> createIntInstance(long[] dimensions, Fraction entitiesPerPixel)
createIntInstance
in class NativeImgFactory<T extends NativeType<T>>
public ArrayImg<T,LongArray> createLongInstance(long[] dimensions, Fraction entitiesPerPixel)
createLongInstance
in class NativeImgFactory<T extends NativeType<T>>
public ArrayImg<T,ShortArray> createShortInstance(long[] dimensions, Fraction entitiesPerPixel)
createShortInstance
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.