summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/FilteredBackProjectionAlgorithm.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FilteredBackProjectionAlgorithm.cpp b/src/FilteredBackProjectionAlgorithm.cpp
index 95bef3c..6b4093d 100644
--- a/src/FilteredBackProjectionAlgorithm.cpp
+++ b/src/FilteredBackProjectionAlgorithm.cpp
@@ -167,6 +167,11 @@ bool CFilteredBackProjectionAlgorithm::initialize(const Config& _cfg)
m_filterConfig = getFilterConfigForAlgorithm(_cfg, this);
+ const CParallelProjectionGeometry2D* parprojgeom = dynamic_cast<CParallelProjectionGeometry2D*>(m_pSinogram->getGeometry());
+ if (!parprojgeom) {
+ ASTRA_ERROR("FBP currently only supports parallel projection geometries.");
+ return false;
+ }
// TODO: check that the angles are linearly spaced between 0 and pi