Main Content

2-D Autocorrelation

2-D autocorrelation of input matrix

  • Library:
  • Computer Vision Toolbox / Statistics

  • 2-D Autocorrelation block

Description

The 2-D Autocorrelation block computes the 2-D autocorrelation of the input vector or matrix.

Ports

Input

expand all

Input array, specified as a vector or matrix.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | fixed point
Complex Number Support: Yes

Output

expand all

Autocorrelation of the input array, returned as a vector or matrix. The data type of the output is the same as that of the input.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | fixed point
Complex Number Support: Yes

Parameters

expand all

For details on fixed-point block parameters, see Specify Fixed-Point Attributes for Blocks.

Select this parameter to prevent the fixed-point tools from overriding the data types you specify in this block. For more information, see Lock the Output Data Type Setting (Fixed-Point Designer).

Block Characteristics

Data Types

double | fixed point | integer | single

Multidimensional Signals

no

Variable-Size Signals

yes

Algorithms

If the input Ais a vector with dimension M-by-1 then the equation for 1-D discrete autocorrelation is:

C(n)=m=0M1A(m)A(m+n)

where 0n2M1 .

The output is an autocorrelation vector of size (2M1,1).

If the input A is a matrix with dimension M-by-N then the equation for the 2-D discrete autocorrelation is:

C(i,j)=m=0(M1)n=0(N1)A(m,n)conj(A(m+i,n+j))

where 0i<2M1 and 0j<2N1.

The dimension of the output autocorrelation matrix is (2M1,2N1).

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced before R2006a