diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-10-11 11:32:28 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-10-11 12:19:34 +0200 |
commit | f87ca86a994cdc3205a294e9bbbeddde312ea53b (patch) | |
tree | 218fcecfe2b37906ce1646e5001b6c56fc0a8502 /src/ParallelBeamLineKernelProjector2D.cpp | |
parent | 90ef1f69d79a0c40414c5932dfa9bd69f363ae80 (diff) | |
download | astra-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.cpp | 2 |
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; |