Example #1
0
        public void TestEvaluateAllLines()
        {
            var pix   = new Pix(@"Tests\Barcode_Test01_linesevaluation.bmp");
            var lines = pix.EvaluateAllLines().ToArray();

            Assert.AreEqual(20 * 3 * 255, lines[0]);
            Assert.AreEqual(19 * 3 * 255, lines[1]);
            Assert.AreEqual(18 * 3 * 255, lines[2]);
            Assert.AreEqual(17 * 3 * 255, lines[3]);
            Assert.AreEqual(16 * 3 * 255, lines[4]);
            Assert.AreEqual(15 * 3 * 255, lines[5]);
            Assert.AreEqual(14 * 3 * 255, lines[6]);
            Assert.AreEqual(13 * 3 * 255, lines[7]);
            Assert.AreEqual(13 * 3 * 255, lines[8]);
            Assert.AreEqual(13 * 3 * 255, lines[9]);
            Assert.AreEqual(13 * 3 * 255, lines[10]);
            Assert.AreEqual(20 * 3 * 255, lines[11]);
        }