Configuration type for MeshFitter.
More...
#include <MeshFitter.h>
|
enum | OriginType { untouched,
centered
} |
|
using | Origin = std::variant< OriginType, Coordinate3D > |
|
using | ScaleVector = std::array< float, 3 > |
|
using | RotationVector = std::array< float, 3 > |
|
static Configuration CortidQCT::MeshFitter::Configuration::fromFile |
( |
std::string const & |
filename | ) |
|
|
inlinestatic |
Load the configuration from a file.
- Parameters
-
filename | Path to the configuration file |
- Returns
- reference to the loaded configuration object
- Exceptions
-
std::invalid_argument | if 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
-
volume | voxel volume used for the computation of 'centered' or 'relatice' originsl |
- Returns
- (x, y, z) translation vector
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: