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

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
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment