From 9d7e93d57183d5a1e1efd113067bdcc8d388bc50 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Thu, 11 Apr 2019 16:52:19 +0200 Subject: Fix crash in FBP_CUDA when called without projector --- src/CudaFilteredBackProjectionAlgorithm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CudaFilteredBackProjectionAlgorithm.cpp b/src/CudaFilteredBackProjectionAlgorithm.cpp index 69140fc..c1d3dc8 100644 --- a/src/CudaFilteredBackProjectionAlgorithm.cpp +++ b/src/CudaFilteredBackProjectionAlgorithm.cpp @@ -152,7 +152,7 @@ void CCudaFilteredBackProjectionAlgorithm::initCUDAAlgorithm() ASTRA_ERROR("CCudaFilteredBackProjectionAlgorithm: Failed to set short-scan mode"); } - const CVolumeGeometry2D& volGeom = *m_pProjector->getVolumeGeometry(); + const CVolumeGeometry2D& volGeom = *m_pReconstruction->getGeometry(); float fPixelArea = volGeom.getPixelArea(); ok &= pFBP->setReconstructionScale(1.0f/fPixelArea); if (!ok) { -- cgit v1.2.3