2-D Autocorrelation - Compute 2-D autocorrelation of input matrix

Library

Statistics

Description

The 2-D Autocorrelation block computes the two-dimensional autocorrelation of the input matrix. Assume that input matrix A has dimensions (Ma, Na). The equation for the two-dimensional discrete autocorrelation is

where and .

The output of this block has dimensions .

PortInput/OutputSupported Data TypesComplex Values Supported

Input

Vector or matrix of intensity values or a scalar, vector, or matrix that represents one plane of the RGB video stream

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point

  • 8-, 16-, 32-bit signed integer

  • 8-, 16-, 32-bit unsigned integer

Yes

Output

Autocorrelation of the input matrix

Same as Input port

Yes

If the data type of the input is floating point, the output of the block has the same data type.

Fixed-Point Data Types

The following diagram shows the data types used in the 2-D Autocorrelation block for fixed-point signals.

You can set the product output, accumulator, and output data types in the block mask as discussed in Dialog Box.

The output of the multiplier is in the product output data type if at least one of the inputs to the multiplier is real. If both of the inputs to the multiplier are complex, the result of the multiplication is in the accumulator data type. For details on the complex multiplication performed, refer to Multiplication Data Types in the Signal Processing Blockset™ documentation.

Dialog Box

The Main pane of the 2-D Autocorrelation dialog box appears as shown in the following figure.

The Fixed-point pane of the 2-D Autocorrelation dialog box appears as shown in the following figure.

Rounding mode

Select the rounding mode for fixed-point operations.

Overflow mode

Select the overflow mode for fixed-point operations.

Product output

Use this parameter to specify how to designate the product output word and fraction lengths. Refer to Fixed-Point Data Types and Multiplication Data Types in the Signal Processing Blockset documentation for illustrations depicting the use of the product output data type in this block:

Accumulator

Use this parameter to specify how to designate the accumulator word and fraction lengths. Refer to Fixed-Point Data Types and Multiplication Data Types in the Signal Processing Blockset documentation for illustrations depicting the use of the accumulator data type in this block. The accumulator data type is only used when both inputs to the multiplier are complex.

Output

Choose how to specify the output word length and fraction length.

Lock scaling against changes by the autoscaling tool

Select this parameter to prevent any fixed-point scaling you specify in this block mask from being overridden by the autoscaling tool in the Fixed-Point Tool. For more information, see fxptdlg, a reference page on the Fixed-Point Tool in the Simulink® documentation.

See Also

2-D Correlation

Video and Image Processing Blockset

Histogram

Video and Image Processing Blockset

Mean

Video and Image Processing Blockset

Median

Video and Image Processing Blockset

Standard Deviation

Video and Image Processing Blockset

Variance

Video and Image Processing Blockset

Maximum

Signal Processing Blockset

Minimum

Signal Processing Blockset

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS