public class PositionFieldTransform<T extends RealType<T>> extends Object implements RealTransform
RealTransform
by continuous coordinate lookup.Modifier and Type | Field and Description |
---|---|
protected RealRandomAccess<T>[] |
positionAccesses |
Constructor and Description |
---|
PositionFieldTransform(OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory,
InterpolatorFactory<T,RandomAccessible<T>> interpolatorFactory,
RandomAccessibleInterval<T>... positions) |
PositionFieldTransform(RandomAccessibleInterval<T>... positions) |
PositionFieldTransform(RealRandomAccess<T>... positionAccesses) |
PositionFieldTransform(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 . |
protected RealRandomAccess<T>[] |
copyAccesses() |
protected static <T extends RealType<T>> |
extendAndInterpolate(RandomAccessibleInterval<T>[] positions,
OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory,
InterpolatorFactory<T,RandomAccessible<T>> interpolatorFactory) |
int |
numSourceDimensions()
Returns n, the minimal number of dimension of the source vector.
|
int |
numTargetDimensions()
Returns m, the minimal dimension of the target vector.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isIdentity
protected final RealRandomAccess<T extends RealType<T>>[] positionAccesses
public PositionFieldTransform(RealRandomAccess<T>... positionAccesses)
@SafeVarargs public PositionFieldTransform(RealRandomAccessible<T>... positions)
@SafeVarargs public PositionFieldTransform(RandomAccessibleInterval<T>... positions)
@SafeVarargs public PositionFieldTransform(OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory, InterpolatorFactory<T,RandomAccessible<T>> interpolatorFactory, RandomAccessibleInterval<T>... positions)
protected static <T extends RealType<T>> RealRandomAccessible<T>[] extendAndInterpolate(RandomAccessibleInterval<T>[] positions, OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory, InterpolatorFactory<T,RandomAccessible<T>> interpolatorFactory)
protected RealRandomAccess<T>[] copyAccesses()
public int numSourceDimensions()
RealTransform
numSourceDimensions
in interface RealTransform
public int numTargetDimensions()
RealTransform
numTargetDimensions
in interface RealTransform
public void apply(double[] source, double[] target)
RealTransform
RealTransform
to a source vector to obtain a target
vector.apply
in interface RealTransform
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
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
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
Copyright © 2015–2022 ImgLib2. All rights reserved.