title: How to load a OpenCL buffer into a OpenCV cv::umat with the Transparent API?
body: <p>OpenCV's transparent API looks cool but I'm having some runtime problems for custom kernels when trying to package the thing into a static build (everything works with a dll, buts thats a question for a different post).</p>
  
  <p>I plan to use  which appears to run without incident.</p>
  
  <p>I need 2 functions that take in umat, my own versions are slower then the OpenCV ones.</p>
  
  <p>How do I something similar to this using the new API?</p>
  
  <pre><code>cv::cuda::GpuMat wrapme(frame.height,frame.width,CV_8U,in_d);
  cv::cuda::GpuMat histo(1, bn, CV_32SC1,histoBuff_d);
  cv::cuda::calcHist(wrapme,histo);
  histo.download(wrapmecpu);
  </code></pre>