photo: remove redundant broken check

`dest(roi_d)` operation contains similar check inside.
pull/11775/head
Alexander Alekhin 7 years ago committed by Alexander Alekhin
parent 30d4e0261a
commit 5e2c112697
  1. 4
      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);

Loading…
Cancel
Save