How to import openCV libraries in a Visual Studio 2012 CUDA 7.0 project?

Hi to all,
I need to calculate an histogram image, starting from an RGB jpeg image. So i want to do this in parallel using CUDA functions. But to manipulate the image I need some openCV (or similar) function. The IDE that I use is Visual Studio 2012.
Is there a tutorial that could explain me how to do make a CUDA project with openCV libraries in Visual Studio?

Thanks a lot.