STIR 6.4.0
ProjectorByBinPairUsingParallelproj.h
Go to the documentation of this file.
1//
2//
3/*
4 Copyright (C) 2019, 2021 University College London
5 This file is part of STIR.
6
7 SPDX-License-Identifier: Apache-2.0
8
9 See STIR/LICENSE.txt for details
10*/
21#ifndef __stir_recon_buildblock_ProjectorByBinPairUsingParallelproj_h_
22#define __stir_recon_buildblock_ProjectorByBinPairUsingParallelproj_h_
23
26
27START_NAMESPACE_STIR
28
29class Succeeded;
30namespace detail
31{
32class ParallelprojHelper;
33}
39 : public RegisteredParsingObject<ProjectorByBinPairUsingParallelproj, ProjectorByBinPair, ProjectorByBinPair>
40{
41private:
43
44public:
46 static const char* const registered_name;
47
50
51 Succeeded set_up(const shared_ptr<const ProjDataInfo>&, const shared_ptr<const DiscretisedDensity<3, float>>&) override;
52
54 void set_verbosity(const bool verbosity);
55
56 bool get_restrict_to_cylindrical_FOV() const;
57 void set_restrict_to_cylindrical_FOV(bool val);
59 void set_num_gpu_chunks(const int num_gpu_chunks);
60
61private:
62 shared_ptr<detail::ParallelprojHelper> _helper;
63
64 void set_defaults() override;
65 void initialise_keymap() override;
66 bool post_processing() override;
67 bool _verbosity;
68 bool _restrict_to_cylindrical_FOV;
69 int _num_gpu_chunks;
70 bool _already_set_up;
71};
72
73END_NAMESPACE_STIR
74
75#endif // __stir_recon_buildblock_ProjectorByBinPairUsingParallelproj_h_
Declares class stir::ProjectorByBinPair.
Declaration of class stir::RegisteredParsingObject.
This abstract class is the basis for all image representations.
Definition DiscretisedDensity.h:99
ProjectorByBinPairUsingParallelproj()
Default constructor.
Definition ProjectorByBinPairUsingParallelproj.cxx:62
void set_verbosity(const bool verbosity)
Set verbosity.
Definition ProjectorByBinPairUsingParallelproj.cxx:116
static const char *const registered_name
Name which will be used when parsing a ProjectorByBinPair object.
Definition ProjectorByBinPairUsingParallelproj.h:46
Succeeded set_up(const shared_ptr< const ProjDataInfo > &, const shared_ptr< const DiscretisedDensity< 3, float > > &) override
Stores all necessary geometric info.
Definition ProjectorByBinPairUsingParallelproj.cxx:89
void set_num_gpu_chunks(const int num_gpu_chunks)
Set number of GPU chunks used by the forward and back projectors.
Definition ProjectorByBinPairUsingParallelproj.cxx:132
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files.
Definition RegisteredParsingObject.h:78
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition Succeeded.h:44