CortidQCT  1.2.2.52
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CortidQCT::MeshFitter::Configuration Struct Reference

Configuration type for MeshFitter. More...

#include <MeshFitter.h>

Collaboration diagram for CortidQCT::MeshFitter::Configuration:
Collaboration graph
[legend]

Public Types

enum  OriginType { untouched, centered }
 
using Origin = std::variant< OriginType, Coordinate3D >
 
using ScaleVector = std::array< float, 3 >
 
using RotationVector = std::array< float, 3 >
 

Public Member Functions

ConfigurationloadFromFile (std::string const &filename)
 Load the configuration from a file. More...
 
std::array< float, 3 > meshTranslation (VoxelVolume const &volume) const
 Returns a tranlation vector that translates the centroid of the reference mesh into the centroid as specified in the configuration. More...
 

Static Public Member Functions

static Configuration fromFile (std::string const &filename)
 Convenience initializer to load a configuration from file. More...
 

Public Attributes

MeasurementModel model
 The measurement model.
 
Mesh< float > referenceMesh
 The reference mesh.
 
double sigmaE = 5.4
 Scale parameter for ARAP energy term.
 
double sigmaS = 2.0
 Scale parameter for the latent variable s.
 
std::size_t maxIterations = 100
 Maximum number of iterations.
 
std::size_t minNonDecreasing = 10
 Minimum number of non decreasing iterations before starting decay.
 
float decay = 0.9f
 Decay factor.
 
bool ignoreExteriorSamples = false
 Ignore samples outisde the volumes?
 
Origin referenceMeshOrigin = OriginType::untouched
 Reference mesh origin. More...
 
ScaleVector referenceMeshScale = {{1.f, 1.f, 1.f}}
 Reference mesh scale factor.
 
RotationVector referenceMeshRotation = {{0.f, 0.f, 0.f}}
 Reference mesh rotation angled. More...
 

Detailed Description

Configuration type for MeshFitter.

Member Function Documentation

static Configuration CortidQCT::MeshFitter::Configuration::fromFile ( std::string const &  filename)
inlinestatic

Convenience initializer to load a configuration from file.

See also
loadFromFile
Returns
Configuration object
MeshFitter::Configuration & CortidQCT::MeshFitter::Configuration::loadFromFile ( std::string const &  filename)

Load the configuration from a file.

Parameters
filenamePath to the configuration file
Returns
reference to the loaded configuration object
Exceptions
std::invalid_argumentif the file could not be read
std::array< float, 3 > CortidQCT::MeshFitter::Configuration::meshTranslation ( VoxelVolume const &  volume) const

Returns a tranlation vector that translates the centroid of the reference mesh into the centroid as specified in the configuration.

Parameters
volumevoxel volume used for the computation of 'centered' or 'relatice' originsl
Returns
(x, y, z) translation vector

Member Data Documentation

Origin CortidQCT::MeshFitter::Configuration::referenceMeshOrigin = OriginType::untouched

Reference mesh origin.

There are N possible values:

  • OriginType::untouched - do not change the origin of the mesh
  • OriginType::centered - use the image center as the origin
  • absolute - override the origin using absolute coordinates
  • relative - override the origin using relative coordinates
RotationVector CortidQCT::MeshFitter::Configuration::referenceMeshRotation = {{0.f, 0.f, 0.f}}

Reference mesh rotation angled.

Rotation is performed in this order: z, y, x. Defaults to 0.


The documentation for this struct was generated from the following files: