summaryrefslogtreecommitdiffstats
path: root/src/ParallelBeamLineKernelProjector2D.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/ParallelBeamLineKernelProjector2D.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/ParallelBeamLineKernelProjector2D.cpp')
-rw-r--r--src/ParallelBeamLineKernelProjector2D.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ParallelBeamLineKernelProjector2D.cpp b/src/ParallelBeamLineKernelProjector2D.cpp
index d11be3d..a7d72d4 100644
--- a/src/ParallelBeamLineKernelProjector2D.cpp
+++ b/src/ParallelBeamLineKernelProjector2D.cpp
@@ -89,7 +89,7 @@ bool CParallelBeamLineKernelProjector2D::_check()
ASTRA_CONFIG_CHECK(dynamic_cast<CParallelProjectionGeometry2D*>(m_pProjectionGeometry) || dynamic_cast<CParallelVecProjectionGeometry2D*>(m_pProjectionGeometry), "ParallelBeamLineKernelProjector2D", "Unsupported projection geometry");
- ASTRA_CONFIG_CHECK(m_pVolumeGeometry->getPixelLengthX() == m_pVolumeGeometry->getPixelLengthY(), "ParallelBeamLineKernelProjector2D", "Pixel height must equal pixel width.");
+ ASTRA_CONFIG_CHECK(abs(m_pVolumeGeometry->getPixelLengthX() / m_pVolumeGeometry->getPixelLengthY()) - 1 < eps, "ParallelBeamLineKernelProjector2D", "Pixel height must equal pixel width.");
// success
return true;