Ejemplo n.º 1
0
 public void Grayscale_VaryingBitColorDepths_ShouldSucceed(string expectedFile, string actualFile)
 {
     using (Bitmap expected = new Bitmap(Image.FromFile(expectedFile)))
         using (SUT.FastBitmap actual = SUT.FastBitmap.FromFile(actualFile))
         {
             TestUtil.AssertContentsEqual(expected, actual.ToGrayscale().Content);
         }
 }
Ejemplo n.º 2
0
 public void RadonTransform_ValidBitmap_ShouldSucceed()
 {
     using (SUT.FastBitmap input = SUT.FastBitmap.FromFile(FastBitmap.TestData1_KnownGood))
     {
         SUT.FastBitmap actual = input.ToGrayscale().Blur(1f, 5);
         actual = actual.ScaleBy(actual.Max()).Pow(2);
         actual.Content.Save("testing_before.png");
         actual.RadonTransform(actual.Content.Width).Transform.Content.Save("testing_after.png");
     }
 }