Ejemplo n.º 1
0
            public void ShouldReturnTheConvexHull()
            {
                using (var image = new MagickImage(Files.Builtin.Logo))
                {
                    var coordinates = image.ConvexHull();
                    Assert.Equal(29, coordinates.Count());

                    var coordinate = coordinates.Skip(10).First();
                    Assert.Equal(537, coordinate.X);
                    Assert.Equal(465, coordinate.Y);
                }
            }