In OpenCV to create an image Mat I’d usually do something along the lines of: cv::Mat myImage however when I use this method cv::gpu::GpuMat myImage to create a GpuMat I get undefined reference errors. I have noticed that a lot of people simply declare GpuMat myImage however using namespace cv::gpu leads to the same errors.
In short, how do I create a GpuMat in OpenCV properly?
Note: I’m still learning C/C++, so it’s likely I’m missing something obvious (or not accessing the method correctly).
The problem occurred as I had not included the opencv_gpu231 lib, thanks for the help!