Exemplo n.º 1
0
 /// <summary>
 /// 組織的ディザ法(渦巻き型)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の画像の2次元配列</returns>
 public static byte[,] SpiralDithering(byte[,] sourceImage)
 => ImageHalftoning.OrderedDithering(sourceImage, ImageHalftoning.SpiralMatrix4x4);
Exemplo n.º 2
0
 /// <summary>
 /// 組織的ディザ法(網点型)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の画像の2次元配列</returns>
 public static byte[,] HalftoneDithering(byte[,] sourceImage)
 => ImageHalftoning.OrderedDithering(sourceImage, ImageHalftoning.HalftoneMatrix4x4);
Exemplo n.º 3
0
 /// <summary>
 /// 誤差拡散法(Sierra Lite型)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の画像の2次元配列</returns>
 public static byte[,] SierraLiteDithering(byte[,] sourceImage)
 => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.SierraLiteDiffusionPattern, 1);
Exemplo n.º 4
0
 /// <summary>
 /// 組織的ディザ法(ベイヤー型)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の画像の2次元配列</returns>
 public static byte[,] BayerDithering(byte[,] sourceImage)
 => ImageHalftoning.OrderedDithering(sourceImage, ImageHalftoning.BayerMatrix4x4);
Exemplo n.º 5
0
 /// <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);
Exemplo n.º 6
0
 /// <summary>
 /// 誤差拡散法(Burkes型)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の画像の2次元配列</returns>
 public static byte[,] BurkesDithering(byte[,] sourceImage)
 => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.BurkesDiffusionPattern, 2);
Exemplo n.º 7
0
 /// <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);
Exemplo n.º 8
0
 /// <summary>
 /// 誤差拡散法(Floyd-Steinberg型)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の画像の2次元配列</returns>
 public static byte[,] FloydSteinbergDithering(byte[,] sourceImage)
 => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.FloydSteinbergDiffusionPattern, 1);
Exemplo n.º 9
0
 /// <summary>
 /// 誤差拡散法(教科書の数値)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の2次元配列</returns>
 public static byte[,] ErrorDiffusionDitheringDefault(byte[,] sourceImage)
 => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.ErrorDiffusionPatternDefault, 1);