This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

vision.Autocorrelator System object

Compute 2-D autocorrelation of input matrix


The Autocorrelator object computes 2-D autocorrelation of input matrix.


Starting in R2016b, instead of using the step method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example, y = step(obj,x) and y = obj(x) perform equivalent operations.


H = vision.Autocorrelator returns a System object, H, that performs two-dimensional auto-correlation of an input matrix.

H = vision.Autocorrelator(Name,Value) returns a 2-D autocorrelation System object, H, with each specified property set to the specified value. You can specify additional name-value pair arguments in any order as (Name1, Value1,...,NameN,ValueN).


 Fixed-Point Properties


stepCompute cross-correlation of two input matrices
Common to All System Objects

Create System object with same property values


Expected number of inputs to a System object


Expected number of outputs of a System object


Check locked states of a System object (logical)


Allow System object property value changes


expand all

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

     1     4     4
     4    10     4
     4     4     1


This object implements the algorithm, inputs, and outputs described on the 2-D Autocorrelation block reference page. The object properties correspond to the block parameters.

Extended Capabilities

Introduced in R2012a