CSSE463: Image Recognition Day 26

Slides:



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

Hough Transform Reading Watt, An edge is not a line... How can we detect lines ?
Uncertainty Representation. Gaussian Distribution variance Standard deviation.
Lecture 5 Hough transform and RANSAC
1 Model Fitting Hao Jiang Computer Science Department Oct 6, 2009.
CS 376b Introduction to Computer Vision 04 / 11 / 2008 Instructor: Michael Eckmann.
Announcements Mailing list: –you should have received messages Project 1 out today (due in two weeks)
GENERALIZED HOUGH TRANSFORM. Recap on classical Hough Transform 1.In detecting lines – The parameters  and  were found out relative to the origin (0,0)
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Edges and Lines Readings: Chapter 10:
Fitting a Model to Data Reading: 15.1,
CS 376b Introduction to Computer Vision 04 / 14 / 2008 Instructor: Michael Eckmann.
Stockman MSU/CSE Fall 2009 Finding region boundaries.
CS 376b Introduction to Computer Vision 04 / 15 / 2008 Instructor: Michael Eckmann.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
1 Lines and Arcs Segmentation In some image sets, lines, curves, and circular arcs are more useful than regions or helpful in addition to regions. Lines.
כמה מהתעשייה? מבנה הקורס השתנה 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.
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 & Line Fitting Introduction  HT performed after Edge Detection  It is a technique to isolate the curves of a given shape / shapes.
Fitting : Voting and the Hough Transform Monday, Feb 14 Prof. Kristen Grauman UT-Austin.
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
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
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.
Lecture 10: Lines from Edges, Interest Points, Binary Operations CAP 5415: Computer Vision Fall 2006.
Edges and Lines Readings: Chapter 10:
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.
Grouping and Segmentation. Sometimes edge detectors find the boundary pretty well.
HOUGH TRANSFORM.
CSSE463: Image Recognition Day 26
CSSE463: Image Recognition Day 26
Fitting: Voting and the Hough Transform
Miguel Tavares Coimbra
CSSE463: Image Recognition Day 21
Line Fitting James Hayes.
Detection of discontinuity using
Fitting: The Hough transform
Fitting: Voting and the Hough Transform (part 2)
Fitting Curve Models to Edges
CSSE463: Image Recognition Day 23
Edge Detection CSE 455 Linda Shapiro.
Photo by Carl Warner.
CSSE463: Image Recognition Day 26
CSSE463: Image Recognition Day 6
CSSE463: Image Recognition Day 26
Hough Transform.
Morphological Operators
CSSE463: Image Recognition Day 6
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
CSSE463: Image Recognition Day 23
Edge Detection Today’s readings Cipolla and Gee Watt,
Finding Basic Shapes Hough Transforms
CSSE463: Image Recognition Day 6
CSE 185 Introduction to Computer Vision
CSSE463: Image Recognition Day 23
Finding Line and Curve Segments from Edge Images
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
Presentation transcript:

CSSE463: Image Recognition Day 26 This week Today: Finding lines and circles using the Hough transform (Sonka 6.26) Tomorrow: K-means lab due Next class: Template matching or HOG features Friday: Lab 7 (final one) Sunday night: Project plans and preliminary work due. See rubric Questions?

Finding lines in real images Input: set of edge points Output: the equation of a line containing them Methods: Least-squares (if you know which points belong to the line…) Hough transform (today)

Hough transform Idea (Sonka 6.2.6; Forsyth and Ponce, ch 15): Represent a line using parameters Each edge point in the image casts a vote for all lines of which it could be part. Only the true line receives lots of votes

Parametric Equation of a Line Represent a line using 2 parameters y = mx + b? Problem? Ax + By + C = 0? 3 parameters; but A, B, and C are related…we only need 2 r and q r is distance from line to origin Q is the angle the distance segment makes with x-axis x cosq + y sinq = r Q1 Q1

Voting Each point in image votes for all lines of which it could be part. Only “true” line receives lots of votes. Quiz question: show (4,4), (2,2), and (0,0) voting for a line in y = mx+b space (for simplicity) Q2 Q2-3

Perfect line Notice sharp peak in voting space (next 3 images from Forsyth and Ponce, ch 15) Q3 Q4

Approximate line Notice the broader peak. Can we detect it? Could smooth or use a coarser quantization? Accumulator array: bin size? Range? Q4 Q5

Random noise Votes spread all over the place: no line Too much noise creates “phantom lines” Smoothing can sometimes help Q5 Q6

Limitations Finding the right grid size in parameter space may be tricky Trial and error

Matlab Run an edge detector first to find points that are voting [H, theta, rho] = hough(edgeImg); peaks = houghpeaks(H,nPeaks); This works for lines only Demo using these to find lines: Noise image Real image

Another demo http://www.rob.cs.tu-bs.de/content/04-teaching/06-interactive/HNF.html Demo using these to find lines: Noise image Real image

Generalizations Finding circles with fixed radius… Finding circles with arbitrary radius… Finding line segments Finding arbitrary shapes… Ballard, Dana. 1981. Generalizing the Hough transform to detect arbitrary shapes. Pattern Recognition, 13(2):111-122. Dana was a long-time member of Rochester’s computer vision group. Q6,7 Q7-8

My Circle Finder Demo Wouldn’t this be a great lab?  Like Matlab’s hough and houghpeaks (for lines), but from scratch Easier would be to find circles of fixed radius.

Reducing the number of votes Use the edge gradient information as well Only need to cast votes for centers along the gradient I’ve done this; it works really well Use partial curves. If you had a way of grouping related points, you could use curvature. I haven’t tried this.