|
|
|
@ -13,35 +13,35 @@ namespace ImageProcessor.Tests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<string, IImageProcessor> Filters = new TheoryData<string, IImageProcessor> |
|
|
|
{ |
|
|
|
//{ "Brightness-50", new Brightness(50) },
|
|
|
|
//{ "Brightness--50", new Brightness(-50) },
|
|
|
|
//{ "Contrast-50", new Contrast(50) },
|
|
|
|
//{ "Contrast--50", new Contrast(-50) },
|
|
|
|
//{ "BackgroundColor", new BackgroundColor(new Color(243 / 255f, 87 / 255f, 161 / 255f))},
|
|
|
|
//{ "Blend", new Blend(new Image(File.OpenRead("TestImages/Formats/Bmp/Car.bmp")),50)},
|
|
|
|
//{ "Saturation-50", new Saturation(50) },
|
|
|
|
//{ "Saturation--50", new Saturation(-50) },
|
|
|
|
//{ "Alpha--50", new Alpha(50) },
|
|
|
|
//{ "Invert", new Invert() },
|
|
|
|
//{ "Sepia", new Sepia() },
|
|
|
|
//{ "BlackWhite", new BlackWhite() },
|
|
|
|
//{ "Lomograph", new Lomograph() },
|
|
|
|
//{ "Polaroid", new Polaroid() },
|
|
|
|
//{ "Kodachrome", new Kodachrome() },
|
|
|
|
//{ "GreyscaleBt709", new GreyscaleBt709() },
|
|
|
|
//{ "GreyscaleBt601", new GreyscaleBt601() },
|
|
|
|
//{ "Kayyali", new Kayyali() },
|
|
|
|
//{ "Kirsch", new Kirsch() },
|
|
|
|
//{ "Laplacian3X3", new Laplacian3X3() },
|
|
|
|
//{ "Laplacian5X5", new Laplacian5X5() },
|
|
|
|
//{ "LaplacianOfGaussian", new LaplacianOfGaussian() },
|
|
|
|
//{ "Prewitt", new Prewitt() },
|
|
|
|
//{ "RobertsCross", new RobertsCross() },
|
|
|
|
//{ "Scharr", new Scharr() },
|
|
|
|
//{ "Sobel", new Sobel {Greyscale = true} },
|
|
|
|
{ "Brightness-50", new Brightness(50) }, |
|
|
|
{ "Brightness--50", new Brightness(-50) }, |
|
|
|
{ "Contrast-50", new Contrast(50) }, |
|
|
|
{ "Contrast--50", new Contrast(-50) }, |
|
|
|
{ "BackgroundColor", new BackgroundColor(new Color(243 / 255f, 87 / 255f, 161 / 255f))}, |
|
|
|
{ "Blend", new Blend(new Image(File.OpenRead("TestImages/Formats/Bmp/Car.bmp")),50)}, |
|
|
|
{ "Saturation-50", new Saturation(50) }, |
|
|
|
{ "Saturation--50", new Saturation(-50) }, |
|
|
|
{ "Alpha--50", new Alpha(50) }, |
|
|
|
{ "Invert", new Invert() }, |
|
|
|
{ "Sepia", new Sepia() }, |
|
|
|
{ "BlackWhite", new BlackWhite() }, |
|
|
|
{ "Lomograph", new Lomograph() }, |
|
|
|
{ "Polaroid", new Polaroid() }, |
|
|
|
{ "Kodachrome", new Kodachrome() }, |
|
|
|
{ "GreyscaleBt709", new GreyscaleBt709() }, |
|
|
|
{ "GreyscaleBt601", new GreyscaleBt601() }, |
|
|
|
{ "Kayyali", new Kayyali() }, |
|
|
|
{ "Kirsch", new Kirsch() }, |
|
|
|
{ "Laplacian3X3", new Laplacian3X3() }, |
|
|
|
{ "Laplacian5X5", new Laplacian5X5() }, |
|
|
|
{ "LaplacianOfGaussian", new LaplacianOfGaussian() }, |
|
|
|
{ "Prewitt", new Prewitt() }, |
|
|
|
{ "RobertsCross", new RobertsCross() }, |
|
|
|
{ "Scharr", new Scharr() }, |
|
|
|
{ "Sobel", new Sobel {Greyscale = true} }, |
|
|
|
{ "Pixelate", new Pixelate(8) }, |
|
|
|
//{ "GuassianBlur", new GuassianBlur(10) },
|
|
|
|
//{ "GuassianSharpen", new GuassianSharpen(10) }
|
|
|
|
{ "GuassianBlur", new GuassianBlur(10) }, |
|
|
|
{ "GuassianSharpen", new GuassianSharpen(10) } |
|
|
|
}; |
|
|
|
|
|
|
|
[Theory] |
|
|
|
|