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

Merge pull request #21635 from DumDereDum:issue_21595_3.4

Issue 21595 fix 3.4 branch

* bug fix; add test

* rewrite tests avoiding vector in tests
This commit is contained in:
Artem Saratovtsev
2022-02-18 17:58:58 +03:00
committed by GitHub
parent 4e53f301d8
commit 1890157faa
2 changed files with 34 additions and 1 deletions
+2 -1
View File
@@ -909,7 +909,8 @@ static bool ipp_calchist(const Mat &image, Mat &hist, int histSize, const float*
#endif
// IPP_DISABLE_HISTOGRAM - https://github.com/opencv/opencv/issues/11544
if (uniform && (ranges[0][1] - ranges[0][0]) != histSize)
// and https://github.com/opencv/opencv/issues/21595
if ((uniform && (ranges[0][1] - ranges[0][0]) != histSize) || abs(ranges[0][0]) != cvFloor(ranges[0][0]))
return false;
Mat ihist = hist;