www.gusucode.com > vision 源码程序 matlab案例代码 > vision/ComputeThe2DAutocorrelationOfAMatrixExample.m

    %% Compute the 2D Autocorrelation of a Matrix

% Copyright 2015 The MathWorks, Inc.

 %%
 hac2d = vision.Autocorrelator;
 x = [1 2;2 1];
 Y = step(hac2d, x)