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

Method _check

src/BackProjectionAlgorithm.cpp:67–79  ·  view source on GitHub ↗

---------------------------------------------------------------------------------------- Check

Source from the content-addressed store, hash-verified

65//----------------------------------------------------------------------------------------
66// Check
67bool CBackProjectionAlgorithm::_check()
68{
69 // check base class
70 ASTRA_CONFIG_CHECK(CReconstructionAlgorithm2D::_check(), "BP", "Error in ReconstructionAlgorithm2D initialization");
71
72 ASTRA_CONFIG_CHECK(m_pSinogram->isFloat32Memory(), "BP", "Projection data object not a float32 host memory object");
73 ASTRA_CONFIG_CHECK(m_pReconstruction->isFloat32Memory(), "BP", "Reconstruction data object not a float32 host memory object");
74
75 ASTRA_CONFIG_CHECK(!m_bUseSinogramMask || m_pSinogramMask->isFloat32Memory(), "BP", "Projection mask object not a float32 host memory object");
76 ASTRA_CONFIG_CHECK(!m_bUseReconstructionMask || m_pReconstructionMask->isFloat32Memory(), "BP", "Reconstruction mask object not a float32 host memory object");
77
78 return true;
79}
80
81//---------------------------------------------------------------------------------------
82// Initialize - Config

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected