HOUGH TRANSFORM & Line Fitting. 2 1. Introduction  HT performed after Edge Detection  It is a technique to isolate the curves of a given shape / shapes.

Slides:



Advertisements
Similar presentations
Hough Transforms CSE 6367 – Computer Vision Vassilis Athitsos University of Texas at Arlington.
Advertisements

Fitting: The Hough transform. Voting schemes Let each feature vote for all the models that are compatible with it Hopefully the noise features will not.
Hough Transform Reading Watt, An edge is not a line... How can we detect lines ?
Segmentation (2): edge detection
Fitting: The Hough transform
Lecture 5 Hough transform and RANSAC
1 Model Fitting Hao Jiang Computer Science Department Oct 8, 2009.
Computer Vision - A Modern Approach Set: Fitting Slides by D.A. Forsyth Fitting Choose a parametric object/some objects to represent a set of tokens Most.
GENERALIZED HOUGH TRANSFORM. Recap on classical Hough Transform 1.In detecting lines – The parameters  and  were found out relative to the origin (0,0)
Object Recognition A wise robot sees as much as he ought, not as much as he can Search for objects that are important lamps outlets wall corners doors.
Fitting a Model to Data Reading: 15.1,
Moments area of the object center of mass  describe the image content (or distribution) with respect to its axes.
CS 376b Introduction to Computer Vision 04 / 14 / 2008 Instructor: Michael Eckmann.
CS 376b Introduction to Computer Vision 04 / 15 / 2008 Instructor: Michael Eckmann.
3-D Computer Vision CSc Feature Detection and Grouping.
Robust estimation Problem: we want to determine the displacement (u,v) between pairs of images. We are given 100 points with a correlation score computed.
Hough Transform (Section 10.2) CS474/67. Edge Linking and Boundary Detection Edge detection does not yield connected boundaries. Edge linking and boundary.
Fitting.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
Hough Transform on the GPU Presented by Javier Garcia November 29, 2010.
Computer Vision More Image Features Hyunki Hong School of Integrative Engineering.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Fitting: The Hough transform. Voting schemes Let each feature vote for all the models that are compatible with it Hopefully the noise features will not.
HOUGH TRANSFORM Presentation by Sumit Tandon
Hough Transform : A preliminary study Indranil Das HEP Devn., SINP.
Fitting : Voting and the Hough Transform Monday, Feb 14 Prof. Kristen Grauman UT-Austin.
Generalized Hough Transform
CSSE463: Image Recognition Day 25 This week This week Today: Finding lines and circles using the Hough transform (Sonka 6.26) Today: Finding lines and.
Lecture 08 Detecting Shape Using Hough Transform Lecture 08 Detecting Shape Using Hough Transform Mata kuliah: T Computer Vision Tahun: 2010.
CS654: Digital Image Analysis Lecture 25: Hough Transform Slide credits: Guillermo Sapiro, Mubarak Shah, Derek Hoiem.
Fitting: The Hough transform
Session 2 – Hough Transformation Ashay Tejwani. Video Processing In the last session we saw that an image can be represented by an array of RGB values.
EECS 274 Computer Vision Model Fitting. Fitting Choose a parametric object/some objects to represent a set of points Three main questions: –what object.
Fitting Thursday, Sept 24 Kristen Grauman UT-Austin.
Object Detection 01 – Basic Hough Transformation JJCAO.
Hough Transform Procedure to find a shape in an image Shape can be described in parametric form Shapes in image correspond to a family of parametric solutions.
October 16, 2014Computer Vision Lecture 12: Image Segmentation II 1 Hough Transform The Hough transform is a very general technique for feature detection.
Image Segmentation Image segmentation (segmentace obrazu)
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
EDGE DETECTION Presentation by Sumit Tandon Department of Electrical Engineering University of Texas at Arlington Course # EE6358 Computer Vision.
Hough Transform. Introduction The Hough Transform is a general technique for extracting geometrical primitives from e.g. edge data Performed after Edge.
Detecting Image Features: Corner. Corners Given an image, denote the image gradient. C is symmetric with two positive eigenvalues. The eigenvalues give.
Hough Transform CS 691 E Spring Outline Hough transform Homography Reading: FP Chapter 15.1 (text) Some slides from Lazebnik.
Object Recognition. Segmentation –Roughly speaking, segmentation is to partition the images into meaningful parts that are relatively homogenous in certain.
: Chapter 13: Finding Basic Shapes 1 Montri Karnjanadecha ac.th/~montri Image Processing.
1 Hough Transform. 2 A Technique to Isolate Features of a Particular Shape within an Image The classical Hough transform is most commonly used for the.
Grouping and Segmentation. Sometimes edge detectors find the boundary pretty well.
HOUGH TRANSFORM.
CSSE463: Image Recognition Day 26
Segmentation by fitting a model: Hough transform and least squares
Fitting: Voting and the Hough Transform
Fitting.
Detection of discontinuity using
Fitting: The Hough transform
Exercise Class 11: Robust Tecuniques RANSAC, Hough Transform
Fitting Curve Models to Edges
Image Processing, Leture #12
Computer Vision - A Modern Approach
Hough Transform COMP 4900C Winter 2008.
CSSE463: Image Recognition Day 26
CSSE463: Image Recognition Day 26
Hough Transform.
Outline Announcement Perceptual organization, grouping, and segmentation Hough transform Read Chapter 17 of the textbook File: week14-m.ppt.
CSSE463: Image Recognition Day 27
CSSE463: Image Recognition Day 26
Finding Basic Shapes Hough Transforms
CSSE463: Image Recognition Day 26
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
Presentation transcript:

HOUGH TRANSFORM & Line Fitting

2 1. Introduction  HT performed after Edge Detection  It is a technique to isolate the curves of a given shape / shapes in a given image  Classical Hough Transform can locate regular curves like straight lines, circles, parabolas, ellipses, etc. Requires that the curve be specified in some parametric form  Generalized Hough Transform can be used where a simple analytic description of feature is not possible

3 2. Advantages of Hough Transform  The Hough Transform is tolerant of gaps in the edges  It is relatively unaffected by noise  It is also unaffected by occlusion in the image

4 3.1 Hough Transform for Straight Line Detection  A straight line can be represented as y = mx + c This representation fails in case of vertical lines  A more useful representation in this case is  Demo

5 3.2 Hough Transform for Straight Lines  Advantages of Parameterization Values of ‘’ and ‘’ become bounded  How to find intersection of the parametric curves Use of accumulator arrays – concept of ‘Voting’ To reduce the computational load use Gradient information

6 3.3 Computational Load  Image size = 512 X 512  Maximum value of  With a resolution of 1 o, maximum value of  Accumulator size =  Use of direction of gradient reduces the computational load by 1/360

7 3.4 Hough Transform for Straight Lines - Algorithm  Quantize the Hough Transform space: identify the maximum and minimum values of  and   Generate an accumulator array A(, ); set all values to zero  For all edge points (x i, y i ) in the image Use gradient direction for  Compute  from the equation Increment A(, ) by one  For all cells in A(, ) Search for the maximum value of A(, ) Calculate the equation of the line  To reduce the effect of noise more than one element (elements in a neighborhood) in the accumulator array are increased

8 3.5 Line Detection by Hough Transform

9 3.6 Example

Hough Transform for Detection of Circles  The parametric equation of the circle can be written as  The equation has three parameters – a, b, r  The curve obtained in the Hough Transform space for each edge point will be a right circular cone  Point of intersection of the cones gives the parameters a, b, r

Hough Transform for Circles  Gradient at each edge point is known  We know the line on which the center will lie  If the radius is also known then center of the circle can be located

Detection of circle by Hough Transform - example Original ImageCircles detected by Canny Edge Detector

Detection of circle by Hough Transform - contd Hough Transform of the edge detected image Detected Circles

Recap  In detecting lines The parameters  and  were found out relative to the origin (0,0)  In detecting circles The radius and center were found out  In both the cases we have knowledge of the shape  We aim to find out its location and orientation in the image  The idea can be extended to shapes like ellipses, parabolas, etc.

Example 15

Example 16

Noise? 17

Line Fitting 18 Line fitting can be max. likelihood - but choice of model is important

RANSAC  Choose a small subset uniformly at random  Fit to that  Anything that is close to result is signal; all others are noise  Refit  Do this many times and choose the best  Issues How many times?  Often enough that we are likely to have a good line How big a subset?  Smallest possible What does close mean?  Depends on the problem What is a good line?  One where the number of nearby points is so big it is unlikely to be all outliers

23 References  Generalizing The Hough Transform to Detect Arbitrary Shapes – D H Ballard – 1981  Spatial Decomposition of The Hough Transform – Heather and Yang – IEEE computer Society – May 2005  Hypermedia Image Processing Reference 2 –  Machine Vision – Ramesh Jain, Rangachar Kasturi, Brian G Schunck, McGraw-Hill, 1995  Machine Vision - Wesley E. Snyder, Hairong Qi, Cambridge University Press, 2004  HOUGH TRANSFORM, Presentation by Sumit Tandon, Department of Electrical Eng., University of Texas at Arlington.  Computer Vision - A Modern Approach, Set: Fitting, Slides by D.A. Forsyth