<p>Sobel edge detection is pretty much the quintessential way to get edges out of an image. It however suffers from certain quirks.</p>
<p>One example is, because it's gradient, based certain surfaces exhibit weird appearances in certain saliency maps. For example, given a depth image, take a plane and start inclining it. You will notice that as the plane becomes more and more perpendicular to the view, a large section of it acquires a higher and higher gradient magnitude. Thus resulting in a major area of the plane being considered an edge by any thresholding mechanism. In other words, towards the horizon, the depth difference of ANY pair of adjacent pixels that contain a portion of the plane becomes significantly large, thus getting selected as edges, despite not being edges.</p>
<p>This also means that regions with bigger z differences tend to have bigger edges. Consider a sphere placed in front of a near plane vs a sphere placed in front of a far plane, both spheres at the same distance from the camera. If any interpolation filtering is active, then the sphere in the near plane has less pixels with large deltas than the one in the far plane thus its outline is bigger.</p>
<p>Canny addresses this problem by doing a per pixel local search and min maxing the gradient magnitude to guarantee a one pixel wide edge. However, this is not easily parrallelizable (not GPU friendly) and thus slow.</p>
<p>Are there other algorithms that maintain edge width that are more suitable for real time applications? The width doesn't have to be perfectly one pixel wide, rather I am just looking to reducing the standard deviation of the edge with.
They don;t have to be perge</p>

CC BY-SA 4.0
2020-08-01T07:12:29.047Z
Threshold the gradient magnitude, or use the zero crossings of the laplacian.
lightxbulb
CC BY-SA 4.0
2020-08-01T18:39:30.367Z
Thresholding the gradient magnitude is essentially sobel. : p
Makogan
CC BY-SA 4.0
2020-08-01T19:35:34.963Z
Well, no: https://en.wikipedia.org/wiki/Sobel_operator
lightxbulb
<image-processing><mathematics><edge-detection><gradient>
Are there algorithms besides Canny edge detection that can create consistent width edges?
Makogan
# Are there algorithms besides Canny edge detection that can create consistent width edges?

(Asked by: username_0 on 2020-07-31)

Sobel edge detection is pretty much the quintessential way to get edges out of an image. It however suffers from certain quirks.

One example is, because it's gradient, based certain surfaces exhibit weird appearances in certain saliency maps. For example, given a depth image, take a plane and start inclining it. You will notice that as the plane becomes more and more perpendicular to the view, a large section of it acquires a higher and higher gradient magnitude. Thus resulting in a major area of the plane being considered an edge by any thresholding mechanism. In other words, towards the horizon, the depth difference of ANY pair of adjacent pixels that contain a portion of the plane becomes significantly large, thus getting selected as edges, despite not being edges.

This also means that regions with bigger z differences tend to have bigger edges. Consider a sphere placed in front of a near plane vs a sphere placed in front of a far plane, both spheres at the same distance from the camera. If any interpolation filtering is active, then the sphere in the near plane has less pixels with large deltas than the one in the far plane thus its outline is bigger.

Canny addresses this problem by doing a per pixel local search and min maxing the gradient magnitude to guarantee a one pixel wide edge. However, this is not easily parrallelizable (not GPU friendly) and thus slow.

Are there other algorithms that maintain edge width that are more suitable for real time applications? The width doesn't have to be perfectly one pixel wide, rather I am just looking to reducing the standard deviation of the edge with.
They don;t have to be perge

**Tags:** image-processing, mathematics, edge-detection, gradient

> **Comments:**
> **username_1**: Threshold the gradient magnitude, or use the zero crossings of the laplacian.  
> **username_0**: Thresholding the gradient magnitude is essentially sobel. : p  
> **username_1**: Well, no: https://en.wikipedia.org/wiki/Sobel_operator  

---

## 0 answers

