0% found this document useful (0 votes)
12 views1 page

Image Processing 38 Page-10

Uploaded by

rohansaha1649
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Image Processing 38 Page-10

Uploaded by

rohansaha1649
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

IP: Page 10 of 38

The Hough Transform is a global method used to detect straight lines (and other shapes) in
an image by representing lines in a parametric space. Instead of working directly in the
image space, it maps each edge point into a line representation in parameter space.
Steps to Detect Straight Lines:
1. Edge Detection: Apply an edge detection algorithm (like Sobel or Canny) to highlight
edges in the image.
2. Line Parameterization: Represent a straight line in polar coordinates:

r = xcos(θ)+ysin(θ)

Where: r is the distance from the origin to the line. & θ is the angle the line makes with the
x-axis.
3. Hough Space Voting: Each edge pixel votes for all possible (r,θ) that pass through it.
These votes are accumulated in a 2D accumulator array.
4. Line Detection: Peaks in the accumulator array correspond to lines in the image, as these
indicate the most likely (r,θ) values for detected lines.
Advantages of Hough Transform:

 Robust to Noise: Detects lines even with gaps or noise in edges.


 Global Method: Considers all edge points simultaneously, unlike local edge detection
methods that may miss faint or broken lines.

14.Describe the difference between smoothing and sharpening spatial filters.


Provide an example of each.

You might also like