Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pruning short line segments from edge detector output?

I am looking for an algorithm to prune short line segments from the output of an edge detector. As can be seen in the image (and link) below, there are several small edges detected that aren't "long" lines. Ideally I'd like just the 4 sides of the quadrangle to show up after processing, but if there are a couple of stray lines, it won't be a big deal... Any suggestions?

Example

Image Link

like image 928
user21293 Avatar asked Sep 22 '09 19:09

user21293


People also ask

Is edge detection segmented?

Edge detection is a part of image segmentation. The effectiveness of many image processing also computer vision tasks depends on the perfection of detecting meaningful edges. It is one of the techniques for detecting intensity discontinuities in a digital image.

Which is the best method for edge detection?

Canny Edge Detection This is the most commonly used highly effective and complex compared to many other methods. It is a multi-stage algorithm used to detect/identify a wide range of edges. Reduce noise – as the edge detection that using derivatives is sensitive to noise, we reduce it.

What is threshold in edge detection?

Index Terms— Colour images Edge detection, threshold Image segmentation is the process of partitioning/ subdividing a digital image into multiple meaningful regions or sets of pixels regions with respect to a particular application [1].

What are the differences between line and edge detection?

Edge detection is the process of finding outlines in an image, whatever they look like. Line detection finds line segments (sometimes by extension, other geometric figures such as circular arcs).


1 Answers

Before finding the edges pre-process the image with an open or close operation (or both), that is, erode followed by dilate, or dilate followed by erode. this should remove the smaller objects but leave the larger ones roughly the same.

I've looked for online examples, and the best I could find was on page 41 of this PDF.

like image 177
tom10 Avatar answered Oct 13 '22 21:10

tom10