From 1df0010140c8ec833a619b084dec1fb124756d5b Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Fri, 18 Aug 2017 18:56:27 +0200 Subject: [PATCH] covered DetectEdges --- .../Processing/Processors/Convolution/DetectEdgesTest.cs | 8 +++++--- tests/Images/External | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/ImageSharp.Tests/Processing/Processors/Convolution/DetectEdgesTest.cs b/tests/ImageSharp.Tests/Processing/Processors/Convolution/DetectEdgesTest.cs index ee6650e55c..cdb48bdd2f 100644 --- a/tests/ImageSharp.Tests/Processing/Processors/Convolution/DetectEdgesTest.cs +++ b/tests/ImageSharp.Tests/Processing/Processors/Convolution/DetectEdgesTest.cs @@ -41,6 +41,7 @@ namespace ImageSharp.Tests.Processing.Processors.Convolution { image.Mutate(x => x.DetectEdges(detector)); image.DebugSave(provider, detector.ToString()); + image.CompareToReferenceOutput(provider, detector.ToString()); } } @@ -53,6 +54,7 @@ namespace ImageSharp.Tests.Processing.Processors.Convolution { image.Mutate(x => x.DetectEdges()); image.DebugSave(provider); + image.CompareToReferenceOutput(provider); } } @@ -73,16 +75,16 @@ namespace ImageSharp.Tests.Processing.Processors.Convolution public void DetectEdges_InBox(TestImageProvider provider) where TPixel : struct, IPixel { - using (Image source = provider.GetImage()) - using (Image image = source.Clone()) + using (Image image = provider.GetImage()) { var bounds = new Rectangle(10, 10, image.Width / 2, image.Height / 2); image.Mutate(x => x.DetectEdges(bounds)); image.DebugSave(provider); + image.CompareToReferenceOutput(provider); // TODO: We don't need this any longer after switching to ReferenceImages - ImageComparer.Tolerant().EnsureProcessorChangesAreConstrained(source, image, bounds); + //ImageComparer.Tolerant().EnsureProcessorChangesAreConstrained(source, image, bounds); } } } diff --git a/tests/Images/External b/tests/Images/External index 4929cbe0d7..b466db97b5 160000 --- a/tests/Images/External +++ b/tests/Images/External @@ -1 +1 @@ -Subproject commit 4929cbe0d743fe3c67a9b4d0c71fb3eed8b5537d +Subproject commit b466db97b501bcd12a7e366ee1d2d6a6e45eb2d0