simplify a line

pull/3315/head
Adrien BAK 11 years ago
parent e46810eabe
commit ed9f6a3cb4
  1. 2
      modules/photo/src/seamless_cloning_impl.cpp

@ -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;
}
}

Loading…
Cancel
Save