![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/ParametricDeformationOptimizer.h>
Runs a non-linear optimization on a ParametricDeformation in order to match its deformation to a given reference displacement field. More...
Runs a non-linear optimization on a ParametricDeformation in order to match its deformation to a given reference displacement field.
The optimization is performed by evaluating the SSD between the given reference displacement field and the displacement field of the target deformation object.
Public Member Functions | |
ParametricDeformationOptimizer (const SharedImage &referenceDisplacementField, ParametricDeformation &targetDeformation) | |
Creates a new ParametricDeformationOptimizer instance for the given deformation object. | |
void | compute () |
Runs the optimization on the input data given during construction. | |
void | setProgress (Progress *p) |
Set an optional Progress object. | |
double | evaluate (int n, const double *x, double *dx=0) override |
Evaluation callback method used by the optimizer. | |
ParametricDeformationOptimizer | ( | const SharedImage & | referenceDisplacementField, |
ParametricDeformation & | targetDeformation ) |
Creates a new ParametricDeformationOptimizer instance for the given deformation object.
referenceDisplacementField | Displacement field to use as reference. Must be a 3D float image with 3 channels. |
targetDeformation | Deformation whose parameters are to be optimized. |
|
overridevirtual |
Evaluation callback method used by the optimizer.
Implements CostFunction.