Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Interfacing OpenCV and Cuda

I wish to interface OpenCV with Cuda. By this, I mean:

  • given a T* pointer on a GPU memory block allocated with cudaMalloc, how create an OpenCV GpuMat using this allocation (without copy, and later losing my block when the GpuMat object is destroyed).
  • given a GpuMat object, how to get the associated device pointer usable by cuda (seems from a previous answer that the ptr<> method can do this).

Thanks for your help.

Note: cuda5 is now able to compile the gpumat.hpp header.