240-373: Chapter 13: Finding Basic Shapes 1 Montri Karnjanadecha ac.th/~montri 240-373 Image Processing.

Slides:



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

Larry F. Hodges (modified by Amos Johnson) 1 Design of Line, Circle & Ellipse Algorithms.
Copyright © Cengage Learning. All rights reserved.
Hough Transform Reading Watt, An edge is not a line... How can we detect lines ?
Segmentation (2): edge detection
Edge Detection CSE P 576 Larry Zitnick
Raster conversion algorithms for line and circle
PLANE STRESS TRANSFORMATION
Lecture 5 Hough transform and RANSAC
0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Detecting.
Optical Ovulation Detector By Jason Kutarnia Brett Casagranda Eric Sondhi Preliminary Design Review.
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
1 Model Fitting Hao Jiang Computer Science Department Oct 8, 2009.
CS 376b Introduction to Computer Vision 04 / 16 / 2008 Instructor: Michael Eckmann.
PARAMETRIC EQUATIONS AND POLAR COORDINATES 9. Usually, we use Cartesian coordinates, which are directed distances from two perpendicular axes. Here, we.
GENERALIZED HOUGH TRANSFORM. Recap on classical Hough Transform 1.In detecting lines – The parameters  and  were found out relative to the origin (0,0)
Parallel Processing – Final Project Performed by:Nitsan Mane Jonathan Distler PP9.
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.
Hough Transform. Detecting Lines Hough transform detects lines in images Equation of line is: y = mx + b or Hough transform uses an array called accumulator.
CS 376b Introduction to Computer Vision 03 / 04 / 2008 Instructor: Michael Eckmann.
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.
כמה מהתעשייה? מבנה הקורס השתנה 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.
: Chapter 10: Image Recognition 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Section 10.1 Polar Coordinates.
8.2.2 – Graphing Polar Points, Converting Equations.
Hough Transform on the GPU Presented by Javier Garcia November 29, 2010.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Edge Linking & Boundary Detection
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.
Generalized Hough Transform
: Chapter 8: Edge Detection 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Digital Image Processing & Pattern Analysis (CSCE 563) Image Segmentation Prof. Amr Goneid Department of Computer Science & Engineering The American University.
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.
HOUGH TRANSFORM. Introduced in 1962 by Paul Hough pronounced like “tough” according to orm.html.
Fitting: The Hough transform
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
Fitting Thursday, Sept 24 Kristen Grauman UT-Austin.
10/15/02 (c) 2002 University of Wisconsin, CS559 Who Am I? Prof Stephen Chenney These notes will be online after the lecture – in fact they’re online already.
Object Detection 01 – Basic Hough Transformation JJCAO.
October 16, 2014Computer Vision Lecture 12: Image Segmentation II 1 Hough Transform The Hough transform is a very general technique for feature detection.
Hough transform and geometric transform
Image Segmentation Image segmentation (segmentace obrazu)
Edges and Lines Readings: Chapter 10:
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Hough Transform. Introduction The Hough Transform is a general technique for extracting geometrical primitives from e.g. edge data Performed after Edge.
Object Recognition. Segmentation –Roughly speaking, segmentation is to partition the images into meaningful parts that are relatively homogenous in certain.
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.
1 CHAPTER 2C- Mohr’s Circle Dr. Zuhailawati Hussain EBB 334 Mechanical Metallurgy.
Computer Graphics Lecture 06 Circle Drawing Techniques Taqdees A. Siddiqi
Fitting: Voting and the Hough Transform
Detection of discontinuity using
Fitting: Voting and the Hough Transform (part 2)
Fitting Curve Models to Edges
Image Processing, Leture #12
ECE 692 – Advanced Topics in Computer Vision
: Chapter 8: Edge Detection
Hough Transform.
Edge Detection Today’s readings Cipolla and Gee Watt,
Finding Basic Shapes Hough Transforms
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
Presentation transcript:

: Chapter 13: Finding Basic Shapes 1 Montri Karnjanadecha ac.th/~montri Image Processing

: Chapter 13: Finding Basic Shapes 2 Chapter 13 Finding Basic Shapes

: Chapter 13: Finding Basic Shapes 3 Finding Basic Shapes Hough Transforms –Combining edges into lines Basic principal of the straight-line Hough transform –Based on y = mx + c –or in (m,c) space c = (-x)m + y –Find (m,c) that crossing lines occurs the most

: Chapter 13: Finding Basic Shapes 4 Finding Basic Shapes

: Chapter 13: Finding Basic Shapes 5 Real straight-edge discovery using the Hough transform Problem with the basic technique: m could be from -infinity to +infinity Polar coordinates can be used instead of cartesian coordinates

: Chapter 13: Finding Basic Shapes 6 Real straight-edge discovery using the Hough transform

: Chapter 13: Finding Basic Shapes 7 Real straight-edge discovery Technique 1: Real straight-edge discovery using the Hough transform USE: To find out and connect substantial straight edges from partial edges already found using an edge detector.

: Chapter 13: Finding Basic Shapes 8 Real straight-edge discovery OPERATION: –For each edge pixel value I(x,y), vary  from 0 o to 360 o and calculate r = x cos  + y sin  –Given an accumulator array size (N + M, 360), increase those elements in the array that lie in a box (b x b) with center (r,  ) –Look for the highest values in the accumulator (r,  ) array and identify the pairs (r,  ) that are the most likely to indicate a line in (x,y) space

: Chapter 13: Finding Basic Shapes 9 Real straight-edge discovery This method can be enhanced in a number of ways: 1.The gradient of the edge before thresholding can be used to update the accumulator array. 2. Gradient direction can be taken in to account. If this suggests that the direction of the real edge lies between two angles (  ,   ), then only the element in the (r,  ) array that lies in   <  <   are plotted 3.The incrementing box does not need to be uniform. The center can be emphasized

: Chapter 13: Finding Basic Shapes 10 Real Circle Discovery Technique 2: Real circle discovery using the Hough transform USE: To find circles from an edge-detected image. OPERATION: –To search for circles of a known radius, R, then the following identity can be used (x-a) 2 + (y-b) 2 = R 2 where (a,b) is the center of the circle

: Chapter 13: Finding Basic Shapes 11 Real Circle Discovery A circle of elements is incremented in the (a,b) accumulator array center (a = 0.. M-1, b = 0.. N-1) –The highest values in the (a,b) array indicates coincident edges

: Chapter 13: Finding Basic Shapes 12 Real Circle Discovery

: Chapter 13: Finding Basic Shapes 13 Real circle discovery (cont’d) It is possible to look for the following types of circle: –different radiiplot in (a,b,R) space –different radii, same vert. centersplot in (b,R) space –different radii, same horz. centersplot in (a,R) space

: Chapter 13: Finding Basic Shapes 14 Real circle discovery (cont’d) Important points –As the number of unknown parameters increases, the amount of processing increases exponentially –The Hough technique can be used to discover any edge shapes with simple identity –The generalized Hough transform can be used to discover complex shapes

: Chapter 13: Finding Basic Shapes 15 Generalized Hough transform Technique 2: The generalized Hough transform USE: To find a known shape of any size or orientation in an image. OPERATION: –Given the object boundary (assuming that the object is of the same size and orientation), choose a center (x,y)

: Chapter 13: Finding Basic Shapes 16 Generalized Hough transform OPERATION: (cont’d) –The boundary is traversed and after every step d along the boundary the angle of the boundary tangent with respect to horizontal is noted, and the x difference and y difference of the boundary position from the center point are also noted. –See table

: Chapter 13: Finding Basic Shapes 17 Generalized Hough transform

: Chapter 13: Finding Basic Shapes 18 Generalized Hough transform –For every pixels I(x,y) in the edge-detected image, the gradient direction is found –and the row of elements in the array shown in the table above then refer to a set of elements relative to this boundary point which may be ‘center’ of the object –The accumulator (same size as image) is then incremented by 1 for such element –Finally, the highest-valued element(s) in the accumulator array point to the possible ‘centers’ of the object

: Chapter 13: Finding Basic Shapes 19 Bresenham’s algorithms Bresenham’s straight-line drawing algorithm Bresenham’s circle drawing algorithm