public abstract class ImgFactory<T> extends Object
Constructor and Description |
---|
ImgFactory() |
Modifier and Type | Method and Description |
---|---|
Img<T> |
create(Dimensions dim,
T type)
The
ImgFactory can decide how to create the Img . |
Img<T> |
create(int[] dim,
T type)
The
ImgFactory can decide how to create the Img . |
abstract Img<T> |
create(long[] dim,
T type)
The
ImgFactory can decide how to create the Img . |
abstract <S> ImgFactory<S> |
imgFactory(S type)
Creates the same
ImgFactory for a different generic parameter if
possible. |
public abstract Img<T> create(long[] dim, T type)
ImgFactory
can decide how to create the Img
. A
NativeImgFactory
will ask the Type
to create a suitable
NativeImg
.Img
public Img<T> create(Dimensions dim, T type)
ImgFactory
can decide how to create the Img
. A
NativeImgFactory
will ask the Type
to create a suitable
NativeImg
.Img
public Img<T> create(int[] dim, T type)
ImgFactory
can decide how to create the Img
. A
NativeImgFactory
will ask the Type
to create a suitable
NativeImg
.Img
public abstract <S> ImgFactory<S> imgFactory(S type) throws IncompatibleTypeException
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
.S
- the new typetype
- an instance of SImgFactory
of type SIncompatibleTypeException
- if type S is not compatibleCopyright © 2009–2017 ImgLib2. All rights reserved.