From 00cbb894ec1ca44bf869ea79521cb815235e6a2e Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sun, 2 Sep 2018 03:31:05 +0000 Subject: [PATCH] CUDA: drop OPENCV_TRAITS_ENABLE_DEPRECATED requirement --- modules/core/CMakeLists.txt | 4 ---- modules/cudafeatures2d/test/test_features2d.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/core/CMakeLists.txt b/modules/core/CMakeLists.txt index fa72e71..db13a00 100644 --- a/modules/core/CMakeLists.txt +++ b/modules/core/CMakeLists.txt @@ -77,10 +77,6 @@ ocv_target_link_libraries(${the_module} LINK_PRIVATE "${OPENCV_HAL_LINKER_LIBS}" ) -if(HAVE_CUDA) - ocv_target_compile_definitions(${the_module} PUBLIC OPENCV_TRAITS_ENABLE_DEPRECATED) -endif() - ocv_add_accuracy_tests() ocv_add_perf_tests() diff --git a/modules/cudafeatures2d/test/test_features2d.cpp b/modules/cudafeatures2d/test/test_features2d.cpp index 6ab23be..787b4fb 100644 --- a/modules/cudafeatures2d/test/test_features2d.cpp +++ b/modules/cudafeatures2d/test/test_features2d.cpp @@ -222,7 +222,7 @@ CUDA_TEST_P(ORB, Accuracy) { std::vector keypoints; cv::cuda::GpuMat descriptors; - orb->detectAndComputeAsync(loadMat(image), loadMat(mask), keypoints, descriptors); + orb->detectAndComputeAsync(loadMat(image), loadMat(mask), rawOut(keypoints), descriptors); } catch (const cv::Exception& e) { -- 2.7.4