Package net.imglib2.img.list
Class ListImgFactory<T>
java.lang.Object
net.imglib2.img.ImgFactory<T>
net.imglib2.img.list.ListImgFactory<T>
- Type Parameters:
T- The value type of the pixels.
ImgFactory for ListImg of any type T. You can us Type
s or arbitrary Objects. If you use non-Type pixels, note,
that you cannot use Type.set(Type) to change the value stored in
every reference in the ListImg. Instead, you can use the
ListCursor.set(Object) and ListRandomAccess.set(Object)
methods to alter the underlying ArrayList.- Author:
- Stephan Preibisch, Stephan Saalfeld, Tobias Pietzsch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheImgFactorycan decide how to create theImg.<S> ImgFactory<S> imgFactory(S type) Creates the sameImgFactoryfor a different generic parameter if possible.Methods inherited from class net.imglib2.img.ImgFactory
create, create, create, create, create, imgFactory
-
Constructor Details
-
ListImgFactory
public ListImgFactory()
-
-
Method Details
-
create
Description copied from class:ImgFactoryTheImgFactorycan decide how to create theImg. ANativeImgFactorywill ask theTypeto create a suitableNativeImg.- Specified by:
createin classImgFactory<T>- Returns:
Img
-
imgFactory
Description copied from class:ImgFactoryCreates 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.- Specified by:
imgFactoryin classImgFactory<T>- Type Parameters:
S- the new type- Parameters:
type- an instance of S- Returns:
ImgFactoryof type S- Throws:
IncompatibleTypeException- if type S is not compatible
-