public class Transform extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Transform.Interpolation |
| Constructor and Description |
|---|
Transform() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends net.imglib2.type.NativeType<T>> |
affine(net.imglib2.realtransform.AffineGet transformFromSource,
Transform.Interpolation interpolation)
Interpolate and affine-transform blocks of the standard ImgLib2
RealTypes. |
static <T extends net.imglib2.type.NativeType<T>> |
affine(net.imglib2.realtransform.AffineGet transformFromSource,
Transform.Interpolation interpolation,
ComputationType computationType)
Interpolate and affine-transform blocks of the standard ImgLib2
RealTypes. |
static <T extends net.imglib2.type.NativeType<T>> |
createAffineOperator(T type,
net.imglib2.realtransform.AffineGet transformFromSource,
Transform.Interpolation interpolation,
ComputationType computationType,
ClampType clampType)
Create a
UnaryBlockOperator to interpolate and affine-transform
blocks of the standard ImgLib2 RealTypes. |
static net.imglib2.realtransform.AffineGet |
invert(net.imglib2.realtransform.AffineGet transformFromSource)
Invert the given 2D/3D affine transform.
|
public static <T extends net.imglib2.type.NativeType<T>> Function<BlockSupplier<T>,UnaryBlockOperator<T,T>> affine(net.imglib2.realtransform.AffineGet transformFromSource, Transform.Interpolation interpolation)
RealTypes.
Only 2D and 3D are supported currently!
The returned factory function creates an operator matching the type a
given input BlockSupplier<T>.
T - the input/output typetransformFromSource - a 2D or 3D affine transforminterpolation - which interpolation method to useUnaryBlockOperator to affine-transform blocks of type Tpublic static <T extends net.imglib2.type.NativeType<T>> Function<BlockSupplier<T>,UnaryBlockOperator<T,T>> affine(net.imglib2.realtransform.AffineGet transformFromSource, Transform.Interpolation interpolation, ComputationType computationType)
RealTypes.
Only 2D and 3D are supported currently!
The returned factory function creates an operator matching the type a
given input BlockSupplier<T>.
T - the input/output typetransformFromSource - a 2D or 3D affine transforminterpolation - which interpolation method to usecomputationType - For n-linear interpolation, this specifies in which precision
intermediate values should be computed. For AUTO, the type
that can represent the input/output type without loss of precision
is picked. That is, FLOAT for u8, i8, u16, i16, i32, f32,
and otherwise DOUBLE for u32, i64, f64. For nearest-neighbor
interpolation, computationType is not used.UnaryBlockOperator to affine-transform blocks of type Tpublic static <T extends net.imglib2.type.NativeType<T>> UnaryBlockOperator<T,T> createAffineOperator(T type, net.imglib2.realtransform.AffineGet transformFromSource, Transform.Interpolation interpolation, ComputationType computationType, ClampType clampType)
UnaryBlockOperator to interpolate and affine-transform
blocks of the standard ImgLib2 RealTypes.
Only 2D and 3D are supported currently!
T - the input/output typetype - instance of the input typetransformFromSource - a 2D or 3D affine transforminterpolation - which interpolation method to usecomputationType - For n-linear interpolation, this specifies in which precision
intermediate values should be computed. For AUTO, the type
that can represent the input/output type without loss of precision
is picked. That is, FLOAT for u8, i8, u16, i16, i32, f32,
and otherwise DOUBLE for u32, i64, f64. For nearest-neighbor
interpolation, computationType is not used.UnaryBlockOperator to affine-transform blocks of type Tpublic static net.imglib2.realtransform.AffineGet invert(net.imglib2.realtransform.AffineGet transformFromSource)
transformFromSource - transform to invert, must be 2D or 3DCopyright © 2009–2026 ImgLib2. All rights reserved.