diff --git a/src/transmissionReconstruction/reconstruction/buildMatrix/buildMatrix.cpp b/src/transmissionReconstruction/reconstruction/buildMatrix/buildMatrix.cpp index 932d44a..352b0b8 100644 --- a/src/transmissionReconstruction/reconstruction/buildMatrix/buildMatrix.cpp +++ b/src/transmissionReconstruction/reconstruction/buildMatrix/buildMatrix.cpp @@ -315,10 +315,10 @@ namespace Recon i.setBlockValue(1, coeffIndex, cnt-1, rayCount-1); j.setBlock(1,coeffIndex,cnt-1,linearIndices); if (weighting.isScalar()){ - s.setBlockValue(1, coeffIndex, cnt,weighting.getScalar()); + s.setBlockValue(1, coeffIndex, cnt-1,weighting.getScalar()); } else{ - s.setBlock(1, coeffIndex, cnt, weighting); + s.setBlock(1, coeffIndex, cnt-1, weighting); } } else{