public class DisplacementFieldTransform extends Object
| Constructor and Description |
|---|
DisplacementFieldTransform() |
| Modifier and Type | Method and Description |
|---|---|
static <D extends net.imglib2.type.NativeType<D> & net.imglib2.type.numeric.RealType<D>,T extends net.imglib2.type.NativeType<T>> |
createDisplacementFieldOperator(T type,
net.imglib2.realtransform.AffineGet transformFromField,
DisplacementField<D> displacementField,
Transform.Interpolation interpolation,
ComputationType computationType,
ClampType clampType)
Combines an affine transformation into a (linearly interpolated)
displacement field, and look-up with resulting position field vectors in
a source image of type
T, to produce an output image of type
T. |
static <D extends net.imglib2.type.NativeType<D> & net.imglib2.type.numeric.RealType<D>,T extends net.imglib2.type.NativeType<T>> |
displacementFieldAffine(net.imglib2.realtransform.AffineGet transformFromField,
DisplacementField<D> displacementField,
Transform.Interpolation interpolation)
Interpolate and transform blocks of the standard ImgLib2
RealTypes using an affine-transformed displacement field. |
static <D extends net.imglib2.type.NativeType<D> & net.imglib2.type.numeric.RealType<D>,T extends net.imglib2.type.NativeType<T>> |
displacementFieldAffine(net.imglib2.realtransform.AffineGet transformFromField,
DisplacementField<D> displacementField,
Transform.Interpolation interpolation,
ComputationType computationType)
Interpolate and transform blocks of the standard ImgLib2
RealTypes using an affine-transformed displacement field. |
public static <D extends net.imglib2.type.NativeType<D> & net.imglib2.type.numeric.RealType<D>,T extends net.imglib2.type.NativeType<T>> Function<BlockSupplier<T>,UnaryBlockOperator<T,T>> displacementFieldAffine(net.imglib2.realtransform.AffineGet transformFromField, DisplacementField<D> displacementField, Transform.Interpolation interpolation)
RealTypes using an affine-transformed displacement field.
Only 2D and 3D are supported currently!
The returned factory function creates an operator matching the type a
given input BlockSupplier<T>.
D - displacement field typeT - the source/target typetransformFromField - a 2D or 3D affine transform from displacementField coordinates to
target coordinatesdisplacementField - the (normalized) displacement fieldinterpolation - which interpolation method to use for lookup in the source image.
(displacement field is always linearly interpolated)UnaryBlockOperator to transform blocks of type Tpublic static <D extends net.imglib2.type.NativeType<D> & net.imglib2.type.numeric.RealType<D>,T extends net.imglib2.type.NativeType<T>> Function<BlockSupplier<T>,UnaryBlockOperator<T,T>> displacementFieldAffine(net.imglib2.realtransform.AffineGet transformFromField, DisplacementField<D> displacementField, Transform.Interpolation interpolation, ComputationType computationType)
RealTypes using an affine-transformed displacement field.
Only 2D and 3D are supported currently!
The returned factory function creates an operator matching the type a
given input BlockSupplier<T>.
D - displacement field typeT - the source/target typetransformFromField - a 2D or 3D affine transform from displacementField coordinates to
target coordinatesdisplacementField - the (normalized) displacement fieldinterpolation - which interpolation method to use for lookup in the source image.
(displacement field is always linearly interpolated)computationType - 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 transform blocks of type Tpublic static <D extends net.imglib2.type.NativeType<D> & net.imglib2.type.numeric.RealType<D>,T extends net.imglib2.type.NativeType<T>> UnaryBlockOperator<T,T> createDisplacementFieldOperator(T type, net.imglib2.realtransform.AffineGet transformFromField, DisplacementField<D> displacementField, Transform.Interpolation interpolation, ComputationType computationType, ClampType clampType)
T, to produce an output image of type
T.D - displacement field typeT - the source/target typetype - instance of the source/target typetransformFromField - a 2D or 3D affine transform from displacementField coordinates to
target coordinatesdisplacementField - the (normalized) displacement fieldinterpolation - which interpolation method to use for lookup in the source image.
(displacement field is always linearly interpolated)computationType - 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.clampType - For n-linear interpolation this specifies how interpolated values
(which are always float or double) should be clamped when converting
back to the source/target type. For nearest-neighbor
interpolation, clampType is not used.Copyright © 2009–2026 ImgLib2. All rights reserved.