summaryrefslogtreecommitdiffstats
path: root/include/astra/ParallelBeamLineKernelProjector2D.inl
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2015-12-16 18:13:33 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2015-12-16 18:13:33 +0100
commitf1c4c523db55ad31f3cfb8f51113099654c62c00 (patch)
tree2424d84078e35e6232d732846ccf756280e9a431 /include/astra/ParallelBeamLineKernelProjector2D.inl
parent0d015b1c91581ee5ef3e936f03e4c62fbc7ea362 (diff)
parent823bdc90b6d4ebf5acade43ad909805053c8974e (diff)
downloadastra-f1c4c523db55ad31f3cfb8f51113099654c62c00.tar.gz
astra-f1c4c523db55ad31f3cfb8f51113099654c62c00.tar.bz2
astra-f1c4c523db55ad31f3cfb8f51113099654c62c00.tar.xz
astra-f1c4c523db55ad31f3cfb8f51113099654c62c00.zip
Merge pull request #102 from wjp/misc_fixes
Misc fixes
Diffstat (limited to 'include/astra/ParallelBeamLineKernelProjector2D.inl')
-rw-r--r--include/astra/ParallelBeamLineKernelProjector2D.inl4
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)) {