fixed compilation error with HAVE_OPENCV_CUDAFEATURES2D

This commit is contained in:
matlabbe 2018-09-18 20:14:15 -04:00
parent 556bf5f4cc
commit 784691a070

View File

@ -424,7 +424,7 @@ public:
fast_(imgGpu, maskGpu, keypoints); fast_(imgGpu, maskGpu, keypoints);
#else #else
#ifdef HAVE_OPENCV_CUDAFEATURES2D #ifdef HAVE_OPENCV_CUDAFEATURES2D
CVCUDA::GpuMat keypointsGpu(keypoints); CVCUDA::GpuMat keypointsGpu;
fast_->detectAsync(imgGpu, keypointsGpu, maskGpu); fast_->detectAsync(imgGpu, keypointsGpu, maskGpu);
fast_->convert(keypointsGpu, keypoints); fast_->convert(keypointsGpu, keypoints);
#endif #endif