23 #ifndef __stir_recon_buildblock_GibbsPenalty_H__ 24 #define __stir_recon_buildblock_GibbsPenalty_H__ 97 template <
typename elemT,
typename potentialT>
108 GibbsPenalty(
const bool only_2D,
float penalization_factor);
146 shared_ptr<const DiscretisedDensity<3, elemT>> get_kappa_sptr()
const;
156 virtual std::string get_parsing_name()
const;
159 bool is_convex()
const override;
194 void set_defaults()
override;
195 void initialise_keymap()
override;
196 bool post_processing()
override;
199 shared_ptr<const DiscretisedDensity<3, elemT>>
kappa_ptr;
std::string kappa_filename
Filename for the image that will be read by post_processing()
Definition: GibbsPenalty.h:183
Array< 3, float > weights
The weights for the neighbourhood.
Definition: GibbsPenalty.h:170
shared_ptr< const DiscretisedDensity< 3, elemT > > kappa_ptr
The kappa image (spatially-varying penalty factors).
Definition: GibbsPenalty.h:199
Implementation of the stir::GibbsPenalty class.
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...
std::string gradient_filename_prefix
filename prefix for outputing the gradient whenever compute_gradient() is called. ...
Definition: GibbsPenalty.h:180
defines the stir::DiscretisedDensity class
defines the stir::Array class for multi-dimensional (numeric) arrays
A base class for 'generalised' priors, i.e. priors for which at least a 'gradient' is defined...
Definition: GeneralisedPrior.h:42
CartesianCoordinate3D< int > image_max_indices
Maximum image indices.
Definition: GibbsPenalty.h:165
bool only_2D
can be set during parsing to restrict the weights to the 2D case
Definition: GibbsPenalty.h:173
A base class for Gibbs type penalties in the GeneralisedPrior hierarchy.
Definition: GibbsPenalty.h:98
CartesianCoordinate3D< int > image_dim
Image dimensions.
Definition: GibbsPenalty.h:164
CartesianCoordinate3D< int > image_min_indices
Minimum image indices.
Definition: GibbsPenalty.h:166
Declaration of class stir::GeneralisedPrior.
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
defines the stir::CartesianCoordinate3D<coordT> class
potentialT potential
Gibbs Potential Function.
Definition: GibbsPenalty.h:186
This abstract class is the basis for all image representations.
Definition: DDSR2DReconstruction.h:44