title: How To Sharpen an image in OpenCV
body: <p>A basic Google search finds <a href="https://stackoverflow.com/questions/4993082/how-to-sharpen-an-image-in-opencv">this SO question</a> and what appears to be an excellent answer. When I try, however, it has absolutely no effect on sharpening my blurred image.</p>
  
  <p>Could somebody clarify if I'm doing something completely wrong?</p>
  
  <p>What I've done so far is implement the filter2D function on an image to remove random noise, it also blurs my periodic noise, which is excellent. Now that I've blurred out the noise, I want to sharpen the image to see a less-noisy image than the original image. Here's my code:-</p>
  
  <pre><code>   anchor = Point( -1, -1 );
     delta = 0;
     ddepth = -1;
     dst = frame;
     dst2 = image;
  
    filter2D(src, dst, ddepth , kernel, anchor, delta, BORDER_DEFAULT );
  
    cv::GaussianBlur(frame, image, cv::Size(0, 0), 11);
    cv::addWeighted(frame, 1.5, image, -0.5, 0, image);
  </code></pre>
  
  <p>The gaussianblur and addWeighted make <strong>NO</strong> difference to the image whatsoever. Also, to clarify, there are no code errors at all either.</p>