public class UnsafeImgFactory<T extends NativeLongAccessType<T>> extends NativeLongAccessImgFactory<T>
Constructor and Description |
---|
UnsafeImgFactory()
Deprecated.
|
UnsafeImgFactory(T t) |
Modifier and Type | Method and Description |
---|---|
UnsafeImg<T,?> |
create(long... dimensions)
Create an
Img<T> with the specified dimensions . |
UnsafeImg<T,?> |
create(long[] dim,
T type)
|
UnsafeImg<T,OwningByteUnsafe> |
createByteInstance(long[] dimensions,
Fraction entitiesPerPixel) |
UnsafeImg<T,OwningCharUnsafe> |
createCharInstance(long[] dimensions,
Fraction entitiesPerPixel) |
UnsafeImg<T,OwningDoubleUnsafe> |
createDoubleInstance(long[] dimensions,
Fraction entitiesPerPixel) |
UnsafeImg<T,OwningFloatUnsafe> |
createFloatInstance(long[] dimensions,
Fraction entitiesPerPixel) |
UnsafeImg<T,OwningIntUnsafe> |
createIntInstance(long[] dimensions,
Fraction entitiesPerPixel) |
UnsafeImg<T,OwningLongUnsafe> |
createLongInstance(long[] dimensions,
Fraction entitiesPerPixel) |
UnsafeImg<T,OwningShortUnsafe> |
createShortInstance(long[] dimensions,
Fraction entitiesPerPixel) |
<S> ImgFactory<S> |
imgFactory(S type)
Creates the same
ImgFactory for a different generic parameter if
possible. |
static long |
numEntities(long[] dimensions,
Fraction entitiesPerPixel) |
public UnsafeImgFactory(T t)
@Deprecated public UnsafeImgFactory()
public UnsafeImg<T,?> create(long[] dim, T type)
NativeLongAccessImgFactory
Type
to create a suitable Img
for
the Type
and the dimensionality.
Type
will then call one of the abstract methods defined below to
create the NativeLongAccessImg
create
in class NativeLongAccessImgFactory<T extends NativeLongAccessType<T>>
Img
- the instantiated Containerpublic static long numEntities(long[] dimensions, Fraction entitiesPerPixel)
public UnsafeImg<T,OwningByteUnsafe> createByteInstance(long[] dimensions, Fraction entitiesPerPixel)
createByteInstance
in class NativeLongAccessImgFactory<T extends NativeLongAccessType<T>>
public UnsafeImg<T,OwningCharUnsafe> createCharInstance(long[] dimensions, Fraction entitiesPerPixel)
createCharInstance
in class NativeLongAccessImgFactory<T extends NativeLongAccessType<T>>
public UnsafeImg<T,OwningDoubleUnsafe> createDoubleInstance(long[] dimensions, Fraction entitiesPerPixel)
createDoubleInstance
in class NativeLongAccessImgFactory<T extends NativeLongAccessType<T>>
public UnsafeImg<T,OwningFloatUnsafe> createFloatInstance(long[] dimensions, Fraction entitiesPerPixel)
createFloatInstance
in class NativeLongAccessImgFactory<T extends NativeLongAccessType<T>>
public UnsafeImg<T,OwningIntUnsafe> createIntInstance(long[] dimensions, Fraction entitiesPerPixel)
createIntInstance
in class NativeLongAccessImgFactory<T extends NativeLongAccessType<T>>
public UnsafeImg<T,OwningLongUnsafe> createLongInstance(long[] dimensions, Fraction entitiesPerPixel)
createLongInstance
in class NativeLongAccessImgFactory<T extends NativeLongAccessType<T>>
public UnsafeImg<T,OwningShortUnsafe> createShortInstance(long[] dimensions, Fraction entitiesPerPixel)
createShortInstance
in class NativeLongAccessImgFactory<T extends NativeLongAccessType<T>>
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 NativeLongAccessType<T>>
S
- the new typetype
- an instance of SImgFactory
of type SIncompatibleTypeException
- if type S is not compatiblepublic UnsafeImg<T,?> create(long... dimensions)
ImgFactory
Img<T>
with the specified dimensions
.create
in class ImgFactory<T extends NativeLongAccessType<T>>
dimensions
.Copyright © 2015–2022 ImgLib2. All rights reserved.