public class AbstractRealTransformSequence<R extends RealTransform> extends Object implements RealTransform
RealTransformSequence and
InvertibleRealTransformSequence, sequences of something that extends
RealTransforms.| Modifier and Type | Field and Description |
|---|---|
protected int |
nSource |
protected int |
nTarget |
protected RealPoint |
ptmp |
protected double[] |
tmp |
protected ArrayList<R> |
transforms |
| Constructor and Description |
|---|
AbstractRealTransformSequence() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(R transform)
Append a
RealTransform to the sequence. |
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)
|
AbstractRealTransformSequence<R> |
copy()
Create a deep copy of this
RealTransform. |
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, waitisIdentityprotected final ArrayList<R extends RealTransform> transforms
protected double[] tmp
protected RealPoint ptmp
protected int nSource
protected int nTarget
public void add(R transform)
RealTransform to the sequence.transform - public int numSourceDimensions()
RealTransformnumSourceDimensions in interface RealTransformpublic int numTargetDimensions()
RealTransformnumTargetDimensions in interface RealTransformpublic void apply(double[] source,
double[] target)
RealTransformRealTransform to a source vector to obtain a target
vector.apply in interface RealTransformsource - 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)
RealTransformRealTransform to a source vector to obtain a target
vector.apply in interface RealTransformsource - 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)
RealTransformapply in interface RealTransformsource - source coordinates, numDimensions() must be >=
RealTransform.numSourceDimensions()target - set this to the target coordinates,
numDimensions() must
be >= RealTransform.numTargetDimensions()public AbstractRealTransformSequence<R> copy()
RealTransformRealTransform.
Deep copying is required to make sure that stateful RealTransforms can be duplicated for concurrent code.
copy in interface RealTransformCopyright © 2009–2018 ImgLib2. All rights reserved.