A basic Google search finds this SO question and what appears to be an excellent answer. When I try, however, it has absolutely no effect on sharpening my blurred image.
Could somebody clarify if I'm doing something completely wrong?
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:-
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);
The gaussianblur and addWeighted make NO difference to the image whatsoever. Also, to clarify, there are no code errors at all either.