Three-dimensional correlation in the matrix

I need to calculate three-dimensional cross-correlation in MATLAB. Does anyone know which function should I use? It has two-dimensional cross-correlation xcorr2, but I don’t know what it is 3D.

+2
source share
1 answer

Correlation is similar to convolution, except that you do not need to transfer the input signal about the origin (but the correlation needs take the complex conjugation of one of the operands), so for three-dimensional real matrices you can use convn(x3d,y3d(end:-1:1,end:-1:1,end:-1:1))Three-dimensional correlation to calculate.

+9
source

Source: https://habr.com/ru/post/1545344/


All Articles