Error on cv::cuda::DescriptorMatcher::knnMatch
While trying to use the knnMatch function cuda::DescriptorMatcher
using the documentation provided here: I am getting the following error:
OpenCV Error: The function/feature is not implemented (getGpuMat is available only for cuda::GpuMat and cuda::HostMem) in getGpuMat, file /home/sarkar/opencv/opencv/modules/core/src/matrix.cpp, line 1419
terminate called after throwing an instance of 'cv::Exception'
what(): /home/sarkar/opencv/opencv/modules/core/src/matrix.cpp:1419: error: (-213) getGpuMat is available only for cuda::GpuMat and cuda::HostMem in function getGpuMat
Any idea what it means? I am using a very simple code like the following:
matcher_gpu_->knnMatch(descriptors_frame, descriptors_model, matches, 2);
Where descriptor_frame
, descriptor_model
are cv::Mat
; and matche
s is vector of vector of DMatch.