opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
thin_plate_spline_common_inputs.h
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <utility>
5
6namespace opyn
7{
8 // Struct of runtime inputs that are common for all uses of the TPS
9 // scaling algorithm.
11
13 std::filesystem::path sourceLandmarksPath_,
14 std::filesystem::path destinationLandmarksPath_,
15 double sourceLandmarksPrescale_,
16 double destinationLandmarksPrescale_,
17 double blendingFactor_,
18 double warpingPenalty_) :
19
20 sourceLandmarksPath{std::move(sourceLandmarksPath_)},
21 destinationLandmarksPath{std::move(destinationLandmarksPath_)},
22 sourceLandmarksPrescale{sourceLandmarksPrescale_},
23 destinationLandmarksPrescale{destinationLandmarksPrescale_},
24 blendingFactor{blendingFactor_},
25 warpingPenalty{warpingPenalty_}
26 {}
27
28 std::filesystem::path sourceLandmarksPath;
29 std::filesystem::path destinationLandmarksPath;
33 bool applyAffineScale = true;
35 bool applyNonAffineWarp = true;
36 double blendingFactor = 1.0;
37 double warpingPenalty = 0.0;
38 };
39}
Definition component_registry.h:14
Definition thin_plate_spline_common_inputs.h:10
bool applyNonAffineWarp
Definition thin_plate_spline_common_inputs.h:35
double destinationLandmarksPrescale
Definition thin_plate_spline_common_inputs.h:31
ThinPlateSplineCommonInputs(std::filesystem::path sourceLandmarksPath_, std::filesystem::path destinationLandmarksPath_, double sourceLandmarksPrescale_, double destinationLandmarksPrescale_, double blendingFactor_, double warpingPenalty_)
Definition thin_plate_spline_common_inputs.h:12
bool applyAffineTranslation
Definition thin_plate_spline_common_inputs.h:32
bool applyAffineScale
Definition thin_plate_spline_common_inputs.h:33
double warpingPenalty
Definition thin_plate_spline_common_inputs.h:37
double sourceLandmarksPrescale
Definition thin_plate_spline_common_inputs.h:30
std::filesystem::path sourceLandmarksPath
Definition thin_plate_spline_common_inputs.h:28
double blendingFactor
Definition thin_plate_spline_common_inputs.h:36
std::filesystem::path destinationLandmarksPath
Definition thin_plate_spline_common_inputs.h:29
bool applyAffineRotation
Definition thin_plate_spline_common_inputs.h:34