I have installed opencv and Cuda.I have made some opencv code and now I wanna try to make it run faster using CUDA.The problem is that the opencv GPU module does not satisfy me. How can I make a CUDA code to include and use opencv libraries and functions exactly like my .cpp files?I include the needed .h files (cv.h highgui.h) that I moved to the "include" CUDA folder in my CUDA code but when I try to compile it using nvcc it says Undefined symbols for architecture i386:
"_cvLoadImage", referenced from: _main in tmpxft_000177b6_00000000-14_cuda.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status
which means that it does not understand the functions so the libraries are not included the right way as far as I can see.How can I make it work?