public interface RealTransform
Applying the transformation to an n-dimensional source vector yields an m-dimensional target vector.
Source and target vectors are required to be at least n- or
m-dimensional respectively. The RealTransform
is expected to
leave all dimensions beyond n-1 in the source vector and m
-1 in the target vector unchanged.
Implementations must support an in-place apply (i.e., passing the same object as both source and target).
Modifier and Type | Method and Description |
---|---|
void |
apply(double[] source,
double[] target)
Apply the
RealTransform to a source vector to obtain a target
vector. |
default void |
apply(float[] source,
float[] target)
Deprecated.
use double precision instead
|
void |
apply(RealLocalizable source,
RealPositionable target)
|
RealTransform |
copy()
Create a deep copy of this
RealTransform . |
default boolean |
isIdentity()
Check if the
RealTransform is identity. |
int |
numSourceDimensions()
Returns n, the minimal number of dimension of the source vector.
|
int |
numTargetDimensions()
Returns m, the minimal dimension of the target vector.
|
int numSourceDimensions()
int numTargetDimensions()
void apply(double[] source, double[] target)
RealTransform
to a source vector to obtain a target
vector.source
- source coordinates, length must be >=
numSourceDimensions()
target
- set this to the target coordinates, length must be >=
numTargetDimensions()
@Deprecated default void apply(float[] source, float[] target)
RealTransform
to a source vector to obtain a target
vector.source
- source coordinates, length must be >=
numSourceDimensions()
target
- set this to the target coordinates, length must be >=
numTargetDimensions()
void apply(RealLocalizable source, RealPositionable target)
source
- source coordinates, numDimensions()
must be >=
numSourceDimensions()
target
- set this to the target coordinates,
numDimensions()
must
be >=
numTargetDimensions()
RealTransform copy()
RealTransform
.
Deep copying is required to make sure that stateful RealTransforms
can be duplicated for concurrent code.
default boolean isIdentity()
RealTransform
is identity.Copyright © 2015–2022 ImgLib2. All rights reserved.