/// <summary> /// 組織的ディザ法(渦巻き型) /// </summary> /// <param name="sourceImage">画像の2次元配列</param> /// <returns>結果の画像の2次元配列</returns> public static byte[,] SpiralDithering(byte[,] sourceImage) => ImageHalftoning.OrderedDithering(sourceImage, ImageHalftoning.SpiralMatrix4x4);
/// <summary> /// 組織的ディザ法(網点型) /// </summary> /// <param name="sourceImage">画像の2次元配列</param> /// <returns>結果の画像の2次元配列</returns> public static byte[,] HalftoneDithering(byte[,] sourceImage) => ImageHalftoning.OrderedDithering(sourceImage, ImageHalftoning.HalftoneMatrix4x4);
/// <summary> /// 誤差拡散法(Sierra Lite型) /// </summary> /// <param name="sourceImage">画像の2次元配列</param> /// <returns>結果の画像の2次元配列</returns> public static byte[,] SierraLiteDithering(byte[,] sourceImage) => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.SierraLiteDiffusionPattern, 1);
/// <summary> /// 組織的ディザ法(ベイヤー型) /// </summary> /// <param name="sourceImage">画像の2次元配列</param> /// <returns>結果の画像の2次元配列</returns> public static byte[,] BayerDithering(byte[,] sourceImage) => ImageHalftoning.OrderedDithering(sourceImage, ImageHalftoning.BayerMatrix4x4);
/// <summary> /// 誤差拡散法(Two-Row Sierra型) /// </summary> /// <param name="sourceImage">画像の2次元配列</param> /// <returns>結果の画像の2次元配列</returns> public static byte[,] TwoRowSierraDithering(byte[,] sourceImage) => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.TwoRowSierraDiffusionPattern, 2);
/// <summary> /// 誤差拡散法(Burkes型) /// </summary> /// <param name="sourceImage">画像の2次元配列</param> /// <returns>結果の画像の2次元配列</returns> public static byte[,] BurkesDithering(byte[,] sourceImage) => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.BurkesDiffusionPattern, 2);
/// <summary> /// 誤差拡散法(Jarvis, Judice & Ninke型) /// </summary> /// <param name="sourceImage">画像の2次元配列</param> /// <returns>結果の画像の2次元配列</returns> public static byte[,] JarvisJudiceNinkeDithering(byte[,] sourceImage) => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.JarvisJudiceNinkeDiffusionPattern, 2);
/// <summary> /// 誤差拡散法(Floyd-Steinberg型) /// </summary> /// <param name="sourceImage">画像の2次元配列</param> /// <returns>結果の画像の2次元配列</returns> public static byte[,] FloydSteinbergDithering(byte[,] sourceImage) => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.FloydSteinbergDiffusionPattern, 1);
/// <summary> /// 誤差拡散法(教科書の数値) /// </summary> /// <param name="sourceImage">画像の2次元配列</param> /// <returns>結果の2次元配列</returns> public static byte[,] ErrorDiffusionDitheringDefault(byte[,] sourceImage) => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.ErrorDiffusionPatternDefault, 1);