summaryrefslogtreecommitdiffstats
path: root/src/ParallelBeamStripKernelProjector2D.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-10-11 11:32:28 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-10-11 12:19:34 +0200
commitf87ca86a994cdc3205a294e9bbbeddde312ea53b (patch)
tree218fcecfe2b37906ce1646e5001b6c56fc0a8502 /src/ParallelBeamStripKernelProjector2D.cpp
parent90ef1f69d79a0c40414c5932dfa9bd69f363ae80 (diff)
downloadastra-f87ca86a994cdc3205a294e9bbbeddde312ea53b.tar.gz
astra-f87ca86a994cdc3205a294e9bbbeddde312ea53b.tar.bz2
astra-f87ca86a994cdc3205a294e9bbbeddde312ea53b.tar.xz
astra-f87ca86a994cdc3205a294e9bbbeddde312ea53b.zip
Make geometry config checks slightly less numerically strict
Diffstat (limited to 'src/ParallelBeamStripKernelProjector2D.cpp')
-rw-r--r--src/ParallelBeamStripKernelProjector2D.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ParallelBeamStripKernelProjector2D.cpp b/src/ParallelBeamStripKernelProjector2D.cpp
index 6ed6ab0..5a0767b 100644
--- a/src/ParallelBeamStripKernelProjector2D.cpp
+++ b/src/ParallelBeamStripKernelProjector2D.cpp
@@ -89,7 +89,7 @@ bool CParallelBeamStripKernelProjector2D::_check()
ASTRA_CONFIG_CHECK(dynamic_cast<CParallelProjectionGeometry2D*>(m_pProjectionGeometry) || dynamic_cast<CParallelVecProjectionGeometry2D*>(m_pProjectionGeometry), "ParallelBeamStripKernelProjector2D", "Unsupported projection geometry");
- ASTRA_CONFIG_CHECK(m_pVolumeGeometry->getPixelLengthX() == m_pVolumeGeometry->getPixelLengthY(), "ParallelBeamStripKernelProjector2D", "Pixel height must equal pixel width.");
+ ASTRA_CONFIG_CHECK(abs(m_pVolumeGeometry->getPixelLengthX() / m_pVolumeGeometry->getPixelLengthY()) - 1 < eps, "ParallelBeamStripKernelProjector2D", "Pixel height must equal pixel width.");
// success
return true;