diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-11-22 17:02:25 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-11-22 17:07:30 +0100 |
commit | 85b619e6c5c04faa6a365c5be4b9bc8c7db445fa (patch) | |
tree | dfb33f5621b3be27a6ffc5827fa208f87a9ba234 /src/CompositeGeometryManager.cpp | |
parent | 845b398d9e2e078d7cb2a1da84fadceca66306a2 (diff) | |
download | astra-85b619e6c5c04faa6a365c5be4b9bc8c7db445fa.tar.gz astra-85b619e6c5c04faa6a365c5be4b9bc8c7db445fa.tar.bz2 astra-85b619e6c5c04faa6a365c5be4b9bc8c7db445fa.tar.xz astra-85b619e6c5c04faa6a365c5be4b9bc8c7db445fa.zip |
Allow cone_vec for FDK
NB: This will let you do mathematically nonsensical things, since FDK
does not support non-circular cone geometries. However, this does let you
use translated detectors, for example.
Diffstat (limited to 'src/CompositeGeometryManager.cpp')
-rw-r--r-- | src/CompositeGeometryManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/CompositeGeometryManager.cpp b/src/CompositeGeometryManager.cpp index 470476e..8af430c 100644 --- a/src/CompositeGeometryManager.cpp +++ b/src/CompositeGeometryManager.cpp @@ -1202,8 +1202,9 @@ bool CCompositeGeometryManager::doFDK(CProjector3D *pProjector, CFloat32VolumeDa CFloat32ProjectionData3D *pProjData, bool bShortScan, const float *pfFilter, SJob::EMode eMode) { - if (!dynamic_cast<CConeProjectionGeometry3D*>(pProjData->getGeometry())) { - ASTRA_ERROR("CCompositeGeometryManager::doFDK: cone geometry required"); + if (!dynamic_cast<CConeProjectionGeometry3D*>(pProjData->getGeometry()) && + !dynamic_cast<CConeVecProjectionGeometry3D*>(pProjData->getGeometry())) { + ASTRA_ERROR("CCompositeGeometryManager::doFDK: cone/cone_vec geometry required"); return false; } |