Convolution explained

1D convolution

input = [w] , filter=[k] output=[w]

For example:

input =[1111111] and filter=[0.25,0.5,0.25], hence output=[1111111]

2D Convolution operation as a mtarix multiplication

input = [w,h] , filter=[k,k] output=[w,h]

(fg)(t)=t0f(tτ)g(τ)dτ

Convolution consists in blending 2 functions together.

The example below shows the convolution of a step function and a Gaussian function.

Each point t in a convolve signal (fg) has signal:

(fg)(t)=inf

It is the integral of a point wise multiplication between all elements in the signal and all elements in the signal shifted by .

2D Convolution: step by step

We will convolve those 2 signals: and .

is the function that we shift. Typically, we shift the shortest or simplest signal. We will maintain and shift .