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 Object
s. 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 TypeMethodDescriptionTheImgFactory
can decide how to create theImg
.<S> ImgFactory
<S> imgFactory
(S type) Creates the sameImgFactory
for 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:ImgFactory
TheImgFactory
can decide how to create theImg
. ANativeImgFactory
will ask theType
to create a suitableNativeImg
.- Specified by:
create
in classImgFactory<T>
- Returns:
Img
-
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>
- 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
-