20 #ifndef MIRTK_MetricDistortion_H 21 #define MIRTK_MetricDistortion_H 23 #include "mirtk/SurfaceConstraint.h" 25 #include "mirtk/Array.h" 118 virtual void Update(
bool);
137 #endif // MIRTK_MetricDistortion_H Minimize metric distortion.
mirtkAttributeMacro(double, InitialArea)
Area of initial surface mesh.
MetricDistortion & operator=(const MetricDistortion &)
Assignment operator.
void CopyAttributes(const MetricDistortion &)
Copy attributes of this class from another instance.
Array< NodeDistances > DistancesArray
Array of computed distances to neighboring nodes.
virtual double Evaluate()
Compute penalty for current transformation estimate.
virtual ~MetricDistortion()
Destructor.
Array< Pair< string, string > > ParameterList
Ordered list of parameter name/value pairs.
virtual ParameterList Parameter() const
Get parameter name/value pairs.
mirtkPublicAttributeMacro(int, Radius)
Radius of node neighborhood (i.e., maximum edge-connectivity)
virtual bool SetWithoutPrefix(const char *, const char *)
Set parameter value from string.
virtual void EvaluateGradient(double *, double, double)
Compute internal force w.r.t. transformation parameters.
virtual void Initialize()
Initialize internal force term once input and parameters have been set.
MetricDistortion(const char *="", double=1.0)
Constructor.
virtual void Update(bool)
Update internal force data structures.
virtual ParameterList Parameter() const
Get parameter key/value as string map.
virtual void Reinitialize()
Reinitialize internal force term after change of input topology.