Exemple #1
0
 /// <summary>
 /// 組織的ディザ法(渦巻き型)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の画像の2次元配列</returns>
 public static byte[,] SpiralDithering(byte[,] sourceImage)
 => ImageHalftoning.OrderedDithering(sourceImage, ImageHalftoning.SpiralMatrix4x4);
Exemple #2
0
 /// <summary>
 /// 組織的ディザ法(網点型)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の画像の2次元配列</returns>
 public static byte[,] HalftoneDithering(byte[,] sourceImage)
 => ImageHalftoning.OrderedDithering(sourceImage, ImageHalftoning.HalftoneMatrix4x4);
Exemple #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);
Exemple #4
0
 /// <summary>
 /// 組織的ディザ法(ベイヤー型)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の画像の2次元配列</returns>
 public static byte[,] BayerDithering(byte[,] sourceImage)
 => ImageHalftoning.OrderedDithering(sourceImage, ImageHalftoning.BayerMatrix4x4);
Exemple #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);
Exemple #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);
Exemple #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);
Exemple #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);
Exemple #9
0
 /// <summary>
 /// 誤差拡散法(教科書の数値)
 /// </summary>
 /// <param name="sourceImage">画像の2次元配列</param>
 /// <returns>結果の2次元配列</returns>
 public static byte[,] ErrorDiffusionDitheringDefault(byte[,] sourceImage)
 => ImageHalftoning.ErrorDiffusionDithering(sourceImage, ImageHalftoning.ErrorDiffusionPatternDefault, 1);