Check ippStsNoErr as result of ipp function instead >=0

pull/2568/head
vbystricky 11 years ago
parent c65e5a1e7b
commit aece433b15
  1. 2
      modules/imgproc/src/smooth.cpp

@ -2199,7 +2199,7 @@ public:
*ok = false;
return;
}
if( ippicviFilterBilateral_8u_C1R( src.ptr<uchar>(range.start) + radius * ((int)src.step[0] + 1), (int)src.step[0], dst.ptr<uchar>(range.start), (int)dst.step[0], roi, kernel, pSpec ) < 0)
if (ippStsNoErr != ippicviFilterBilateral_8u_C1R( src.ptr<uchar>(range.start) + radius * ((int)src.step[0] + 1), (int)src.step[0], dst.ptr<uchar>(range.start), (int)dst.step[0], roi, kernel, pSpec ))
*ok = false;
}
private:

Loading…
Cancel
Save