1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
5 // Copyright (C) 2014, Itseez, Inc., all rights reserved.
6 // Third party copyrights are property of their respective owners.
8 #include "../test_precomp.hpp"
9 #include "opencv2/ts/ocl_test.hpp"
16 PARAM_TEST_CASE(HoughLinesTestBase, bool)
34 virtual void generateTestData()
36 //Mat image = readImage("shared/pic1.png", IMREAD_GRAYSCALE);
38 Mat image = randomMat(Size(100, 100), CV_8UC1, 0, 255, false);
40 cv::threshold(image, src, 127, 255, THRESH_BINARY);
41 //Canny(image, src, 100, 150, 3);
46 typedef HoughLinesTestBase HoughLines;
48 OCL_TEST_P(HoughLines, RealImage)
52 //std::cout << src << std::endl;
54 OCL_OFF(cv::HoughLines(src, dst, rhoStep, thetaStep, threshold, 0, 0));
55 OCL_ON(cv::HoughLines(usrc, udst, rhoStep, thetaStep, threshold, 0, 0));
58 OCL_INSTANTIATE_TEST_CASE_P(Imgproc, HoughLines, Values(true, false));
60 } } // namespace cvtest::ocl