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. |
Img<T> |
create(Supplier<T> typeSupplier,
Dimensions dim)
The
ImgFactory can decide how to create the Img. |
Img<T> |
create(Supplier<T> typeSupplier,
int[] dim)
The
ImgFactory can decide how to create the Img. |
Img<T> |
create(Supplier<T> typeSupplier,
long... dim)
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. |
<S> ImgFactory<S> |
imgFactory(Supplier<S> typeSupplier)
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.Imgpublic 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.Imgpublic 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.Imgpublic 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 compatiblepublic Img<T> create(Supplier<T> typeSupplier, long... dim)
ImgFactory can decide how to create the Img. A
NativeImgFactory will ask the supplied Type to create a
suitable NativeImg.Imgpublic Img<T> create(Supplier<T> typeSupplier, Dimensions dim)
ImgFactory can decide how to create the Img. A
NativeImgFactory will ask the supplied Type to create a
suitable NativeImg.Imgpublic Img<T> create(Supplier<T> typeSupplier, int[] dim)
ImgFactory can decide how to create the Img. A
NativeImgFactory will ask the supplied Type to create a
suitable NativeImg.
Note: This is not a vararg function because the underlying int[] based methods alreay copies the int[] dimensions into a disposable long[] anyways. This would be an unnecessary copy for int... varargs.
Imgpublic <S> ImgFactory<S> imgFactory(Supplier<S> typeSupplier) throws IncompatibleTypeException
ImgFactory for a different generic parameter if
possible.
If the supplied 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 typetypeSupplier - a supplier of SImgFactory of type SIncompatibleTypeException - if type S is not compatibleCopyright © 2009–2017 ImgLib2. All rights reserved.