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
(f∗g)(t)=∫t0f(t−τ)g(τ)dτinput = [w,h] , filter=[k,k] → output=[w,h]
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 (f∗g) has signal:
(f∗g)(t)=∫−infIt 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 .