diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-12-09 16:04:47 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-12-09 19:06:27 +0100 |
commit | 756b95924a01e30bc0d67399dda4cbf1c7904289 (patch) | |
tree | 087ede460594dbc26c15f070f0f2323f2cdcadaa /include/astra | |
parent | ea0ca6ec9a29bd95aaa74d701e51e65c2f64f894 (diff) | |
download | astra-756b95924a01e30bc0d67399dda4cbf1c7904289.tar.gz astra-756b95924a01e30bc0d67399dda4cbf1c7904289.tar.bz2 astra-756b95924a01e30bc0d67399dda4cbf1c7904289.tar.xz astra-756b95924a01e30bc0d67399dda4cbf1c7904289.zip |
Fix row/col mismatch in 2d par line projector
Diffstat (limited to 'include/astra')
-rw-r--r-- | include/astra/ParallelBeamLineKernelProjector2D.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/astra/ParallelBeamLineKernelProjector2D.inl b/include/astra/ParallelBeamLineKernelProjector2D.inl index 199d69e..c11f243 100644 --- a/include/astra/ParallelBeamLineKernelProjector2D.inl +++ b/include/astra/ParallelBeamLineKernelProjector2D.inl @@ -259,7 +259,7 @@ void CParallelBeamLineKernelProjector2D::projectBlock_internal(int _iProjFrom, i else { I = (1.5f - T - x2) / (1.0f - 2.0f*T) * lengthPerCol; - if (x1 >= 0 && x1 < m_pVolumeGeometry->getGridColCount()) { + if (x1 >= 0 && x1 < m_pVolumeGeometry->getGridRowCount()) { iVolumeIndex = m_pVolumeGeometry->pixelRowColToIndex(x1, col); // POLICY: PIXEL PRIOR + ADD + POSTERIOR if (p.pixelPrior(iVolumeIndex)) { @@ -267,7 +267,7 @@ void CParallelBeamLineKernelProjector2D::projectBlock_internal(int _iProjFrom, i p.pixelPosterior(iVolumeIndex); } } - if (x1+1 >= 0 && x1+1 < m_pVolumeGeometry->getGridColCount()) { + if (x1+1 >= 0 && x1+1 < m_pVolumeGeometry->getGridRowCount()) { iVolumeIndex = m_pVolumeGeometry->pixelRowColToIndex(x1+1, col); // POLICY: PIXEL PRIOR + ADD + POSTERIOR if (p.pixelPrior(iVolumeIndex)) { |