Image Processing Toolbox User's Guide Previous page   Next Page
corr2

Compute the two-dimensional correlation coefficient between two matrices

Syntax

Description

r = corr2(A,B) computes the correlation coefficient between A and B, where A and B are matrices or vectors of the same size.

Class Support

A and B can be numeric or logical. The return value r is a scalar double.

Algorithm

corr2 computes the correlation coefficient using

where = mean2(A), and = mean2(B).

See Also

std2

corrcoef in the MATLAB Function Reference


Previous page  convn cp2tform Next page

© 1994-2005 The MathWorks, Inc.