I am running an ubuntu 14.04 system with CUDA 6.5 installed. I am trying to use the gpu implementation of feature matching of OpenCV library and my openCV library version is 2.4.9. cmake .. is ok but when I want to make project it gives me errors like:
> /usr/local/include/opencv2/gpu/gpu.hpp:432:29: error: ‘vector’ does
> not name a type CV_EXPORTS void merge(const vector<GpuMat>& src,
> GpuMat& dst, Stream& stream = Stream::Null());
> ^ /usr/local/include/opencv2/gpu/gpu.hpp:432:35: error: expected ‘,’ or
> ‘...’ before ‘<’ token CV_EXPORTS void merge(const vector<GpuMat>&
> src, GpuMat& dst, Stream& stream = Stream::Null());
Could you please help me with this? Thanks...
put using namespace std; before you include gpu.hpp
example
using namespace std;
#include <opencv2/gpu/gpu.hpp>
this works for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With