STIR 6.4.0
ScatterEstimation.inl
2
3START_NAMESPACE_STIR
4
5void
6ScatterEstimation::set_input_proj_data_sptr(const shared_ptr<ProjData> arg)
7{
8 this->_already_setup = false;
9 this->input_projdata_sptr = arg;
10}
11
12void
18
19void
21{
22 this->_already_setup = false;
23 this->atten_image_sptr = arg;
24}
25
26void
27ScatterEstimation::set_background_proj_data_sptr(const shared_ptr<ProjData> arg)
28{
29 this->_already_setup = false;
30 this->back_projdata_sptr = arg;
31}
32
33void
34ScatterEstimation::set_initial_activity_image_sptr(const shared_ptr<const DiscretisedDensity<3, float>> arg)
35{
36 this->_already_setup = false;
37 this->current_activity_image_sptr.reset(arg->clone());
38}
39
40void
41ScatterEstimation::set_mask_image_sptr(const shared_ptr<const DiscretisedDensity<3, float>> arg)
42{
43 this->_already_setup = false;
44 this->mask_image_sptr = arg;
45 this->set_recompute_mask_image(false);
46}
47
48void
49ScatterEstimation::set_mask_proj_data_sptr(const shared_ptr<ProjData> arg)
50{
51 this->_already_setup = false;
52 this->mask_projdata_sptr = arg;
53 this->set_recompute_mask_projdata(false);
54}
55
56void
57ScatterEstimation::set_scatter_simulation_method_sptr(const shared_ptr<ScatterSimulation> arg)
58{
59 this->_already_setup = false;
60 this->scatter_simulation_sptr = arg;
61}
62
63void
64ScatterEstimation::set_num_iterations(int arg)
65{
66 this->num_scatter_iterations = arg;
67}
68
69unsigned int
70ScatterEstimation::get_half_filter_width() const
71{
72 return this->half_filter_width;
73}
74
75void
76ScatterEstimation::set_half_filter_width(unsigned int arg)
77{
78 this->half_filter_width = arg;
79}
80
81void
82ScatterEstimation::set_downsample_scanner(bool downsample_scanner,
83 int downsampled_number_of_rings,
84 int downsampled_detectors_per_ring)
85{
86 this->downsample_scanner_bool = downsample_scanner;
87 this->downsampled_number_of_rings = downsampled_number_of_rings;
88 this->downsampled_detectors_per_ring = downsampled_detectors_per_ring;
89}
90
91END_NAMESPACE_STIR
Definition of class stir::ScatterEstimation.
This abstract class is the basis for all image representations.
Definition DiscretisedDensity.h:99
base class for all ReconstructionsAs there is not a lot of commonality between different reconstructi...
Definition Reconstruction.h:70
shared_ptr< const DiscretisedDensity< 3, float > > atten_image_sptr
Image with attenuation values.
Definition ScatterEstimation.h:247
void set_input_proj_data_sptr(const shared_ptr< ProjData >)
Set the input projdata.
Definition ScatterEstimation.inl:6
shared_ptr< ProjData > mask_projdata_sptr
Mask proj_data.
Definition ScatterEstimation.h:251
bool _already_setup
variable to check if we have called set_up()
Definition ScatterEstimation.h:310
void set_mask_proj_data_sptr(const shared_ptr< ProjData > arg)
set mask for tail-fitting
Definition ScatterEstimation.inl:49
shared_ptr< Reconstruction< DiscretisedDensity< 3, float > > > reconstruction_template_sptr
This is the reconstruction object which is going to be used for the scatter estimation and the calcul...
Definition ScatterEstimation.h:243
void set_attenuation_image_sptr(const shared_ptr< const DiscretisedDensity< 3, float > >)
Set the full resolution attenuation image.
Definition ScatterEstimation.inl:20
shared_ptr< ProjData > input_projdata_sptr
The full 3D projdata are used for the calculation of the 2D and later for the upsampling back to 3D.
Definition ScatterEstimation.h:254
void set_reconstruction_method_sptr(const shared_ptr< Reconstruction< DiscretisedDensity< 3, float > > >)
Set the reconstruction method for the scatter estimation.
Definition ScatterEstimation.inl:13