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.
public class ListImgFactory<T> extends ImgFactory<T>
ImgFactory
forListImg
of any type T. You can usType
s or arbitraryObject
s. If you use non-Type
pixels, note, that you cannot useType.set(Type)
to change the value stored in every reference in theListImg
. Instead, you can use theListCursor.set(Object)
andListRandomAccess.set(Object)
methods to alter the underlyingArrayList
.- Author:
- Stephan Preibisch, Stephan Saalfeld, Tobias Pietzsch
-
-
Constructor Summary
Constructors Constructor Description ListImgFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListImg<T>
create(long[] dim, T type)
TheImgFactory
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
-
-
-
-
Method Detail
-
create
public ListImg<T> create(long[] dim, T type)
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
public <S> ImgFactory<S> imgFactory(S type) throws IncompatibleTypeException
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
-
-