M 011 / 18301 Edge & Featuresalgorithm output

Hough Line Transform

edge & feature detection

Typeface · Rajdhani

Real-world algorithm demonstration, applied to a NASA portrait.
Real-world algorithm demonstration, applied to a NASA portrait.Image: NASA / Eileen Collins · scikit-image (public domain)View source ↗

Prompt

Apply a Hough Line Transform visualization over a slightly dimmed version of the photograph. Overlay thin, saturated red, cyan, and yellow straight segments aligned precisely with existing linear boundaries. Highlight dominant architectural or geometric directions without tracing curves or adding arbitrary lines. Keep the original subject and composition.

Identify

Straight lines in the image are overlaid as colorful segments.

Principle

The Hough transform is optimized for lines in the parameter space1.

Try it out

Set different minimum lengths and gaps2.

Classification

Calculated image processing result.

Further examples · 7 images

HoughSpace2D
02 HoughSpace2DA diagram showing points in image space mapped to sinusoidal curves in Hough parameter space. The intersection points indicate the parameters of the straight line passing through the original points.No machine-readable author provided. NekoJaNekoJa~commonswiki assumed (based on copyright claims). · CC BY-SA 3.0 · Wikimedia Commons
Hough transform diagram
03 Hough transform diagramThe graphic demonstrates the relationship between lines in an image and their polar coordinate representation. It illustrates how the distance and angle parameters define lines during the transform process.Derfopps · CC BY 4.0 · Wikimedia Commons
Hough-example-result-en
04 Hough-example-result-enThe image displays two intersecting lines and their corresponding accumulator space representation. The bright spots in the right panel highlight where votes concentrate to identify the linear features.Daf-de · CC BY 2.5 · Wikimedia Commons
Hough sample
05 Hough sampleThis educational diagram plots discrete points on a line and shows their individual sinusoids in Hough space. It demonstrates how collinear points generate curves that intersect at a single coordinate.Original uploader was Nico73 at fr.wikipedia · LGPL · Wikimedia Commons
Ej1 matlab
06 Ej1 matlabA source photo of a gantry crane is displayed above its corresponding Hough transform. The parameter space plot shows peaks representing the dominant lines detected in the structural geometry of the crane.Laura.cotrina · CC BY-SA 3.0 · Wikimedia Commons
AI illustration: A building is overlaid with a grid of purple and green lines
07 AI illustration: A building is overlaid with a grid of purple and green linesA building is overlaid with a grid of purple and green lines. These segments trace the architectural edges, demonstrating how the transform detects and highlights linear structures within a digital image.Illustration generated for the Atlas (AI)