vision.Autocorrelator System object

Package: vision

Compute 2-D autocorrelation of input matrix


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


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).

Code Generation Support
Supports MATLAB® Function block: Yes
System Objects in MATLAB Code Generation.
Code Generation Support, Usage Notes, and Limitations.


 Fixed-Point Properties


cloneCreate 2-D autocorrelator object with same property values
getNumInputsNumber of expected inputs to step method
getNumOutputsNumber of outputs from step method
isLockedLocked status for input attributes and nontunable properties
release Allow property value and input characteristics changes
stepCompute cross-correlation of two input matrices


collapse all

Compute the 2D Autocorrelation of a Matrix

 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.

Was this topic helpful?