20 #ifndef MIRTK_SparsityConstraint_H 21 #define MIRTK_SparsityConstraint_H 23 #include "mirtk/TransformationConstraint.h" 52 void Gradient(
double *gradient,
double step,
bool *sgn_chg = NULL);
59 virtual void GradientStep(
const double *gradient,
double &min,
double &max)
const;
77 #endif // MIRTK_SparsityConstraint_H Default sparsity constraint.
virtual double Evaluate()
Compute penalty for current transformation estimate.
virtual void GradientStep(const double *gradient, double &min, double &max) const
SparsityConstraint(const char *="")
Constructor.
void Gradient(double *gradient, double step, bool *sgn_chg=NULL)
virtual void EvaluateGradient(double *, double, double)
Compute gradient of penalty term w.r.t transformation parameters.