xcorr2

2-D cross-correlation.

Syntax

  • C = xcorr2(A)

  • C = xcorr2(A, B)

Input argument

  • A - matrices

  • B - matrices

Output argument

  • C - 2-D cross-correlation or autocorrelation matrix

Description

xcorr2(A, B) calculates the cross-correlation between two matrices, A and B, in two dimensions, without any scaling applied.

Example

X = ones(2, 3);
H = [1 2; 3 4; 5 6];
C = xcorr2(H, X)

See also

filter2, conv2.

History

Version
Description

1.3.0

initial version

Author

Allan CORNET

Last updated