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

Compute the mean of the elements of a matrix

Syntax

Description

B = mean2(A) computes the mean of the values in A.

Class Support

The input image A can be numeric or logical. The output image B is a scalar of class double.

Algorithm

mean2 computes the mean of an array A using mean(A(:)).

See Also

std2

mean, std in the MATLAB Function Reference


Previous page  mat2gray medfilt2 Next page

© 1994-2005 The MathWorks, Inc.