Commit 29324209 authored by Nicolas Abril's avatar Nicolas Abril Committed by Nicolas Abril
Browse files

Ensures that the input arguments are valid

If 'lambda <= 0' or 'kappa <= 1.0', the stop condition for the solver is never met because beta would not be increasing.
parent 1a15cbc9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -252,6 +252,8 @@ namespace cv
            CV_Assert(!S.empty());
            CV_Assert(S.depth() == CV_8U || S.depth() == CV_16U
            || S.depth() == CV_32F || S.depth() == CV_64F);
            CV_Assert(lambda > 0.0);
            CV_Assert(kappa > 1.0);

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