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))); } } }
public ImageFilterer() { CommaRemover = new CommaRemover(); }