Merge pull request #1703 from bitwangyaoyao:2.4_fix1480

pull/1705/merge
Andrey Pavlenko 11 years ago committed by OpenCV Buildbot
commit bb15c00665
  1. 2
      modules/ocl/src/filtering.cpp
  2. 4
      modules/ocl/test/test_filters.cpp

@ -451,7 +451,7 @@ void morphOp(int op, const oclMat &src, oclMat &dst, const Mat &_kernel, Point a
else else
kernel = _kernel; kernel = _kernel;
Ptr<FilterEngine_GPU> f = createMorphologyFilter_GPU(op, src.type(), kernel, anchor, iterations); Ptr<MorphologyFilterEngine_GPU> f = createMorphologyFilter_GPU(op, src.type(), kernel, anchor, iterations);
f->apply(src, dst); f->apply(src, dst);
} }

@ -384,14 +384,14 @@ INSTANTIATE_TEST_CASE_P(Filter, Erode, Combine(
Values(CV_8UC1, CV_8UC3, CV_8UC4, CV_32FC1, CV_32FC3, CV_32FC4), Values(CV_8UC1, CV_8UC3, CV_8UC4, CV_32FC1, CV_32FC3, CV_32FC4),
Values(3, 5, 7), Values(3, 5, 7),
Values(Size(0, 0)), // not used Values(Size(0, 0)), // not used
testing::Range(1, 2), testing::Range(1, 4),
Bool())); Bool()));
INSTANTIATE_TEST_CASE_P(Filter, Dilate, Combine( INSTANTIATE_TEST_CASE_P(Filter, Dilate, Combine(
Values(CV_8UC1, CV_8UC3, CV_8UC4, CV_32FC1, CV_32FC3, CV_32FC4), Values(CV_8UC1, CV_8UC3, CV_8UC4, CV_32FC1, CV_32FC3, CV_32FC4),
Values(3, 5, 7), Values(3, 5, 7),
Values(Size(0, 0)), // not used Values(Size(0, 0)), // not used
testing::Range(1, 2), testing::Range(1, 4),
Bool())); Bool()));
INSTANTIATE_TEST_CASE_P(Filter, SobelTest, Combine( INSTANTIATE_TEST_CASE_P(Filter, SobelTest, Combine(

Loading…
Cancel
Save