public class CellImgFactory<T extends NativeType<T>> extends NativeImgFactory<T>
CellImgs. The cell dimensions
for a standard cell can be supplied in the constructor of the factory. If no
cell dimensions are given, the factory creates cells of size 10 x 10 x
... x 10.| Constructor and Description |
|---|
CellImgFactory()
Deprecated.
|
CellImgFactory(int... cellDimensions)
Deprecated.
|
CellImgFactory(T type) |
CellImgFactory(T type,
int... cellDimensions) |
| Modifier and Type | Method and Description |
|---|---|
CellImg<T,?> |
create(Dimensions dimensions)
Create an
Img<T> with the specified dimensions. |
CellImg<T,?> |
create(int[] dimensions)
Create an
Img<T> with the specified dimensions. |
CellImg<T,?> |
create(long... dimensions)
Create a
NativeImg with the specified dimensions. |
CellImg<T,?> |
create(long[] dimensions,
T type)
Deprecated.
|
static int[] |
getCellDimensions(int[] defaultCellDimensions,
int n,
Fraction entitiesPerPixel)
Computes cell size array by truncating or expanding
defaultCellDimensions to length n. |
<S> ImgFactory<S> |
imgFactory(S type)
Creates the same
ImgFactory for a different generic parameter if
possible. |
static void |
verifyDimensions(int[] dimensions)
Deprecated.
This method has been deprecated in favor of
Dimensions.verify(int...). |
static void |
verifyDimensions(long[] dimensions)
Deprecated.
This method has been deprecated in favor of
Dimensions.verify(long...). |
cache, create, create, create, create, create, imgFactory, typepublic CellImgFactory(T type)
public CellImgFactory(T type, int... cellDimensions)
@Deprecated public CellImgFactory()
@Deprecated public CellImgFactory(int... cellDimensions)
public static int[] getCellDimensions(int[] defaultCellDimensions,
int n,
Fraction entitiesPerPixel)
throws IllegalArgumentException
defaultCellDimensions to length n. Then verifies that a
cell does not contain more than Integer.MAX_VALUE entities.defaultCellDimensions - n - entitiesPerPixel - IllegalArgumentExceptionpublic CellImg<T,?> create(long... dimensions)
NativeImgFactoryNativeImg with the specified dimensions.create in class NativeImgFactory<T extends NativeType<T>>dimensions - the dimensions of the image.NativeImg with the specified dimensions.public CellImg<T,?> create(Dimensions dimensions)
NativeImgFactoryImg<T> with the specified dimensions.create in class NativeImgFactory<T extends NativeType<T>>dimensions.public CellImg<T,?> create(int[] dimensions)
NativeImgFactoryImg<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 <S> ImgFactory<S> imgFactory(S type) throws IncompatibleTypeException
ImgFactoryImgFactory 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 CellImg<T,?> create(long[] dimensions, T type)
create in class NativeImgFactory<T extends NativeType<T>>@Deprecated public static void verifyDimensions(int[] dimensions) throws IllegalArgumentException
Dimensions.verify(int...).IllegalArgumentException@Deprecated public static void verifyDimensions(long[] dimensions) throws IllegalArgumentException
Dimensions.verify(long...).IllegalArgumentExceptionCopyright © 2015–2022 ImgLib2. All rights reserved.