changes sigma in perf tests
This commit is contained in:
parent
55bbca2d09
commit
1ad69aba35
@ -246,14 +246,14 @@ OCL_PERF_TEST_P(GaussianBlurFixture, GaussianBlur,
|
|||||||
const FilterParams params = GetParam();
|
const FilterParams params = GetParam();
|
||||||
const Size srcSize = get<0>(params);
|
const Size srcSize = get<0>(params);
|
||||||
const int type = get<1>(params), ksize = get<2>(params);
|
const int type = get<1>(params), ksize = get<2>(params);
|
||||||
const double eps = CV_MAT_DEPTH(type) <= CV_32S ? 1 + DBL_EPSILON : 3e-4;
|
const double eps = CV_MAT_DEPTH(type) <= CV_32S ? 2 + DBL_EPSILON : 3e-4;
|
||||||
|
|
||||||
checkDeviceMaxMemoryAllocSize(srcSize, type);
|
checkDeviceMaxMemoryAllocSize(srcSize, type);
|
||||||
|
|
||||||
UMat src(srcSize, type), dst(srcSize, type);
|
UMat src(srcSize, type), dst(srcSize, type);
|
||||||
declare.in(src, WARMUP_RNG).out(dst);
|
declare.in(src, WARMUP_RNG).out(dst);
|
||||||
|
|
||||||
OCL_TEST_CYCLE() cv::GaussianBlur(src, dst, Size(ksize, ksize), 0);
|
OCL_TEST_CYCLE() cv::GaussianBlur(src, dst, Size(ksize, ksize), 1, 1, cv::BORDER_CONSTANT);
|
||||||
|
|
||||||
SANITY_CHECK(dst, eps);
|
SANITY_CHECK(dst, eps);
|
||||||
}
|
}
|
||||||
|
@ -1174,7 +1174,7 @@ void cv::GaussianBlur( InputArray _src, OutputArray _dst, Size ksize,
|
|||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if IPP_VERSION_X100 >= 801
|
#if IPP_VERSION_X100 >= 801 && 0 // these functions are slower in IPP 8.1
|
||||||
int depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
|
int depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
|
||||||
|
|
||||||
if ((depth == CV_8U || depth == CV_16U || depth == CV_16S || depth == CV_32F) && (cn == 1 || cn == 3) &&
|
if ((depth == CV_8U || depth == CV_16U || depth == CV_16S || depth == CV_32F) && (cn == 1 || cn == 3) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user