Accord.Imaging.UnsafeTools.Mean C# (CSharp) Method

Mean() public static method

Computes the mean pixel value within a given image region.
public static Mean ( byte src, int width, int height, int stride ) : double
src byte The image region.
width int The region width.
height int The region height.
stride int The image stride.
return double
        public static double Mean(byte* src, int width, int height, int stride)
        {
            return Sum(src, width, height, stride) / (double)(width * height);
        }