public class RegularizedDifferentiableRealTransform extends AbstractDifferentiableRealTransform
DifferentiableRealTransform
.
Returns a convex combination of the identity matrix and the jacobian of the wrapped DifferentiableReal Transform. Specifically: epsilon * I + ( 1 - * epsilon ) * J
Modifier and Type | Field and Description |
---|---|
protected DifferentiableRealTransform |
dxfm |
protected double |
epsilon |
Constructor and Description |
---|
RegularizedDifferentiableRealTransform(DifferentiableRealTransform dxfm,
double epsilon) |
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)
|
DifferentiableRealTransform |
copy()
Create a deep copy of this
RealTransform . |
AffineTransform |
jacobian(double[] x)
Returns the jacobian matrix of this transform at the point x.
|
int |
numSourceDimensions()
Returns n, the minimal number of dimension of the source vector.
|
int |
numTargetDimensions()
Returns m, the minimal dimension of the target vector.
|
directionToward, directionToward, matrixTranspose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, isIdentity
protected final DifferentiableRealTransform dxfm
protected final double epsilon
public RegularizedDifferentiableRealTransform(DifferentiableRealTransform dxfm, double epsilon)
public AffineTransform jacobian(double[] x)
jacobian
in interface DifferentiableRealTransform
jacobian
in class AbstractDifferentiableRealTransform
x
- the pointpublic 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 DifferentiableRealTransform copy()
RealTransform
RealTransform
.
Deep copying is required to make sure that stateful RealTransforms
can be duplicated for concurrent code.
Copyright © 2015–2022 ImgLib2. All rights reserved.