Ejemplo n.º 1
0
        public void AddOutline(byte[,] original, int dX, int dY, byte[,] expected)
        {
            var actual = ImageProcessor.AddOutline(original, dX, dY);

            CollectionAssert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
 static void ShowBorderOnImage(Bitmap picture, Point[] points, string fileFolder, string name, string comment)
 {
     SaveBitmap(ImageProcessor.GetBorderMask(points, picture.Width, picture.Height), fileFolder, name, "border mask " + comment);
     SaveBitmap(ImageProcessor.HighlightBorder(picture, points, true), fileFolder, name, "border " + comment);
 }