Use same shift sign in reference and optimized degridder.

Without this fix, the reference and optimized degridder give different
results when using non-zero shifts in the l direction.
parent f3de1bc6
Pipeline #4401 passed with stages
in 25 minutes and 8 seconds
......@@ -115,7 +115,7 @@ extern "C" {
// Compute l,m,n
const float l = compute_l(x, subgridsize, imagesize);
const float m = compute_m(y, subgridsize, imagesize);
const float n = compute_n(l, m, shift);
const float n = compute_n(-l, m, shift);
// Compute phase index
float phase_index = u*l + v*m + w*n;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment