19#ifndef STIR_SQRTHESSIANROWSUM_H
20#define STIR_SQRTHESSIANROWSUM_H
57template <
typename TargetT>
84 shared_ptr<TargetT> get_input_image_sptr();
85 void set_input_image_sptr(shared_ptr<TargetT>
const& image);
95 bool get_use_approximate_hessian()
const;
96 void set_use_approximate_hessian(
bool use_approximate);
101 bool get_compute_with_penalty()
const;
102 void set_compute_with_penalty(
bool with_penalty);
114 bool _already_setup =
false;
118 shared_ptr<GeneralisedObjectiveFunction<TargetT>> objective_function_sptr;
121 std::string output_filename;
124 std::string input_image_filename;
127 shared_ptr<TargetT> input_image_sptr;
130 shared_ptr<TargetT> output_target_sptr;
136 bool use_approximate_hessian;
140 bool compute_with_penalty;
143 shared_ptr<OutputFileFormat<TargetT>> output_file_format_sptr;
149 bool post_processing()
override;
150 void initialise_keymap()
override;
Declaration of class stir::GeneralisedObjectiveFunction.
Declaration of class stir::GeneralisedPrior.
Declaration of class stir::PoissonLogLikelihoodWithLinearKineticModelAndDynamicProjectionData.
A base class for 'generalised' objective functions, i.e. objective functions for which at least a 'gr...
Definition GeneralisedObjectiveFunction.h:84
SqrtHessianRowSum()
Default constructor.
Definition SqrtHessianRowSum.cxx:33
shared_ptr< TargetT > get_output_target_sptr()
get method for returning the sqrt row sum image
Definition SqrtHessianRowSum.cxx:124
void compute_approximate_Hessian_row_sum()
Computes the approximate Hessian of the objective function. Cannot use penalty's approximate Hessian,...
Definition SqrtHessianRowSum.cxx:225
void set_defaults() override
sets default values
Definition SqrtHessianRowSum.cxx:47
void compute_Hessian_row_sum()
Computes the objective function Hessian row sum at the current image estimate. Can compute the penalt...
Definition SqrtHessianRowSum.cxx:207
void process_data()
The main function to compute and save the sqrt of the Hessian row sum volume.
Definition SqrtHessianRowSum.cxx:178
Declaration of stir::info()
Definition of stir::is_null_ptr functions.
Declaration of stir::read_from_file functions (providing easy access to class stir::InputFileFormatRe...