Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I was going through the algorithm of a image sharpening method. They used the kernel matrix which is basically
1st row --(0,-1,0)
2nd row--- (-1,5,0)
3rd row----(0,-1,0)

They didnot give me the explanation about how it is used on an image.So, can anyone explain me a bit about it? Thanks
Posted

1 solution

This is what is usually called a convolution. See: http://williamson-labs.com/convolution-2d.htm[^] for a detailed description.

The given kernel is a combination of a low pass filter and an identify kernel (with multiplier 5). That results in a high pass filter, which can be used as image sharpening filter.

By the way, the second row of your kernel should probably read (-1, 5, -1)!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900