Main Content

Image Mean, Standard Deviation, and Correlation Coefficient

You can compute standard statistics of an image using themean2,std2, andcorr2functions.mean2andstd2compute the mean and standard deviation of the elements of a matrix.corr2computes the correlation coefficient between two matrices of the same size.

These functions are two-dimensional versions of themean,std, andcorrcoeffunctions described in the MATLAB®Function Reference.