--------------------------------------------------------------------------------------- Initialize - Config
| 61 | //--------------------------------------------------------------------------------------- |
| 62 | // Initialize - Config |
| 63 | bool 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++ |