summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-04-11 16:52:19 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-09-25 14:10:10 +0200
commit9d7e93d57183d5a1e1efd113067bdcc8d388bc50 (patch)
treedc5895a749c60fb713957ad07e7d22828a46bf18 /src
parent609e81d67217f4ff21c8a0aec82584da0fee1908 (diff)
downloadastra-9d7e93d57183d5a1e1efd113067bdcc8d388bc50.tar.gz
astra-9d7e93d57183d5a1e1efd113067bdcc8d388bc50.tar.bz2
astra-9d7e93d57183d5a1e1efd113067bdcc8d388bc50.tar.xz
astra-9d7e93d57183d5a1e1efd113067bdcc8d388bc50.zip
Fix crash in FBP_CUDA when called without projector
Diffstat (limited to 'src')
-rw-r--r--src/CudaFilteredBackProjectionAlgorithm.cpp2
1 files changed, 1 insertions, 1 deletions
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) {