Merged
Conversation
dlemstra
reviewed
Aug 1, 2020
Codecov Report
@@ Coverage Diff @@
## master #1299 +/- ##
==========================================
+ Coverage 82.70% 82.71% +0.01%
==========================================
Files 697 692 -5
Lines 30677 30718 +41
Branches 3470 3474 +4
==========================================
+ Hits 25370 25409 +39
+ Misses 4604 4603 -1
- Partials 703 706 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Member
Author
|
Perfect @dalingrin I’m glad I was able to improve matters. |
Member
Author
|
@SixLabors/core I'm going to merge this unless anyone objects. I'm very happy with it. |
This was referenced Jul 30, 2025
This was referenced Jul 30, 2025
This was referenced Oct 3, 2025
This was referenced Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
As discussed in #1297 It's not currently possible to implement your own custom edge detection kernels.
This goes against the nature of the API and as such I deem it necessary to refactor the API to allow extensibility. This is a breaking change.
The API has been refactored to expose three structs representing three types of edge detection kernels.
EdgeDetectorKernelContains a single 2D XY kernel.EdgeDetector2DKernelContains two separable 1D kernels.EdgeDetectorCompassKernelContains eight kernels representing each point on the compass.A new static class
KnownEdgeDetectorKernelsreplaces the current enumEdgeDetectionOperators.Individual edge detection processors
SobelProcessoretc have been replaced with versions representing each of the three kernel types.The resulting code is much simpler and more powerful allowing users to implement any series of gradient operators they require.