--------------------------------------------------------------------------------------- Initialize - Config
| 82 | //--------------------------------------------------------------------------------------- |
| 83 | // Initialize - Config |
| 84 | bool CCudaReconstructionAlgorithm2D::initialize(const Config& _cfg) |
| 85 | { |
| 86 | assert(!m_bIsInitialized); |
| 87 | |
| 88 | ConfigReader<CAlgorithm> CR("CudaReconstructionAlgorithm2D", this, _cfg); |
| 89 | |
| 90 | if (!CReconstructionAlgorithm2D::initialize(_cfg)) |
| 91 | return false; |
| 92 | |
| 93 | initializeFromProjector(); |
| 94 | |
| 95 | bool ok = true; |
| 96 | |
| 97 | // Deprecated options |
| 98 | ok &= CR.getOptionUInt("PixelSuperSampling", m_params.iRaysPerPixelDim, m_params.iRaysPerPixelDim); |
| 99 | ok &= CR.getOptionUInt("DetectorSuperSampling", m_params.iRaysPerDet, m_params.iRaysPerDet); |
| 100 | |
| 101 | if (CR.hasOption("GPUIndex")) |
| 102 | ok &= CR.getOptionInt("GPUIndex", m_iGPUIndex, -1); |
| 103 | else |
| 104 | ok &= CR.getOptionInt("GPUindex", m_iGPUIndex, -1); |
| 105 | |
| 106 | if (!ok) |
| 107 | return false; |
| 108 | |
| 109 | if (!setupGeometry()) |
| 110 | return false; |
| 111 | |
| 112 | return _check(); |
| 113 | } |
| 114 | |
| 115 | //--------------------------------------------------------------------------------------- |
| 116 | // Initialize - C++ |
nothing calls this directly
no test coverage detected