Proof of Separable Convolution 2D


http://www.songho.ca/dsp/convolution/convolution2d_separable.html


By the definition of Convolution 2D
Definition of 2D convolution

Since convolution is commutative (x[n] * y[n] = y[n] * x[n]), swap the order of convolution; 
alternative 2D convolution

And, if h[m, n] is separable to (M×1) and (1×N); 

Therefore, substitute h[m, n] into the equation; 

Since the definition of convolution 1D is; 
Definition of 1D Convolution 
it is convolving with input and h1, then convolve once again with the result of previous convolution and h2. Therefore, the separable 2D convolution is performing twice of 1D convolution in horizontal and vertical direction. 

And, convolution is associative, it does not matter which direction perform first. Therefore, you can convolve withh2[n] first then convolve with h1[m] later.

Example

Compute y[1,1] by using separable convolution method and compare the result with the output of normal convolution 2D.

x[m,n] 
Input
h[m,n] 
Separable Kernel

i) Using convolution 2D 

ii) Using Separable Convolution 2D 
First, do the vertical convolution 1D where the row is n=1, and the column is m=0,1,2; 
 

Then, do the horizontal convolution with above result where column is m=1; 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值