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, matrixTransposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, isIdentityprotected final DifferentiableRealTransform dxfm
protected final double epsilon
public RegularizedDifferentiableRealTransform(DifferentiableRealTransform dxfm, double epsilon)
public AffineTransform jacobian(double[] x)
jacobian in interface DifferentiableRealTransformjacobian in class AbstractDifferentiableRealTransformx - the pointpublic int numSourceDimensions()
RealTransformpublic int numTargetDimensions()
RealTransformpublic void apply(double[] source,
double[] target)
RealTransformRealTransform 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)
RealTransformsource - source coordinates, numDimensions() must be >=
RealTransform.numSourceDimensions()target - set this to the target coordinates,
numDimensions() must
be >= RealTransform.numTargetDimensions()public DifferentiableRealTransform copy()
RealTransformRealTransform.
Deep copying is required to make sure that stateful RealTransforms can be duplicated for concurrent code.
Copyright © 2015–2022 ImgLib2. All rights reserved.