Fix buildMatrix Bug

This commit is contained in:
kradchen
2023-06-02 15:13:33 +08:00
parent 10fbe2a763
commit e39a5ecb57

View File

@@ -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{