Fixed IPP based implementation of setTo() for infinity value
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user