# How to increase the sharpness of the image using convolution matrix?

I am using 3 X 3 convolution matrix to obtain an sharpness image.

But the output result obtain from the above matrix is not much sharpen image. How to increase the sharpness of the image ?

Ya i am using same matrix.

common.getPixels(inputPath).then(function () {

sharp(inputPath)
.png()

.convolve({
width: 3,
height: 3,
kernel: [0,-1,0,-1,5,-1,0,-1,0]
})


But the output generated is different. Need to get more sharpen image than the generated one.

• Please include a sample of your image. The effectiveness of these filters depend on how sharp and noisy your original image is. An image sample will help others provide help. – Juancho Dec 27 '18 at 14:33

I  = im2double(imread('Cameraman.tif'));