public class ArrayImgFactory<T extends NativeType<T>> extends NativeImgFactory<T>
ArrayImg
s.Constructor and Description |
---|
ArrayImgFactory()
Deprecated.
|
ArrayImgFactory(T type) |
Modifier and Type | Method and Description |
---|---|
ArrayImg<T,?> |
create(Dimensions dimensions)
Create an
Img<T> with the specified dimensions . |
ArrayImg<T,?> |
create(int[] dimensions)
Create an
Img<T> with the specified dimensions . |
ArrayImg<T,?> |
create(long... dimensions)
Create a
NativeImg with the specified dimensions . |
ArrayImg<T,?> |
create(long[] dim,
T type)
Deprecated.
|
<S> ImgFactory<S> |
imgFactory(S type)
Creates the same
ImgFactory for a different generic parameter if
possible. |
static int |
numEntitiesRangeCheck(long[] dimensions,
Fraction entitiesPerPixel) |
cache, create, create, create, create, create, imgFactory, type
public ArrayImgFactory(T type)
@Deprecated public ArrayImgFactory()
public ArrayImg<T,?> create(long... dimensions)
NativeImgFactory
NativeImg
with the specified dimensions
.create
in class NativeImgFactory<T extends NativeType<T>>
dimensions
- the dimensions of the image.NativeImg
with the specified dimensions
.public ArrayImg<T,?> create(Dimensions dimensions)
NativeImgFactory
Img<T>
with the specified dimensions
.create
in class NativeImgFactory<T extends NativeType<T>>
dimensions
.public ArrayImg<T,?> create(int[] dimensions)
NativeImgFactory
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 NativeImgFactory<T extends NativeType<T>>
dimensions
.public static int numEntitiesRangeCheck(long[] dimensions, Fraction entitiesPerPixel)
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 extends NativeType<T>>
S
- the new typetype
- an instance of SImgFactory
of type SIncompatibleTypeException
- if type S is not compatible@Deprecated public ArrayImg<T,?> create(long[] dim, T type)
create
in class NativeImgFactory<T extends NativeType<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.