Input Image
At first we need an image . In the given example we see a image as a matrix . Basically, images are represented as a 2D matrix .
Kernel
What is a kernel ?
We use this kernel for this example given below :
At first flip/rotate the kernel into 180 degrees .
Then apply zero padding into the image . Then multiply and sum all the things to find a value .
An example to find the value
Put it into the output image are given below . That’s we calculate our convoution operation into image processing .