STIR 6.4.0
BinNormalisationFromML2D.h
Go to the documentation of this file.
1//
2//
3/*
4 Copyright (C) 2004- 2005, Hammersmith Imanet Ltd
5 This file is part of STIR.
6
7 SPDX-License-Identifier: Apache-2.0
8
9 See STIR/LICENSE.txt for details
10*/
19
20#ifndef __stir_recon_buildblock_BinNormalisationFromML2D_H__
21#define __stir_recon_buildblock_BinNormalisationFromML2D_H__
22
25#include "stir/ProjData.h"
26#include "stir/shared_ptr.h"
28#include <string>
29
30START_NAMESPACE_STIR
31
57class BinNormalisationFromML2D : public RegisteredParsingObject<BinNormalisationFromML2D, BinNormalisation>
58{
59public:
61 static const char* const registered_name;
62
64
70
72 virtual Succeeded set_up(const shared_ptr<const ProjDataInfo>&);
73
75
79 void apply(RelatedViewgrams<float>& viewgrams) const override;
80
82
86 void undo(RelatedViewgrams<float>& viewgrams) const override;
87
88private:
89 void set_defaults() override;
90 void initialise_keymap() override;
91 bool post_processing() override;
92
93 std::string normalisation_filename_prefix;
94 bool do_block;
95 bool do_geo;
96 bool do_eff;
97 int eff_iter_num;
98 int iter_num;
99 // use shared pointer to avoid calling default constructor
100 shared_ptr<ProjDataInMemory> norm_factors_ptr;
101};
102
103END_NAMESPACE_STIR
104
105#endif
Declaration of class stir::BinNormalisation.
Declaration of class stir::ProjDataInMemory.
Declaration of class stir::ProjData.
Declaration of class stir::RegisteredParsingObject.
void apply(RelatedViewgrams< float > &viewgrams) const override
Normalise some data.
Definition BinNormalisationFromML2D.cxx:179
void undo(RelatedViewgrams< float > &viewgrams) const override
Undo the normalisation of some data.
Definition BinNormalisationFromML2D.cxx:187
BinNormalisationFromML2D()
Default constructor.
Definition BinNormalisationFromML2D.cxx:65
virtual Succeeded set_up(const shared_ptr< const ProjDataInfo > &)
Checks if we can handle certain projection data.
Definition BinNormalisationFromML2D.cxx:71
static const char *const registered_name
Name which will be used when parsing a BinNormalisation object.
Definition BinNormalisationFromML2D.h:61
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files.
Definition RegisteredParsingObject.h:78
A class for storing viewgrams which are related by symmetry.
Definition RelatedViewgrams.h:41
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition Succeeded.h:44
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...