public static void RgbToGray(RGB source, RGB dest)
 {
     RgbToGray(source, dest, GrayscaleStyle.BT907);
 }
 private static byte GetGray(RGB rgb, int[] coefficient)
 {
     return((byte)((((rgb.R * coefficient[0]) + (rgb.G * coefficient[1])) + (rgb.B * coefficient[2])) / coefficient[3]));
 }