1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Merge pull request #11192 from terfendail:setto_fix

This commit is contained in:
Alexander Alekhin
2018-04-05 20:25:33 +00:00
2 changed files with 50 additions and 0 deletions
+5
View File
@@ -478,6 +478,11 @@ static bool ipp_Mat_setTo_Mat(Mat &dst, Mat &_val, Mat &mask)
if(dst.channels() > 4)
return false;
if (dst.depth() == CV_32F)
for (int i = 0; i < (int)(_val.total()); i++)
if (_val.at<double>(i) < iwTypeGetMin(ipp32f) || _val.at<double>(i) > iwTypeGetMax(ipp32f))
return false;
if(dst.dims <= 2)
{
IppiSize size = ippiSize(dst.size());