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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user