I am trying to work some image-process tasks with opencv on GPU with CUDA. I am using ubuntu. I setup my two products Opencv and Cuda without a problem, I am sure about that
As stated in the documentation, you have to build OpenCV using CMake and set the flag WITH_CUDA=ON. Then you will get the full-featured OpenCV GPU module. Otherwise the module is still built, but you recieve an exception with CV_GpuNotSupported.
For further information, read here: http://docs.opencv.org/modules/gpu/doc/introduction.html
I guess your system path is still set to previous dlls which are not compiled with gpu. You should first change your system path after the rebuilt of opencv.
I had the same problem. I fixed it by
copying opencv_core243d.dll from E:\opencv\build\gpu\x64\vc10\lib
folder to the work directory with the .exe.
Don't know why that should matter but it did.