20 #ifndef MIRTK_SmoothnessConstraint_H 21 #define MIRTK_SmoothnessConstraint_H 23 #include "mirtk/TransformationConstraint.h" 43 mirtkPublicAttributeMacro(
bool, WithRespectToWorld);
46 mirtkPublicAttributeMacro(
bool, UseLatticeSpacing);
52 mirtkPublicAttributeMacro(
double, AnnealingRate);
55 double _AnnealingWeight;
101 virtual void WriteGradient(
const char *,
const char *)
const;
108 #endif // MIRTK_SmoothnessConstraint_H
virtual ParameterList Parameter() const
Get parameter key/value as string map.
virtual double Evaluate()
Compute penalty for current transformation estimate.
Array< Pair< string, string > > ParameterList
Ordered list of parameter name/value pairs.
virtual void EvaluateGradient(double *, double, double)
Compute gradient of penalty term w.r.t transformation parameters.
virtual bool Upgrade()
Update energy term after convergence.
SmoothnessConstraint(const char *="", double=1.0)
Constructor.
Thin-plate spline bending energy.
virtual void Initialize()
Initialize energy term once input and parameters have been set.
virtual void WriteGradient(const char *, const char *) const
Write gradient of penalty term.
virtual bool SetWithoutPrefix(const char *, const char *)
Set parameter value from string.