Accord.Tests.Imaging.BorderFollowingTest.FindContourTest3 C# (CSharp) Метод

FindContourTest3() приватный Метод

private FindContourTest3 ( ) : void
Результат void
        public void FindContourTest3()
        {
            Bitmap image = Accord.Imaging.Image.Clone(Properties.Resources.sample_black);
            Bitmap grayscaleImage = Grayscale.CommonAlgorithms.BT709.Apply(image);

            // Create a new border following algorithm
            BorderFollowing borderFollowing = new BorderFollowing();

            // Get all points in the contour of the image. 
            List<IntPoint> contour = borderFollowing.FindContour(grayscaleImage);

            // Mark all points in the contour point list in blue
            new PointsMarker(contour, Color.Blue).ApplyInPlace(image);

            // Show the result
            // ImageBox.Show(image);

            Assert.AreEqual(380, contour.Count);
        }