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/FanFlatBeamLineKernelProjector2D.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/FanFlatBeamLineKernelProjector2D.cpp')
-rw-r--r-- | src/FanFlatBeamLineKernelProjector2D.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FanFlatBeamLineKernelProjector2D.cpp b/src/FanFlatBeamLineKernelProjector2D.cpp index 4bfff58..7bec351 100644 --- a/src/FanFlatBeamLineKernelProjector2D.cpp +++ b/src/FanFlatBeamLineKernelProjector2D.cpp @@ -91,7 +91,7 @@ bool CFanFlatBeamLineKernelProjector2D::_check() ASTRA_CONFIG_CHECK(dynamic_cast<CFanFlatProjectionGeometry2D*>(m_pProjectionGeometry) || dynamic_cast<CFanFlatVecProjectionGeometry2D*>(m_pProjectionGeometry), "FanFlatBeamLineKernelProjector2D", "Unsupported projection geometry"); - ASTRA_CONFIG_CHECK(m_pVolumeGeometry->getPixelLengthX() == m_pVolumeGeometry->getPixelLengthY(), "FanFlatBeamLineKernelProjector2D", "Pixel height must equal pixel width."); + ASTRA_CONFIG_CHECK(abs(m_pVolumeGeometry->getPixelLengthX() / m_pVolumeGeometry->getPixelLengthY()) - 1 < eps, "FanFlatBeamLineKernelProjector2D", "Pixel height must equal pixel width."); // success return true; |