title: How to read image in cuda program?
body: <p>Cant find opencv lib when run a cuda program.</p>
  
  <p>I did some processing for my images by c++, and it works. But it is too slow for real-time system. Then I try to do it by cuda.
  When I run my .cu file by "nvcc test.cu", it has an error that "identifier "Mat" is undefined" which means cuda cant find opencv lib. any idea to fix it?</p>