CV_Assert for photo module corrected
This commit is contained in:
parent
540a60fca7
commit
7a68e3d207
@ -59,7 +59,7 @@ void cv::decolor(InputArray _src, OutputArray _dst, OutputArray _color_boost)
|
||||
_color_boost.create(I.size(), CV_8UC3);
|
||||
Mat color_boost = _color_boost.getMat();
|
||||
|
||||
CV_Assert((I.data) && (I.channels()==3));
|
||||
CV_Assert(!I.empty() && (I.channels()==3));
|
||||
|
||||
// Parameter Setting
|
||||
int maxIter = 15;
|
||||
|
@ -92,7 +92,7 @@ void cv::seamlessClone(InputArray _src, InputArray _dst, InputArray _mask, Point
|
||||
int minyd = p.x - leny/2;
|
||||
int maxyd = p.x + leny/2;
|
||||
|
||||
CV_Assert((minxd<0) && (minyd<0) && (maxxd>dest.size().height) && (maxyd>dest.size().width));
|
||||
CV_Assert(minxd >= 0 && minyd >= 0 && maxxd <= dest.rows && maxyd <= dest.cols);
|
||||
|
||||
Rect roi_d(minyd,minxd,leny,lenx);
|
||||
Rect roi_s(miny,minx,leny,lenx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user