Package net.imglib2.img.array
Class ArrayImgFactory<T extends NativeType<T>>
java.lang.Object
net.imglib2.img.ImgFactory<T>
net.imglib2.img.NativeImgFactory<T>
net.imglib2.img.array.ArrayImgFactory<T>
- Author:
- Stephan Preibisch, Stephan Saalfeld
-
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 sameImgFactory
for a different generic parameter if possible.static int
numEntitiesRangeCheck
(long[] dimensions, Fraction entitiesPerPixel) Methods inherited from class net.imglib2.img.ImgFactory
create, create, create, create, create, imgFactory
-
Constructor Details
-
ArrayImgFactory
public ArrayImgFactory()
-
-
Method Details
-
create
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
-
numEntitiesRangeCheck
-
createByteInstance
- Specified by:
createByteInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createCharInstance
- Specified by:
createCharInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createDoubleInstance
- Specified by:
createDoubleInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createFloatInstance
- Specified by:
createFloatInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createIntInstance
- Specified by:
createIntInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createLongInstance
- Specified by:
createLongInstance
in classNativeImgFactory<T extends NativeType<T>>
-
createShortInstance
- Specified by:
createShortInstance
in classNativeImgFactory<T extends NativeType<T>>
-
imgFactory
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
-