Update VWDictionary.cpp

Fixed "HAVE_OPENCV_CUDAFEATURES2D" build error of https://github.com/introlab/rtabmap/issues/85
This commit is contained in:
matlabbe
2016-06-22 19:28:22 -04:00
committed by GitHub
parent 8e76de7d34
commit 22766e958f
+1 -1
View File
@@ -542,7 +542,7 @@ void VWDictionary::setNNStrategy(NNStrategy strategy)
} }
#endif #endif
#else #else
#if HAVE_OPENCV_CUDAFEATURES2D #ifdef HAVE_OPENCV_CUDAFEATURES2D
if(strategy == kNNBruteForceGPU && !cv::cuda::getCudaEnabledDeviceCount()) if(strategy == kNNBruteForceGPU && !cv::cuda::getCudaEnabledDeviceCount())
{ {
UERROR("Nearest neighobr strategy \"kNNBruteForceGPU\" chosen but no CUDA devices found! Doing \"kNNBruteForce\" instead."); UERROR("Nearest neighobr strategy \"kNNBruteForceGPU\" chosen but no CUDA devices found! Doing \"kNNBruteForce\" instead.");