pixels
public static double[,] pixels;
[...]p_bmp = (Bitmap)Image.FromFile("C:\\Glasplatte\\TEST.tiff");pixels = new double[p_bmp.Width, p_bmp.Height];double val = CALC_BRIGHTNESS(p_bmp);[...]
System.IndexOutOfRangeException: Index was outside the bounds of the array...
int bytes = Math.Abs(stride) * tmpBmp.Height;
p[idx +2]