blob: 40b848a71f873e30603add3db1894783bedddc1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Caption: linear cross correlation of a 2D matrix
//Example3.14
//page 129
clc;
x = [3,1;2,4];
h1 = [1,5;2,3];
h2 = h1(:,$:-1:1);
h = h2($:-1:1,:);
y = conv2d(x,h)
disp(y,'Linear cross Correlation result y=')
//Result
//Linear cross Correlation result y=
//
// 9. 9. 2.
// 21. 24. 9.
// 10. 22. 4.
|