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()
Deprecated.
|
ListImgFactory(T type) |
Modifier and Type | Method and Description |
---|---|
ListImg<T> |
create(Dimensions dimensions)
Create an
Img<T> with the specified dimensions . |
ListImg<T> |
create(int[] dimensions)
Create an
Img<T> with the specified dimensions . |
ListImg<T> |
create(long... dimensions)
Create an
Img<T> with the specified dimensions . |
ListImg<T> |
create(long[] dim,
T type)
Deprecated.
|
<S> ImgFactory<S> |
imgFactory(S type)
Creates the same
ImgFactory for a different generic parameter if
possible. |
cache, create, create, create, create, create, imgFactory, type
public ListImgFactory(T type)
@Deprecated public ListImgFactory()
public ListImg<T> create(long... dimensions)
ImgFactory
Img<T>
with the specified dimensions
.create
in class ImgFactory<T>
dimensions
.public ListImg<T> create(Dimensions dimensions)
ImgFactory
Img<T>
with the specified dimensions
.create
in class ImgFactory<T>
dimensions
.public ListImg<T> create(int[] dimensions)
ImgFactory
Img<T>
with the specified dimensions
.
Note: This is not a vararg function because the underlying int[]
based methods already copies the int[]
dimensions into a
disposable long[]
anyways. This would be an unnecessary copy for
int...
varargs.
create
in class ImgFactory<T>
dimensions
.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 compatible@Deprecated public ListImg<T> create(long[] dim, T type)
create
in class ImgFactory<T>
Copyright © 2015–2022 ImgLib2. All rights reserved.