fixed nDiffs for CalcBackProject
This commit is contained in:
parent
c9b5d8cf4c
commit
7dd7dd97cd
@ -206,9 +206,9 @@ OCL_TEST_P(CalcBackProject, Mat)
|
|||||||
OCL_ON(cv::calcBackProject(uimages_roi, channels, uhist_roi, udst_roi, ranges, scale));
|
OCL_ON(cv::calcBackProject(uimages_roi, channels, uhist_roi, udst_roi, ranges, scale));
|
||||||
|
|
||||||
Size dstSize = dst_roi.size();
|
Size dstSize = dst_roi.size();
|
||||||
int nDiffs = (int)(0.06f*dstSize.area()+1);
|
int nDiffs = std::max((int)(0.07f*dstSize.area()), 1);
|
||||||
|
|
||||||
//check if the dst mats are the same except 6% difference
|
//check if the dst mats are the same except 7% difference
|
||||||
EXPECT_MAT_N_DIFF(dst_roi, udst_roi, nDiffs);
|
EXPECT_MAT_N_DIFF(dst_roi, udst_roi, nDiffs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -116,9 +116,9 @@ OCL_TEST_P(MatchTemplate, Mat)
|
|||||||
method == TM_CCORR_NORMED ||
|
method == TM_CCORR_NORMED ||
|
||||||
method == TM_SQDIFF_NORMED ||
|
method == TM_SQDIFF_NORMED ||
|
||||||
method == TM_CCOEFF_NORMED;
|
method == TM_CCOEFF_NORMED;
|
||||||
|
|
||||||
double eps = isNormed ? 3e-2 : 255.0 * 255.0 * templ.total() * 2e-5;
|
double eps = isNormed ? 3e-2 : 255.0 * 255.0 * templ.total() * 2e-5;
|
||||||
|
|
||||||
Near(eps);
|
Near(eps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user