Top Banner
Edge detection using Hough Transform Presented by: Mrunal K. Selokar [2013BCS065] Suraj A. Bobade [2013BCS072]
19

Edge Detection using Hough Transform

Feb 09, 2017

Download

Education

mrunal_selokar
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Edge Detection using Hough Transform

Edge detection using Hough Transform

Presented by:Mrunal K. Selokar [2013BCS065]Suraj A. Bobade [2013BCS072]

Page 2: Edge Detection using Hough Transform

Hough transform

Page 3: Edge Detection using Hough Transform

Objective:

Page 4: Edge Detection using Hough Transform

• O/p of edge detection: valid edge points.• Previous techniques for edge linking:

Local processing: we should know position of straight lines.

Region processing: We should have knowledge about region of interest to find out boundaries.

• Limitation: we should have knowledge about patterns prior to apply edge linking which is not possible in every situations.

• Solution?? Hough transform.

Edge Detection and boundary linking Hough Transform

Page 5: Edge Detection using Hough Transform

• Hough transform: a way of finding edge points in an image that lie along a straight line or curve.

Page 6: Edge Detection using Hough Transform
Page 7: Edge Detection using Hough Transform

Haugh Transform• Steps:• Consider one valid edge point (xi,yi) in xy-plane &

the equation of line passing through it can be,

• As it is a point, infinite lines will be passing through it given by above equation & different values of a & b.

• We can write this equation as,

which gives us a line in ab-plane(parameter plane) passing through fixed pair (xi,yi).

baxy ii

ii yaxb

Page 8: Edge Detection using Hough Transform
Page 9: Edge Detection using Hough Transform

Haugh Transform• Next, we will consider 2nd valid edge point (xj,yj)

and find out equation in parameter plane. It will be,

• If these 2 points lies on a st line in xy-plane, then the two lines in parameter plane will intersect at point(a’,b’) where, a’ is slope and b’ is intercept of line passing through 2 points (xi,yi) and (xj,yj) in xy-plane.

jj yaxb

Page 10: Edge Detection using Hough Transform
Page 11: Edge Detection using Hough Transform

• What is the drawback???• Slope (a) will be infinite in case of vertical lines.• Example:

If 2 valid points are (3,1) and (3,2)Line eq in ab-plane will be,(3,1)b=-3a+1 & (3,2) b=-3a+2Here, slope of 2 lines is equal, hence they are parallel in

ab-plane. We can not find point of intersection which gives us slope

and intercept i.e a’ and b’ of line passing through (3,1) and (3,2) in xy-plane.

• Solution???

Haugh Transform

Page 12: Edge Detection using Hough Transform

Haugh Transform• Solution: use equation,

e.g.• For horizontal line theta0rho+ve x-intercept.• for vertical line, theta90 degreerho+ve y-intercept

sincos yx

Page 13: Edge Detection using Hough Transform

• & gives two sine waves on -plane.

• intersection pt (’, ’) corresponds to line passing through both the pts in xy-plane.

sincos ii yx sincos jj yx

Page 14: Edge Detection using Hough Transform
Page 15: Edge Detection using Hough Transform

The intersection of the curves corresponding to

points 1,3,5(’, ’)=(0,-45)

2,3,4(’,

’)=(D/2,45)(’,

’)=((71,45)1,4

1,2

resolution of image101 X 101D= 142.

range of -90 to +90range of -D to +D , D max dist between 2 opposite corner of image

Page 16: Edge Detection using Hough Transform

3.5 Line Detection by Hough Transform

EE63

58 -

Com

pute

r Visi

on

16

Page 17: Edge Detection using Hough Transform

EE6358 - Computer Vision 17

Parameters for analytic curves

Analytic Form Parameters Equation

Line , xcos+ysin=

Circle x0, y0, (x-xo)2+(y-y0)2=r2

Parabola x0, y0, , (y-y0)2=4(x-xo)

Ellipse x0, y0, a, b, (x-xo)2/a2+(y-y0)2/b2=1

Page 18: Edge Detection using Hough Transform
Page 19: Edge Detection using Hough Transform

Thank You !