public class RealTransformFiniteDerivatives extends AbstractDifferentiableRealTransform
Modifier and Type | Field and Description |
---|---|
protected AffineTransform |
jacobian |
protected double |
step |
protected RealTransform |
transform |
Constructor and Description |
---|
RealTransformFiniteDerivatives(RealTransform transform) |
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(RealLocalizable source,
RealPositionable target)
|
RealTransformFiniteDerivatives |
copy()
Create a deep copy of this
RealTransform . |
AffineTransform |
jacobian(double[] x)
Estimates the jacobian matrix at x of the wrapped 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.
|
void |
setStep(double step) |
directionToward, directionToward, matrixTranspose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, isIdentity
protected final RealTransform transform
protected final AffineTransform jacobian
protected double step
public RealTransformFiniteDerivatives(RealTransform transform)
public void setStep(double step)
public int numSourceDimensions()
RealTransform
public int numTargetDimensions()
RealTransform
public void apply(double[] source, double[] target)
RealTransform
RealTransform
to a source vector to obtain a target
vector.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
source
- source coordinates, numDimensions()
must be >=
RealTransform.numSourceDimensions()
target
- set this to the target coordinates,
numDimensions()
must
be >=
RealTransform.numTargetDimensions()
public RealTransformFiniteDerivatives copy()
RealTransform
RealTransform
.
Deep copying is required to make sure that stateful RealTransforms
can be duplicated for concurrent code.
public AffineTransform jacobian(double[] x)
AffineTransform
so that matrix operations are convenient.jacobian
in interface DifferentiableRealTransform
jacobian
in class AbstractDifferentiableRealTransform
x
- the point at which to estimate the jacobianCopyright © 2015–2022 ImgLib2. All rights reserved.