3D cross-correlation in matlab

前端 未结 1 1451
伪装坚强ぢ
伪装坚强ぢ 2020-12-11 07:45

I need to calculate 3D cross-correlation in MATLAB. Anyone know which function I should use? For 2–D cross-correlation it has xcorr2, but I don\'t know about is

相关标签:
1条回答
  • 2020-12-11 08:03

    Correlation is similar to convolution except that one does not need to flip an input about the origin (but correlation needs taking the complex conjugate of one of the operands), so for 3D real matrices, you can use convn(x3d,y3d(end:-1:1,end:-1:1,end:-1:1)) to compute 3D cross correlation.

    0 讨论(0)
提交回复
热议问题