I would like to sharp an image by performing CvInvoke.Filter2d with a sharpening kernel: {[-1,-1,-1],[-1, 9,-1],[-1,-1,-1]}
How do I can define this kernel in EMGU under C#?
I'm using EMGU version 4.3.0.3890
This is my code:
// Load image
Image<Bgr, Byte> img = null;
img = new Image<Bgr, byte>(@"D:\Sample.png");
// Convert the image to grayscale
Image<Gray, float> gray = img.Convert<Gray, float>()
.ThresholdBinary(new Gray(150), new Gray(255));
// Add use of Filter2D here