Computes the two-dimensional cross correlation of two sequences.
The first input sequence.
This input can be a 2D array of double-precision, floating-point numbers or a 2D array of complex double-precision, floating-point numbers.
The second input sequence.
This input can be a 2D array of double-precision, floating-point numbers or a 2D array of complex double-precision, floating-point numbers.
The correlation method to use.
This input is available only if both x and y are arrays or waveforms.
If x and y are small, the direct method typically is faster. If x and y are large, the frequency domain method typically is faster. Additionally, slight numerical differences can exist between the two methods.
Name | Description |
---|---|
direct |
Computes the cross correlation using the direct method of linear correlation. |
frequency domain |
Computes the cross correlation using an FFT-based technique. |
Default: frequency domain
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
The cross correlation of the two input sequences.
The output can return a 2D array of double-precision, floating-point numbers or a 2D array of complex double-precision, floating-point numbers.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
This node computes two-dimensional cross correlation as follows:
for i = -(M1-1), ..., -1, 0, 1, ... , (M2-1) and j = -(N1-1), ..., -1, 0, 1, ... , (N2-1)
where
The indexed elements outside the ranges of X and Y are equal to zero, as shown in the following relationships:
and
The elements of the output matrix RXY are related to the elements in h as follows:
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application