Skip to content

Commit 766bf77

Browse files
committed
Merge pull request #2276 from developedby:patch-2
2 parents 1a15cbc + 2932420 commit 766bf77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/ximgproc/src/l0_smooth.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ namespace cv
252252
CV_Assert(!S.empty());
253253
CV_Assert(S.depth() == CV_8U || S.depth() == CV_16U
254254
|| S.depth() == CV_32F || S.depth() == CV_64F);
255+
CV_Assert(lambda > 0.0);
256+
CV_Assert(kappa > 1.0);
255257

256258
dst.create(src.size(), src.type());
257259

0 commit comments

Comments
 (0)