public class DeformationFieldTransform<T extends RealType<T>> extends PositionFieldTransform<T>
RealTransform
by continuous offset lookup.positionAccesses
Constructor and Description |
---|
DeformationFieldTransform(OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory,
InterpolatorFactory<T,RandomAccessible<T>> interpolatorFactory,
RandomAccessibleInterval<T>... positions) |
DeformationFieldTransform(RandomAccessibleInterval<T>... positions) |
DeformationFieldTransform(RealRandomAccess<T>... positionAccesses) |
DeformationFieldTransform(RealRandomAccessible<T>... positions) |
Modifier and Type | Method and Description |
---|---|
void |
apply(double[] source,
double[] target)
Apply the
RealTransform to a source vector to obtain a target
vector. |
void |
apply(float[] source,
float[] target)
Apply the
RealTransform to a source vector to obtain a target
vector. |
void |
apply(RealLocalizable source,
RealPositionable target)
|
RealTransform |
copy()
Create a deep copy of this
RealTransform . |
copyAccesses, extendAndInterpolate, numSourceDimensions, numTargetDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isIdentity
public DeformationFieldTransform(RealRandomAccess<T>... positionAccesses)
@SafeVarargs public DeformationFieldTransform(RealRandomAccessible<T>... positions)
@SafeVarargs public DeformationFieldTransform(RandomAccessibleInterval<T>... positions)
@SafeVarargs public DeformationFieldTransform(OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory, InterpolatorFactory<T,RandomAccessible<T>> interpolatorFactory, RandomAccessibleInterval<T>... positions)
public void apply(double[] source, double[] target)
RealTransform
RealTransform
to a source vector to obtain a target
vector.apply
in interface RealTransform
apply
in class PositionFieldTransform<T extends RealType<T>>
source
- source coordinates, length must be >=
RealTransform.numSourceDimensions()
target
- set this to the target coordinates, length must be >=
RealTransform.numTargetDimensions()
public void apply(float[] source, float[] target)
RealTransform
RealTransform
to a source vector to obtain a target
vector.apply
in interface RealTransform
apply
in class PositionFieldTransform<T extends RealType<T>>
source
- source coordinates, length must be >=
RealTransform.numSourceDimensions()
target
- set this to the target coordinates, length must be >=
RealTransform.numTargetDimensions()
public void apply(RealLocalizable source, RealPositionable target)
RealTransform
apply
in interface RealTransform
apply
in class PositionFieldTransform<T extends RealType<T>>
source
- source coordinates, numDimensions()
must be >=
RealTransform.numSourceDimensions()
target
- set this to the target coordinates,
numDimensions()
must
be >=
RealTransform.numTargetDimensions()
public RealTransform copy()
RealTransform
RealTransform
.
Deep copying is required to make sure that stateful RealTransforms
can be duplicated for concurrent code.
copy
in interface RealTransform
copy
in class PositionFieldTransform<T extends RealType<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.