public class ThinplateSplineTransform extends AbstractDifferentiableRealTransform implements RealTransform
Constructor and Description |
---|
ThinplateSplineTransform(double[][] p,
double[][] q) |
ThinplateSplineTransform(ThinPlateR2LogRSplineKernelTransform tps) |
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)
|
ThinplateSplineTransform |
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
public ThinplateSplineTransform(ThinPlateR2LogRSplineKernelTransform tps)
public ThinplateSplineTransform(double[][] p, double[][] q)
public void apply(double[] source, double[] target)
RealTransform
RealTransform
to a source vector to obtain a target
vector.apply
in interface RealTransform
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
apply
in interface RealTransform
source
- source coordinates, numDimensions()
must be >=
RealTransform.numSourceDimensions()
target
- set this to the target coordinates,
numDimensions()
must
be >=
RealTransform.numTargetDimensions()
public ThinplateSplineTransform copy()
RealTransform
RealTransform
.
Deep copying is required to make sure that stateful RealTransforms
can be duplicated for concurrent code.
copy
in interface DifferentiableRealTransform
copy
in interface RealTransform
public int numSourceDimensions()
RealTransform
numSourceDimensions
in interface RealTransform
public int numTargetDimensions()
RealTransform
numTargetDimensions
in interface RealTransform
public AffineTransform jacobian(double[] x)
AbstractDifferentiableRealTransform
jacobian
in interface DifferentiableRealTransform
jacobian
in class AbstractDifferentiableRealTransform
x
- the pointCopyright © 2015–2022 ImgLib2. All rights reserved.