ImFusion SDK 4.3
ParametricDeformationOptimizer Class Reference

#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...

+ Inheritance diagram for ParametricDeformationOptimizer:

Detailed Description

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.
 

Constructor & Destructor Documentation

◆ ParametricDeformationOptimizer()

ParametricDeformationOptimizer ( const SharedImage & referenceDisplacementField,
ParametricDeformation & targetDeformation )

Creates a new ParametricDeformationOptimizer instance for the given deformation object.

Parameters
referenceDisplacementFieldDisplacement field to use as reference. Must be a 3D float image with 3 channels.
targetDeformationDeformation whose parameters are to be optimized.

Member Function Documentation

◆ evaluate()

double evaluate ( int n,
const double * x,
double * dx = 0 )
overridevirtual

Evaluation callback method used by the optimizer.

Implements CostFunction.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close