1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Correct handling when IPP is enabled

This commit is contained in:
take1014
2018-05-31 22:54:32 +09:00
parent 58d28061a4
commit 229e8b1b18
2 changed files with 34 additions and 0 deletions
+4
View File
@@ -821,6 +821,10 @@ static bool ipp_calchist(const Mat &image, Mat &hist, int histSize, const float*
return false;
#endif
// IPP_DISABLE_HISTOGRAM - https://github.com/opencv/opencv/issues/11544
if (uniform && (ranges[0][1] - ranges[0][0]) != histSize)
return false;
Mat ihist = hist;
if(accumulate)
ihist.create(1, &histSize, CV_32S);