public class InvertibleTransformByGradientDescent extends Object implements InvertibleRealTransform
| Constructor and Description |
|---|
InvertibleTransformByGradientDescent(DifferentiableRealTransform forwardTransform) |
InvertibleTransformByGradientDescent(DifferentiableRealTransform forwardTransform,
BacktrackingLineSearch inverseTransform,
boolean isInverse) |
InvertibleTransformByGradientDescent(DifferentiableRealTransform forwardTransform,
boolean isInverse) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(double[] p,
double[] q)
Apply the
RealTransform to a source vector to obtain a target
vector. |
void |
apply(RealLocalizable p,
RealPositionable q)
|
void |
applyInverse(double[] p,
double[] q)
Apply the inverse transform to a target vector to obtain a source vector.
|
void |
applyInverse(RealPositionable p,
RealLocalizable q)
Apply the inverse transform to a target
RealLocalizable to obtain
a source RealPositionable. |
InvertibleTransformByGradientDescent |
copy()
Create a deep copy of this
RealTransform. |
InvertibleTransformByGradientDescent |
inverse()
Get the inverse transform.
|
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, waitapplyInverseapply, isIdentitypublic InvertibleTransformByGradientDescent(DifferentiableRealTransform forwardTransform)
public InvertibleTransformByGradientDescent(DifferentiableRealTransform forwardTransform, boolean isInverse)
public InvertibleTransformByGradientDescent(DifferentiableRealTransform forwardTransform, BacktrackingLineSearch inverseTransform, boolean isInverse)
public void apply(double[] p,
double[] q)
RealTransformRealTransform to a source vector to obtain a target
vector.apply in interface RealTransformp - source coordinates, length must be >=
RealTransform.numSourceDimensions()q - set this to the target coordinates, length must be >=
RealTransform.numTargetDimensions()public void apply(RealLocalizable p, RealPositionable q)
RealTransformapply in interface RealTransformp - source coordinates, numDimensions() must be >=
RealTransform.numSourceDimensions()q - set this to the target coordinates,
numDimensions() must
be >= RealTransform.numTargetDimensions()public void applyInverse(double[] p,
double[] q)
InvertibleRealTransformapplyInverse in interface InvertibleRealTransformp - set this to the source coordinates.q - target coordinates.public void applyInverse(RealPositionable p, RealLocalizable q)
InvertibleRealTransformRealLocalizable to obtain
a source RealPositionable.applyInverse in interface InvertibleRealTransformp - set this to the source coordinates.q - target coordinates.public InvertibleTransformByGradientDescent copy()
RealTransformRealTransform.
Deep copying is required to make sure that stateful RealTransforms can be duplicated for concurrent code.
copy in interface InvertibleRealTransformcopy in interface RealTransformpublic InvertibleTransformByGradientDescent inverse()
InvertibleRealTransforminverse in interface InvertibleRealTransformpublic int numSourceDimensions()
RealTransformnumSourceDimensions in interface RealTransformpublic int numTargetDimensions()
RealTransformnumTargetDimensions in interface RealTransformCopyright © 2015–2022 ImgLib2. All rights reserved.