MCPcopy Create free account
hub / github.com/astra-toolbox/astra-toolbox / initialize

Method initialize

src/SirtAlgorithm.cpp:99–123  ·  view source on GitHub ↗

--------------------------------------------------------------------------------------- Initialize - Config

Source from the content-addressed store, hash-verified

97//---------------------------------------------------------------------------------------
98// Initialize - Config
99bool CSirtAlgorithm::initialize(const Config& _cfg)
100{
101 assert(!m_bIsInitialized);
102
103 ConfigReader<CAlgorithm> CR("SirtAlgorithm", this, _cfg);
104
105 // initialization of parent class
106 if (!CReconstructionAlgorithm2D::initialize(_cfg)) {
107 return false;
108 }
109
110 bool ok = true;
111
112 ok &= CR.getOptionNumerical("Relaxation", m_fLambda, 1.0f);
113
114 if (!ok)
115 return false;
116
117 // init data objects and data projectors
118 _init();
119
120 // success
121 m_bIsInitialized = _check();
122 return m_bIsInitialized;
123}
124
125//---------------------------------------------------------------------------------------
126// Initialize - C++

Callers

nothing calls this directly

Calls 1

getOptionNumericalMethod · 0.45

Tested by

no test coverage detected