1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

photo: remove redundant broken check

`dest(roi_d)` operation contains similar check inside.
This commit is contained in:
Alexander Alekhin
2018-06-15 19:37:58 +03:00
committed by Alexander Alekhin
parent 30d4e0261a
commit 5e2c112697
-4
View File
@@ -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);