Package net.imglib2.img
Class ImgFactory<T>
java.lang.Object
net.imglib2.img.ImgFactory<T>
- Direct Known Subclasses:
ListImgFactory,NativeImgFactory
TODO
- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheImgFactorycan decide how to create theImg.TheImgFactorycan decide how to create theImg.TheImgFactorycan decide how to create theImg.TheImgFactorycan decide how to create theImg.create(Supplier<T> typeSupplier, Dimensions dim) TheImgFactorycan decide how to create theImg.create(Dimensions dim, T type) TheImgFactorycan decide how to create theImg.<S> ImgFactory<S> imgFactory(Supplier<S> typeSupplier) Creates the sameImgFactoryfor a different generic parameter if possible.abstract <S> ImgFactory<S> imgFactory(S type) Creates the sameImgFactoryfor a different generic parameter if possible.
-
Constructor Details
-
ImgFactory
public ImgFactory()
-
-
Method Details
-
create
TheImgFactorycan decide how to create theImg. ANativeImgFactorywill ask theTypeto create a suitableNativeImg.- Returns:
Img
-
create
TheImgFactorycan decide how to create theImg. ANativeImgFactorywill ask theTypeto create a suitableNativeImg.- Returns:
Img
-
create
TheImgFactorycan decide how to create theImg. ANativeImgFactorywill ask theTypeto create a suitableNativeImg.- Returns:
Img
-
imgFactory
Creates the sameImgFactoryfor a different generic parameter if possible. If the type "S" does not suit the needs of theImgFactory(for example implementNativeTypein allNativeImgFactory, this method will throw anIncompatibleTypeException.- Type Parameters:
S- the new type- Parameters:
type- an instance of S- Returns:
ImgFactoryof type S- Throws:
IncompatibleTypeException- if type S is not compatible
-
create
TheImgFactorycan decide how to create theImg. ANativeImgFactorywill ask the suppliedTypeto create a suitableNativeImg.- Returns:
Img
-
create
TheImgFactorycan decide how to create theImg. ANativeImgFactorywill ask the suppliedTypeto create a suitableNativeImg.- Returns:
Img
-
create
TheImgFactorycan decide how to create theImg. ANativeImgFactorywill ask the suppliedTypeto create a suitableNativeImg.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.
- Returns:
Img
-
imgFactory
Creates the sameImgFactoryfor a different generic parameter if possible. If the supplied type "S" does not suit the needs of theImgFactory(for example implementNativeTypein allNativeImgFactory, this method will throw anIncompatibleTypeException.- Type Parameters:
S- the new type- Parameters:
typeSupplier- a supplier of S- Returns:
ImgFactoryof type S- Throws:
IncompatibleTypeException- if type S is not compatible
-