CUDA: drop OPENCV_TRAITS_ENABLE_DEPRECATED requirement

pull/12377/head
Alexander Alekhin 7 years ago
parent a0f86479e0
commit 00cbb894ec
  1. 4
      modules/core/CMakeLists.txt
  2. 2
      modules/cudafeatures2d/test/test_features2d.cpp

@ -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()

@ -222,7 +222,7 @@ CUDA_TEST_P(ORB, Accuracy)
{
std::vector<cv::KeyPoint> 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)
{

Loading…
Cancel
Save