23 #ifndef __stir_recon_buildblock_RelativeDifferencePrior_H__ 24 #define __stir_recon_buildblock_RelativeDifferencePrior_H__ 96 template <
typename elemT>
98 GeneralisedPrior<DiscretisedDensity<3, elemT>>,
99 GeneralisedPrior<DiscretisedDensity<3, elemT>>>
104 GeneralisedPrior<DiscretisedDensity<3, elemT>>>
137 float get_gamma()
const;
139 void set_gamma(
float e);
142 float get_epsilon()
const;
144 void set_epsilon(
float e);
157 shared_ptr<DiscretisedDensity<3, elemT>> get_kappa_sptr()
const;
165 bool is_convex()
const override;
195 void set_defaults()
override;
196 void initialise_keymap()
override;
197 bool post_processing()
override;
200 shared_ptr<DiscretisedDensity<3, elemT>> kappa_ptr;
221 double value(
const elemT x_j,
const elemT x_k)
const;
222 elemT derivative_10(
const elemT x,
const elemT y)
const;
223 elemT derivative_20(
const elemT x_j,
const elemT x_k)
const;
224 elemT derivative_11(
const elemT x_j,
const elemT x_k)
const;
float epsilon
Create variable epsilon for Relative Difference Penalty.
Definition: RelativeDifferencePrior.h:172
static const char *const registered_name
Name which will be used when parsing a GeneralisedPrior object.
Definition: RelativeDifferencePrior.h:109
std::string gradient_filename_prefix
filename prefix for outputing the gradient whenever compute_gradient() is called. ...
Definition: RelativeDifferencePrior.h:181
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
bool only_2D
can be set during parsing to restrict the weights to the 2D case
Definition: RelativeDifferencePrior.h:175
A base class for 'generalised' priors, i.e. priors for which at least a 'gradient' is defined...
Definition: GeneralisedPrior.h:41
std::string kappa_filename
Filename for the image that will be read by post_processing()
Definition: RelativeDifferencePrior.h:190
A class in the GeneralisedPrior hierarchy. This implements a Relative Difference prior.
Definition: RelativeDifferencePrior.h:97
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
Declaration of class stir::GeneralisedPrior.
float gamma
Create variable gamma for Relative Difference Penalty.
Definition: RelativeDifferencePrior.h:169
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.
Array< 3, float > weights
penalty weights
Definition: RelativeDifferencePrior.h:188
This abstract class is the basis for all image representations.
Definition: FBP2DReconstruction.h:35