diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2019-03-29 10:57:16 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2019-03-29 14:16:28 +0100 |
commit | 667a390d94ad3b3ee706f9598a707376d9604810 (patch) | |
tree | 2538526dff4f3da594df2f8f426a641c1d9fc23d /python/conda/astra-toolbox/build.sh | |
parent | 0f7c3261f159882316429d8a13009a8c1f858cbc (diff) | |
download | astra-667a390d94ad3b3ee706f9598a707376d9604810.tar.gz astra-667a390d94ad3b3ee706f9598a707376d9604810.tar.bz2 astra-667a390d94ad3b3ee706f9598a707376d9604810.tar.xz astra-667a390d94ad3b3ee706f9598a707376d9604810.zip |
Fix scaling for fan/strip projector
The strip model for a fan beam geometry wasn't taking pixel magnification into
account. Among other things, this resulted in diagonals through rectangles
being weighted the same as hor/ver lines.
This commit fixes this by scaling each pixel contribution by its magnification
on the detector. This is only an approximation (since the magnification isn't
constant inside the pixel), but since pixels are usually small, the error
is also small. Unfortunately, computing this scaling factor is relatively
expensive because it introduces a square root in the inner loop.
Diffstat (limited to 'python/conda/astra-toolbox/build.sh')
0 files changed, 0 insertions, 0 deletions