T
- The value type of the pixels.public class ListImgFactory<T> extends ImgFactory<T>
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
.Constructor and Description |
---|
ListImgFactory() |
Modifier and Type | Method and Description |
---|---|
ListImg<T> |
create(long[] dim,
T type)
The
ImgFactory can decide how to create the Img . |
<S> ImgFactory<S> |
imgFactory(S type)
Creates the same
ImgFactory for a different generic parameter if
possible. |
create, create, create, create, create, imgFactory
public ListImg<T> create(long[] dim, T type)
ImgFactory
ImgFactory
can decide how to create the Img
. A
NativeImgFactory
will ask the Type
to create a suitable
NativeImg
.create
in class ImgFactory<T>
Img
public <S> ImgFactory<S> imgFactory(S type) throws IncompatibleTypeException
ImgFactory
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
.imgFactory
in class ImgFactory<T>
S
- the new typetype
- an instance of SImgFactory
of type SIncompatibleTypeException
- if type S is not compatibleCopyright © 2009–2017 ImgLib2. All rights reserved.