<< Image Analysis and Statistics Image Analysis and Statistics edge >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Image Analysis and Statistics > corr2

corr2

2D correlation coefficient

Syntax

c = corr2(imA, imB)

Parameters

imA, imB :

imA and imB are 2D matrices of the same size.

c :

Correlation coefficient, a scalar of class double.

Description

corr2 computes correlation coefficient of two 2D matrices imA and imB. c = sum( (imA-mA).*(imB-mB) / sqrt(sum((imA-mA).^2) * sum((imB-mB).^2)) mA=mean2(imA) and mB=mean2(imB)

Examples

See also

Authors


Report an issue
<< Image Analysis and Statistics Image Analysis and Statistics edge >>