D - displacement field typeT - target pixel typepublic class DisplacementFieldBlockSupplier<D extends net.imglib2.type.NativeType<D> & net.imglib2.type.numeric.RealType<D>,T extends net.imglib2.type.NativeType<T>> extends AbstractBlockSupplier<T>
BlockSupplier that combines a AbstractDispFieldAffineProcessor and a PositionFieldFunction to
compute (blocks of) the transformation of a function with a displacement
field.
The AbstractDispFieldAffineProcessor interpolates and affine
transforms the displacement field to get a position field.
The PositionFieldFunction computes target values using the position
field vectors.
| Modifier and Type | Method and Description |
|---|---|
void |
copy(net.imglib2.Interval interval,
Object dest)
Copy a block from the (
T-typed) source into primitive arrays (of
the appropriate type). |
static <D extends net.imglib2.type.NativeType<D> & net.imglib2.type.numeric.RealType<D>,T extends net.imglib2.type.NativeType<T>> |
create(net.imglib2.realtransform.AffineGet transformFromField,
DisplacementField<D> displacementField,
PositionFieldFunction<D,T,?,?> positionFieldFunction)
Create a
BlockSupplier that transforms displacementField
into a position field and produces target values by applying
positionFieldFunction to the resulting position vectors. |
T |
getType() |
BlockSupplier<T> |
independentCopy()
Returns an instance of this
BlockSupplier that can be used
independently, e.g., in another thread or in another place in the same
pipeline. |
int |
numDimensions() |
threadSafepublic static <D extends net.imglib2.type.NativeType<D> & net.imglib2.type.numeric.RealType<D>,T extends net.imglib2.type.NativeType<T>> BlockSupplier<T> create(net.imglib2.realtransform.AffineGet transformFromField, DisplacementField<D> displacementField, PositionFieldFunction<D,T,?,?> positionFieldFunction)
BlockSupplier that transforms displacementField
into a position field and produces target values by applying
positionFieldFunction to the resulting position vectors.
transformFromField is an affine transform from displacementField coordinates to target coordinates. For example, this
can be used to upscale a downsampled displacement field.
D - displacement field typeT - the target typetransformFromField - a 2D or 3D affine transform from displacementField coordinates to
target coordinatesdisplacementField - the (normalized) displacement fieldpositionFieldFunction - maps position vectors to target valuesBlockSupplier that transforms displacementField
into a position field and produces target values by applying
positionFieldFunction to the resulting position vectorspublic void copy(net.imglib2.Interval interval, Object dest)
BlockSupplierT-typed) source into primitive arrays (of
the appropriate type).interval - the block to copydest - primitive array to copy into. Must correspond to T, for
example, if T is UnsignedByteType then dest must
be byte[].public int numDimensions()
public T getType()
public BlockSupplier<T> independentCopy()
BlockSupplierBlockSupplier that can be used
independently, e.g., in another thread or in another place in the same
pipeline.Copyright © 2009–2026 ImgLib2. All rights reserved.