title: OpenCV GPU Dilate not working
body: <p>I'm trying to execute a Dilate and Erode functions using OpenCV GPU, but for some reason it is returning a black image. I just can't figure out what's the issue;</p>
  
  <p>The code that I'm using:</p>
  
  <pre><code>int erosionDilation_size = 5;
  Mat element = cv::getStructuringElement(MORPH_RECT, Size(2*erosionDilation_size + 1,    2*erosionDilation_size+1));
  cv::gpu::dilate(_gpuProcessOutput[__n],  _gpuProcessOutput[__n],element);
  _gpuProcessOutput[__n].download(_frame[__n]);
  imshow("Test",_frame[0]);
  cvWaitKey(1000/120);
  </code></pre>
  
  <p>Does anyone know what's happening? Thanks!</p>
  
  <p><em>Update</em>
  This is the image that I'm trying to dilate!
  <img src="https://i.stack.imgur.com/e5pzY.png" alt="Image1"></p>