You can compute standard statistics of an image using themean2
,std2
, andcorr2
functions.mean2
andstd2
compute the mean and standard deviation of the elements of a matrix.corr2
computes the correlation coefficient between two matrices of the same size.
These functions are two-dimensional versions of themean
,std
, andcorrcoef
functions described in the MATLAB®Function Reference.