This exercise does not need Python.
Consider the image
Calculate by hand the convolution of with .
Calculate by hand the convolution of with .
Calculate by hand the convolution of with .
Correction¶
Objectives¶
Know how to calculate a convolution product.
Interpret a simple convolution.
The convolution is commutative: and is defined as:
To apply the convolution product, it is necessary to define an origin in the images and . Suppose that the origin is given by the red pixel:
Note that has only two non-zero pixels: and . Then we have:
Proof
Consider the first pixel :
Because has only two non-zero pixels, we have:
The pixel of cannot be calculated because it needs the value which is not defined.
In the same way, we have:
We obtain similar results fot the second row of .
As well, considering that 1 is the pixel at the origin in , we obtain:
and, considering that 2 is the pixel at the origin in , we obtain: