public class InterpolatedRealTransform extends Object implements RealTransform
RealTransform that linearly interpolates between two
 RealTransforms.
 The lambda parameter is the weight that applies to transform A, i.e. the
 interpolated transform is (lambda * a) + (1 - lambda * b).| Constructor and Description | 
|---|
InterpolatedRealTransform(RealTransform a,
                         RealTransform b,
                         double lambda)  | 
| 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(float[] source,
     float[] target)
Apply the  
RealTransform to a source vector to obtain a target
 vector. | 
void | 
apply(RealLocalizable source,
     RealPositionable target)
 | 
InterpolatedRealTransform | 
copy()
Create a deep copy of this  
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 | 
setLambda(double lambda)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisIdentitypublic InterpolatedRealTransform(RealTransform a, RealTransform b, double lambda)
public int numSourceDimensions()
RealTransformnumSourceDimensions in interface RealTransformpublic int numTargetDimensions()
RealTransformnumTargetDimensions in interface RealTransformpublic void setLambda(double lambda)
public void apply(double[] source,
                  double[] target)
RealTransformRealTransform to a source vector to obtain a target
 vector.apply in interface RealTransformsource - source coordinates, length must be >=
            RealTransform.numSourceDimensions()target - set this to the target coordinates, length must be >=
            RealTransform.numTargetDimensions()public void apply(float[] source,
                  float[] target)
RealTransformRealTransform to a source vector to obtain a target
 vector.apply in interface RealTransformsource - 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)
RealTransformapply in interface RealTransformsource - source coordinates, numDimensions() must be >=
            RealTransform.numSourceDimensions()target - set this to the target coordinates,
            numDimensions() must
            be >= RealTransform.numTargetDimensions()public InterpolatedRealTransform copy()
RealTransformRealTransform.
 
 Deep copying is required to make sure that stateful RealTransforms can be duplicated for concurrent code.
 
copy in interface RealTransformCopyright © 2015–2022 ImgLib2. All rights reserved.