public static double Mean(byte* src, int width, int height, int stride) { return Sum(src, width, height, stride) / (double)(width * height); }