I have c# desktop application and I am using emgu framework as a wrapper for OpenCV.
I am trying to sharpen an image because the input images are not great.
I tired a technique I found via searches that suggest from the original image:
I take a copy and blur it.
I then take another copy of the original and invert it.
I then merge the 2 new images together.
I then finally invert that merged image.
I have done all that but the image pretty much looks the same.
Is this the right approach?
I can post my code if need be - I used Aforge to quickly test this approach though.
UPDATE: To answer my own question I used this:
Image<Bgr, byte> image = new Image<Bgr, byte>(@"D:\20140320022038047.jpg"); Image<Bgr, byte> image2 = new Image<Bgr, byte>(@"D:\20140320022038047.jpg"); Emgu.CV.CvInvoke.cvSmooth(image, image2, SMOOTH_TYPE.CV_GAUSSIAN, 5, 5, 9, 9); Emgu.CV.CvInvoke.cvAddWeighted(image, 1.5, image2, -0.5, 0, image);