public void TestPrewittFilter() { Bitmap or = GetImage.GetOriginalBitmap(); Bitmap whawewant = GetImage.GetBitmapFromFile("Prewitt.jpg"); Bitmap filtered = ExtBitmap.PrewittFilter(or, false); Assert.IsTrue(GetImage.Equals(filtered, whawewant)); }
public void TestLaplacian_5x5() { Bitmap or = GetImage.GetOriginalBitmap(); Bitmap whawewant = GetImage.GetBitmapFromFile("Laplacian_5x5.jpg"); Bitmap filtered = ExtBitmap.Laplacian5x5Filter(or, false); Assert.IsTrue(GetImage.Equals(filtered, whawewant)); }
public void TestKirschFilterGrayScale() { Bitmap or = GetImage.GetOriginalBitmap(); Bitmap whawewant_but_in_gray = GetImage.GetBitmapFromFile("KirschGrayscale.jpg"); Bitmap filtered_but_in_gray = ExtBitmap.KirschFilter(or, true); Assert.IsTrue(GetImage.Equals(filtered_but_in_gray, whawewant_but_in_gray)); }
public void TestHellFilter() { Bitmap or = GetImage.GetOriginalBitmap(); Bitmap whawewant = GetImage.GetBitmapFromFile("HellFilter.jpg"); HellFilter hf = new HellFilter(); Bitmap filtered = hf.Apply(or); Assert.IsTrue(GetImage.Equals(filtered, whawewant)); }