Commit 7c401d9e authored by Luka Stanisic's avatar Luka Stanisic

bugfix: the range for Y should be [0,maxDisplaceCenter] instead of [0,maxDisplaceCenter)

parent d48dcc78
Pipeline #16407 passed with stage
in 40 seconds
......@@ -174,7 +174,7 @@ __device__ static inline void doRefMapFFT(const int iRefMap, const int iOrient,
for (int cent_x = param.NumberPixels - param.maxDisplaceCenter; cent_x < param.NumberPixels; cent_x = cent_x + param.GridSpaceCenter)
{
for (int cent_y = 0; cent_y < param.maxDisplaceCenter; cent_y = cent_y + param.GridSpaceCenter)
for (int cent_y = 0; cent_y <= param.maxDisplaceCenter; cent_y = cent_y + param.GridSpaceCenter)
{
calProb(iRefMap, iOrient, iConv,amp, pha, env, sumC, sumsquareC, (myfloat_t) lCC[cent_x * param.NumberPixels + cent_y] / (myfloat_t) (param.NumberPixels * param.NumberPixels), cent_x - param.NumberPixels, cent_y, pProb, param, RefMap);
}
......
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