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