Cross-correlate two N-dimensional arrays.
Cross-correlate in1 and in2 with the output size determined by the mode argument.
Parameters : | in1 : array
in2 : array
mode : str {‘valid’, ‘same’, ‘full’}, optional
|
---|---|
Returns : | out : array
|
Notes
The correlation z of two arrays x and y of rank d is defined as:
z[...,k,...] = sum[..., i_l, ...]
x[..., i_l,...] * conj(y[..., i_l + k,...])