Adjust perf_filters, as this function only supports 3x3 kernel

This commit is contained in:
yao 2013-05-31 15:16:03 +08:00
parent 5b598f8a0e
commit abefcc6061

View File

@ -337,12 +337,12 @@ PERFTEST(filter2D)
{
gen(src, size, size, all_type[j], 0, 256);
for (int ksize = 3; ksize <= 15; ksize = 2*ksize+1)
{
const int ksize = 3;
SUBTEST << "ksize = " << ksize << "; " << size << 'x' << size << "; " << type_name[j] ;
Mat kernel;
gen(kernel, ksize, ksize, CV_32FC1, 0.0, 1.0);
gen(kernel, ksize, ksize, CV_32SC1, -3.0, 3.0);
Mat dst, ocl_dst;
@ -369,7 +369,6 @@ PERFTEST(filter2D)
GPU_FULL_OFF;
TestSystem::instance().ExpectedMatNear(ocl_dst, dst, 1e-5);
}
}