From 5e2c112697889f06fad1d16a2244f29e707572d6 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 15 Jun 2018 19:37:58 +0300 Subject: [PATCH] photo: remove redundant broken check `dest(roi_d)` operation contains similar check inside. --- modules/photo/src/seamless_cloning.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/photo/src/seamless_cloning.cpp b/modules/photo/src/seamless_cloning.cpp index 9865d62ab3..16376def62 100644 --- a/modules/photo/src/seamless_cloning.cpp +++ b/modules/photo/src/seamless_cloning.cpp @@ -88,10 +88,6 @@ void cv::seamlessClone(InputArray _src, InputArray _dst, InputArray _mask, Point int minxd = p.x - lenx/2; int minyd = p.y - leny/2; - int maxxd = minxd + lenx; - int maxyd = minyd + leny; - - CV_Assert(minxd >= 0 && minyd >= 0 && maxxd <= dest.rows && maxyd <= dest.cols); Rect roi_d(minxd,minyd,lenx,leny); Rect roi_s(minx,miny,lenx,leny); -- GitLab