且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

matlab中的三维互相关

更新时间:2023-02-27 14:19:40

相关性类似于卷积,除了不需要翻转关于原点的输入(但是相关性需要采用其中一个操作数的复共轭),因此对于3D真实矩阵,你可以使用 convn(x3d,y3d(结束:-1:1,结束:-1:1,结束:-1:1))来计算3D互相关。

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.