From 138aab6a3760c504d032717dfd2b64fd321418e8 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sat, 23 Mar 2019 15:03:01 +0100 Subject: Flip wrong detector orientation for fan2d_strip There are still some remaining fan2d_strip unit test failures, with suspicious slightly too large numerical deviations around 45 degree projections. --- include/astra/FanFlatBeamStripKernelProjector2D.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/astra/FanFlatBeamStripKernelProjector2D.inl b/include/astra/FanFlatBeamStripKernelProjector2D.inl index bbd45cf..732c302 100644 --- a/include/astra/FanFlatBeamStripKernelProjector2D.inl +++ b/include/astra/FanFlatBeamStripKernelProjector2D.inl @@ -87,11 +87,11 @@ void CFanFlatBeamStripKernelProjector2D::projectBlock_internal(int _iProjFrom, i // get values theta = m_pProjectionGeometry->getProjectionAngle(iAngle); - bool switch_t = false; + bool switch_t = true; if (theta >= 7*PIdiv4) theta -= 2*PI; if (theta >= 3*PIdiv4) { theta -= PI; - switch_t = true; + switch_t = false; } // Precalculate sin, cos, 1/cos -- cgit v1.2.3