예제 #1
0
        public Bitmap FilterImage(Bitmap img)
        {
            RemoveColors(img);

            var filteredImg = RemovePointsText(img);

            return(CommaRemover.RemoveComma(filteredImg));
        }
        public void CanRemoveCommas()
        {
            var twoComma = new Bitmap(Images.TwoCommas);
            var expected = new Bitmap(Images.TwoCommasNoComma);

            Bitmap actual = new CommaRemover().RemoveComma(twoComma);

            for (int i = 0; i < expected.Width; i++)
            {
                for (int j = 0; j < expected.Height; j++)
                {
                    Assert.That(expected.GetPixel(i, j).IsAlmost(actual.GetPixel(i, j)));
                }
            }
        }
예제 #3
0
 public ImageFilterer()
 {
     CommaRemover = new CommaRemover();
 }
예제 #4
0
 public ImageFilterer()
 {
     CommaRemover = new CommaRemover();
 }