public class NtreeImgFactory<T extends NativeType<T>> extends NativeImgFactory<T>
Constructor and Description |
---|
NtreeImgFactory()
Deprecated.
|
NtreeImgFactory(T type) |
Modifier and Type | Method and Description |
---|---|
NtreeImg<T,?> |
create(Dimensions dimensions)
Create an
Img<T> with the specified dimensions . |
NtreeImg<T,?> |
create(int[] dimensions)
Create an
Img<T> with the specified dimensions . |
NtreeImg<T,?> |
create(long... dimensions)
Create a
NativeImg with the specified dimensions . |
NtreeImg<T,?> |
create(long[] dimensions,
T type)
Deprecated.
|
static <A extends NtreeAccess<?,A>> |
createNtreeAccess(NativeTypeFactory<?,? super A> typeFactory,
long[] dimensions) |
<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 NtreeImgFactory(T type)
@Deprecated public NtreeImgFactory()
public NtreeImg<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 NtreeImg<T,?> create(Dimensions dimensions)
NativeImgFactory
Img<T>
with the specified dimensions
.create
in class NativeImgFactory<T extends NativeType<T>>
dimensions
.public NtreeImg<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 <A extends NtreeAccess<?,A>> A createNtreeAccess(NativeTypeFactory<?,? super A> typeFactory, long[] 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 extends NativeType<T>>
S
- the new typetype
- an instance of SImgFactory
of type SIncompatibleTypeException
- if type S is not compatible@Deprecated public NtreeImg<T,?> create(long[] dimensions, T type)
create
in class NativeImgFactory<T extends NativeType<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.