mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 13:13:26 +08:00
Fix compiler errors
This commit is contained in:
parent
8ffc15371d
commit
ad58c084a9
@ -43,7 +43,7 @@
|
|||||||
//
|
//
|
||||||
//M*/
|
//M*/
|
||||||
#include "precomp.hpp"
|
#include "precomp.hpp"
|
||||||
#include <cstring>
|
#include <cstdio>
|
||||||
|
|
||||||
#ifdef HAVE_OPENCV_OCL
|
#ifdef HAVE_OPENCV_OCL
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ PARAM_TEST_CASE(SURF, HessianThreshold, Octaves, OctaveLayers, Extended, Upright
|
|||||||
TEST_P(SURF, Detector)
|
TEST_P(SURF, Detector)
|
||||||
{
|
{
|
||||||
// the data path should be opencv/samples
|
// the data path should be opencv/samples
|
||||||
cv::Mat image = cv::imread(string(cvtest::TS::ptr()->get_data_path()) + "c/fruits.jpg", cv::IMREAD_GRAYSCALE);
|
cv::Mat image = cv::imread("../../../samples/c/fruits.jpg", cv::IMREAD_GRAYSCALE);
|
||||||
ASSERT_FALSE(image.empty());
|
ASSERT_FALSE(image.empty());
|
||||||
|
|
||||||
cv::ocl::SURF_OCL surf;
|
cv::ocl::SURF_OCL surf;
|
||||||
@ -180,7 +180,7 @@ TEST_P(SURF, Detector)
|
|||||||
|
|
||||||
TEST_P(SURF, Descriptor)
|
TEST_P(SURF, Descriptor)
|
||||||
{
|
{
|
||||||
cv::Mat image = cv::imread(string(cvtest::TS::ptr()->get_data_path()) + "c/fruits.jpg", cv::IMREAD_GRAYSCALE);
|
cv::Mat image = cv::imread("../../../samples/c/fruits.jpg", cv::IMREAD_GRAYSCALE);
|
||||||
ASSERT_FALSE(image.empty());
|
ASSERT_FALSE(image.empty());
|
||||||
|
|
||||||
cv::ocl::SURF_OCL surf;
|
cv::ocl::SURF_OCL surf;
|
||||||
|
Loading…
Reference in New Issue
Block a user