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

Method initializeFromProjector

src/CudaForwardProjectionAlgorithm.cpp:63–78  ·  view source on GitHub ↗

---------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

61
62//---------------------------------------------------------------------------------------
63void CCudaForwardProjectionAlgorithm::initializeFromProjector()
64{
65 m_iDetectorSuperSampling = 1;
66 m_iGPUIndex = -1;
67
68 // Projector
69 CCudaProjector2D* pCudaProjector = dynamic_cast<CCudaProjector2D*>(m_pProjector);
70 if (!pCudaProjector) {
71 if (m_pProjector) {
72 ASTRA_WARN("non-CUDA Projector2D passed to FP_CUDA");
73 }
74 } else {
75 m_iDetectorSuperSampling = pCudaProjector->getDetectorSuperSampling();
76 m_iGPUIndex = pCudaProjector->getGPUIndex();
77 }
78}
79
80//---------------------------------------------------------------------------------------
81// Initialize - Config

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected