Commit ed9f6a3c authored by Adrien BAK's avatar Adrien BAK

simplify a line

parent e46810ea
......@@ -199,7 +199,7 @@ void Cloning::solve(const Mat &img, const std::vector<double>& mod_diff, Mat &re
for(int i = 0, cy=1 ; i < w-2;i++,cy++)
{
int idx = j*(w-2) + i;
denom[idx] = (float) 2*cos(CV_PI*cy/( (double) (w-1))) - 2 + 2*cos(CV_PI*cx/((double) (h-1))) - 2;
denom[idx] = 2*cos(CV_PI*cy/( w-1)) + 2*cos(CV_PI*cx/(h-1)) - 4;
}
}
......
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