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

Method initialize

src/CudaEMAlgorithm.cpp:63–84  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

61//---------------------------------------------------------------------------------------
62// Initialize - Config
63bool CCudaEMAlgorithm::initialize(const Config& _cfg)
64{
65 assert(!m_bIsInitialized);
66
67 ConfigReader<CAlgorithm> CR("CudaEMAlgorithm", this, _cfg);
68
69 if (CR.hasOption("SinogramMaskId")) {
70 ASTRA_CONFIG_CHECK(false, "EM_CUDA", "Sinogram mask option is not supported.");
71 }
72 if (CR.hasOption("ReconstructionMaskId")) {
73 ASTRA_CONFIG_CHECK(false, "EM_CUDA", "Reconstruction mask option is not supported.");
74 }
75
76 if (!CCudaReconstructionAlgorithm2D::initialize(_cfg))
77 return false;
78
79 if (!allocateBuffers())
80 return false;
81
82 m_bIsInitialized = _check();
83 return m_bIsInitialized;
84}
85
86//---------------------------------------------------------------------------------------
87// Initialize - C++

Callers

nothing calls this directly

Calls 1

hasOptionMethod · 0.45

Tested by

no test coverage detected