#include <MeshFitter.h>
Constructs a MeshFitter object with given configuration.
- Parameters
-
CortidQCT::MeshFitter::MeshFitter |
( |
std::string const & |
configFilename | ) |
|
|
inline |
Convenience constructor that reads the configuration from the given configuration file.
- Parameters
-
configFilename | path to the configuration file |
Tests if the algorithm has converged.
- Parameters
-
[in,out] | state | Optimization state |
- Precondition
state
has been initialized by calling init()
.
- Exceptions
-
std::invalid_argument | iff state was not initialized properly |
- See also
- fitOneIteration
Fits the reference mesh to the given voxel volume.
- Parameters
-
- Returns
- A
Result
struct containing the deformed mesh
Initializes the fitting algorithm.
Initializes the state and performed the first volume sampling step by calling volumeSamplingStep()
.
- Parameters
-
- Returns
- State object that must be passed to subsequent calls
- See also
- fit()
Computes the log likelihood of the current deformed mesh given the input volume.
- Parameters
-
[in,out] | state | Optimization state |
- Precondition
state
has been initialized by calling init()
.
- Exceptions
-
std::invalid_argument | iff state was not initialized properly |
- See also
- fitOneIteration
void CortidQCT::MeshFitter::optimalDeformationStep |
( |
MeshFitter::State & |
state | ) |
const |
Find the deformation that minimizes the point-to-plane distance of the current deformed mesh to the displaced vertices with respect to the ARAP energy.
- Parameters
-
[in,out] | state | Optimization state |
- Precondition
state
has been initialized by calling init()
.
- Exceptions
-
std::invalid_argument | iff state was not initialized properly |
- See also
- fitOneIteration
void CortidQCT::MeshFitter::optimalDisplacementStep |
( |
MeshFitter::State & |
state | ) |
const |
Finds the optimal displacements of the model and computes the per-vertex weights.
- Parameters
-
[in,out] | state | Optimization state |
- Precondition
state
has been initialized by calling init()
.
- Exceptions
-
std::invalid_argument | iff state was not initialized properly |
- See also
- fitOneIteration
Samples the input volume at lines perpendicular to the vertices of the current deformed mesh.
- Parameters
-
[in,out] | state | Optimization state |
- Precondition
state
has been initialized by calling init()
.
- Exceptions
-
std::invalid_argument | iff state was not initialized properly |
- See also
- fitOneIteration
The documentation for this class was generated from the following files: