20 #ifndef MIRTK_ConstraintMeasure_H 21 #define MIRTK_ConstraintMeasure_H 23 #include "mirtk/EnergyMeasure.h" 57 if (em <= CM_Begin || em >= CM_End)
return ToString(
"Unknown", w, c, left);
66 if (
FromString(str, em) && CM_Begin < em && em < CM_End) {
78 #endif // MIRTK_ConstraintMeasure_H
Topology preservation constraint.
Sparsity constraint based on l2-norm.
Thin-plate spline bending energy.
Default sparsity constraint.
Sparsity constraint based on l1-norm.
Default sparsity constraint.
Sparsity constraint based on l0-norm.
Penalise negative Jacobian determinant.
Thin-plate spline bending energy.
Sparsity constraint based on l0-norm.
Sparsity constraint based on l2-norm.
Squared logarithm of the Jacobian determinant.
string ToString(const EnergyMeasure &value, int w, char c, bool left)
Convert energy measure enumeration value to string.
bool FromString(const char *str, EnergyMeasure &value)
Convert energy measure string to enumeration value.
EnergyMeasure
Enumeration of all available energy terms.
Penalize negative Jacobian determinant.
Unknown/invalid energy term.
Sparsity constraint based on l1-norm.
Volume preservation constraint.
Volume preservation constraint.
Unknown/invalid regularizer.
Squared logarithm of the Jacobian determinant.
Topology preservation constraint.