public void AddOutline(byte[,] original, int dX, int dY, byte[,] expected) { var actual = ImageProcessor.AddOutline(original, dX, dY); CollectionAssert.AreEqual(expected, actual); }
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); }