From ed9f6a3cb4ee41df642d1d950afed99f424a9b6f Mon Sep 17 00:00:00 2001 From: Adrien BAK Date: Thu, 2 Oct 2014 15:36:53 +0900 Subject: [PATCH] simplify a line --- modules/photo/src/seamless_cloning_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/photo/src/seamless_cloning_impl.cpp b/modules/photo/src/seamless_cloning_impl.cpp index e2cfb64f82..0efc2db645 100644 --- a/modules/photo/src/seamless_cloning_impl.cpp +++ b/modules/photo/src/seamless_cloning_impl.cpp @@ -199,7 +199,7 @@ void Cloning::solve(const Mat &img, const std::vector& 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; } }