21 #ifndef __stir_recon_buildblock_QuadraticPrior_H__ 22 #define __stir_recon_buildblock_QuadraticPrior_H__ 78 template <
typename elemT>
80 GeneralisedPrior<DiscretisedDensity<3, elemT>>,
81 PriorWithParabolicSurrogate<DiscretisedDensity<3, elemT>>>
101 bool is_convex()
const override;
141 shared_ptr<const DiscretisedDensity<3, elemT>> get_kappa_sptr()
const;
171 void set_defaults()
override;
172 void initialise_keymap()
override;
173 bool post_processing()
override;
176 shared_ptr<const DiscretisedDensity<3, elemT>> kappa_ptr;
187 elemT derivative_20(
const elemT x_j,
const elemT x_k)
const;
188 elemT derivative_11(
const elemT x_j,
const elemT x_k)
const;
Array< 3, float > weights
penalty weights
Definition: QuadraticPrior.h:164
std::string gradient_filename_prefix
filename prefix for outputing the gradient whenever compute_gradient() is called. ...
Definition: QuadraticPrior.h:157
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast (or corresponding b...
defines the stir::DiscretisedDensity class
defines the Array class for multi-dimensional (numeric) arrays
std::string kappa_filename
Filename for the image that will be read by post_processing()
Definition: QuadraticPrior.h:166
A base class for 'generalised' priors, i.e. priors for which at least a 'gradient' is defined...
Definition: GeneralisedPrior.h:41
this class implements priors with a parabolic surrogate curvature
Definition: PriorWithParabolicSurrogate.h:39
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
static const char *const registered_name
Name which will be used when parsing a GeneralisedPrior object.
Definition: QuadraticPrior.h:91
Declaration of class stir::PriorWithParabolicSurrogate.
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
Declaration of class stir::RegisteredParsingObject.
A class in the GeneralisedPrior hierarchy. This implements a quadratic Gibbs prior.
Definition: QuadraticPrior.h:79
bool only_2D
can be set during parsing to restrict the weights to the 2D case
Definition: QuadraticPrior.h:151
bool parabolic_surrogate_curvature_depends_on_argument() const override
A function that allows skipping some computations if the curvature is independent of the current_esti...
Definition: QuadraticPrior.h:99
This abstract class is the basis for all image representations.
Definition: FBP2DReconstruction.h:35