ENH: allow choice of ASTRA projector type#1485
Conversation
|
Note: the images come from the |
|
Is the linear kernel matched? |
|
ASTRA's CPU projectors all have matched FP and BP, yes. |
|
By the way, if you're evaluating 2D CPU projection kernels, I've just added a new 2D parallel beam CPU projector to astra called |
|
How about this now? |
adler-j
left a comment
There was a problem hiding this comment.
This would be a step away from getting the interpolation from the space. After some thought I've concluded that I'm in favor of this.
However this means that we should fully make the transition and actually allow users to pick the method as a parameter to the RayTransform method. Could you do this instead?
|
Yes, I've done exactly that in the #1459 PR. I can move it into this one instead. |
fde1c47 to
bff22db
Compare
|
Checking updated PR...
Comment last updated at 2019-07-18 16:58:02 UTC |
bff22db to
d441031
Compare
|
I've pulled over the changes as mentioned, ready for review. |
adler-j
left a comment
There was a problem hiding this comment.
Overall looks good, but needs some minor changes.
Also needs to add tests.
Done that.
Frankly I don't really know what to test. The tests would end up just copying what's in the implementation. |
|
Ping for re-review @adler-j |
|
Ping again. How about we merge this one after resolving the conflicts? I think the job is done here. |
|
Merge after conflicts are resolved. Sorry about the delay, rather busy atm. |
I can imagine that. Thanks for popping in here anyway :-) I'll fix the conflicts and you keep the mouse pointer ready to click "approve"^^. |
|
I'll inspect the CI for errors other than the "normal" ones, after that I'd like to merge. |
|
Just the "usual" errors in CI, merging. |
Regression from odlgroup#1485
* Add scaling factors for ASTRA >= 1.9.9.dev * STY: adapt for pep8speaks * Re-order ASTRA version handling chronologically * Add ASTRA version comments * BUG: Fix ASTRA DensityWeighting option Regression from #1485 * Remove ASTRA DensityWeighting option with ASTRA >= 1.9.9.dev ASTRA 1.9.9.dev has removed this option; it is now always enabled.
I suggest we switch to the
linearfor 2D parallel beam projections. The CPU line kernel gives quite bad results in terms of interpolation artifacts (@wjp: is that to be expected? I didn't imagine it to be this severe.). For comparison a projection-backprojection cycle:Line kernel

Linear kernel
