20 #ifndef MIRTK_BalloonForce_H 21 #define MIRTK_BalloonForce_H 23 #include "mirtk/SurfaceForce.h" 56 mirtkPublicAggregateMacro(
BinaryImage, ForegroundMask);
59 mirtkPublicAttributeMacro(
bool, DeflateSurface);
62 mirtkPublicAttributeMacro(
double, LowerIntensity);
65 mirtkPublicAttributeMacro(
double, UpperIntensity);
68 mirtkPublicAttributeMacro(
double, LowerIntensitySigma);
71 mirtkPublicAttributeMacro(
double, UpperIntensitySigma);
74 mirtkPublicAttributeMacro(
double, ForegroundSigmaFactor);
77 mirtkPublicAttributeMacro(
double, BackgroundSigmaFactor);
80 mirtkPublicAttributeMacro(
double, Radius);
84 mirtkPublicAttributeMacro(
double, DampingFactor);
88 mirtkPublicAttributeMacro(
double, MagnitudeThreshold);
139 virtual void Update(
bool =
true);
153 #endif // MIRTK_BalloonForce_H virtual void Update(bool=true)
Update moving input points and internal state of force term.
void ComputeLocalIntensityAttributes(bool, bool)
Compute local intensity thresholds and/or background/foreground statistics.
void CopyAttributes(const BalloonForce &)
Copy attributes of this class from another instance.
virtual void Initialize()
Initialize external force once input and parameters have been set.
Array< Pair< string, string > > ParameterList
Ordered list of parameter name/value pairs.
BalloonForce & operator=(const BalloonForce &)
Assignment operator.
virtual void EvaluateGradient(double *, double, double)
Evaluate external force.
virtual ParameterList Parameter() const
Get parameter key/value as string map.
virtual ~BalloonForce()
Destructor.
virtual ParameterList Parameter() const
Get parameter name/value pairs.
virtual bool SetWithoutPrefix(const char *, const char *)
Set parameter value from string.
BalloonForce(const char *="", double=1.0)
Constructor.