Master of Intelligent Systems - French-Czech Double Diploma. Hough transform

Similar documents
Feature Extraction Line & Curve

UNC Charlotte Super Competition - Comprehensive test March 2, 2015

Simple Co-ordinate geometry problems

Time : 3 hours 02 - Mathematics - July 2006 Marks : 100 Pg - 1 Instructions : S E CT I O N - A

a Write down the coordinates of the point on the curve where t = 2. b Find the value of t at the point on the curve with coordinates ( 5 4, 8).

Created by T. Madas LINE INTEGRALS. Created by T. Madas

Math 259 Winter Solutions to Homework # We will substitute for x and y in the linear equation and then solve for r. x + y = 9.

INF Shape descriptors

Image Segmentation: Definition Importance. Digital Image Processing, 2nd ed. Chapter 10 Image Segmentation.

Parametric Equations and Polar Coordinates

Core Mathematics C1 (AS) Unit C1

Mathematics Extension 2

Since x + we get x² + 2x = 4, or simplifying it, x² = 4. Therefore, x² + = 4 2 = 2. Ans. (C)

Review Exercise 2. 1 a Chemical A 5x+ Chemical B 2x+ 2y12 [ x+ Chemical C [ 4 12]

CIRCLES PART - II Theorem: The condition that the straight line lx + my + n = 0 may touch the circle x 2 + y 2 = a 2 is

SOUTH AFRICAN TERTIARY MATHEMATICS OLYMPIAD

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 3 2, 5 2 C) - 5 2

NATIONAL BOARD FOR HIGHER MATHEMATICS. M. A. and M.Sc. Scholarship Test. September 25, Time Allowed: 150 Minutes Maximum Marks: 30

Math 20C Homework 2 Partial Solutions

Algebraic. techniques1

Math 120: Precalculus Autumn 2017 A List of Topics for the Final

ARNOLD PIZER rochester problib from CVS Summer 2003

worked out from first principles by parameterizing the path, etc. If however C is a A path C is a simple closed path if and only if the starting point

6. Vector Integral Calculus in Space

Intro Vectors 2D implicit curves 2D parametric curves. Graphics 2011/2012, 4th quarter. Lecture 2: vectors, curves, and surfaces

WORKSHEET #13 MATH 1260 FALL 2014

1.1 Single Variable Calculus versus Multivariable Calculus Rectangular Coordinate Systems... 4

18.06 Problem Set 1 Solutions Due Thursday, 11 February 2010 at 4 pm in Total: 100 points

MR. YATES. Vocabulary. Quadratic Cubic Monomial Binomial Trinomial Term Leading Term Leading Coefficient

Contact hour per week: 04 Contact hour per Semester: 64 ALGEBRA 1 DETERMINANTS 2 2 MATRICES 4 3 BINOMIAL THEOREM 3 4 LOGARITHMS 2 5 VECTOR ALGEBRA 6

HIGHER SCHOOL CERTIFICATE EXAMINATION MATHEMATICS 3 UNIT (ADDITIONAL) AND 3/4 UNIT (COMMON) Time allowed Two hours (Plus 5 minutes reading time)

MTH301 Calculus II Glossary For Final Term Exam Preparation

4.1 Analysis of functions I: Increase, decrease and concavity

mathematical objects can be described via equations, functions, graphs, parameterization in R, R, and R.

MAC Calculus II Spring Homework #6 Some Solutions.

Conic Sections. Analysis. Author: Han de Bruijn Dated: 2006 September, 2010 April

Distance Formula in 3-D Given any two points P 1 (x 1, y 1, z 1 ) and P 2 (x 2, y 2, z 2 ) the distance between them is ( ) ( ) ( )

COMPLEX NUMBERS AND QUADRATIC EQUATIONS

Trans Web Educational Services Pvt. Ltd B 147,1st Floor, Sec-6, NOIDA, UP

Franklin Math Bowl 2010 Group Problem Solving Test Grade 6

AP Calculus (BC) Chapter 10 Test No Calculator Section. Name: Date: Period:

Things to Know and Be Able to Do Understand the meaning of equations given in parametric and polar forms, and develop a sketch of the appropriate

Lone Star College-CyFair Formula Sheet

2013/2014 SEMESTER 1 MID-TERM TEST. 1 October :30pm to 9:30pm PLEASE READ THE FOLLOWING INSTRUCTIONS CAREFULLY:

Elements of Vector Calculus : Scalar Field & its Gradient

Mathematics Trigonometry: Unit Circle

University of Alberta. Math 214 Sample Exam Math 214 Solutions

Created by T. Madas SURFACE INTEGRALS. Created by T. Madas

Rotation of Axes. By: OpenStaxCollege

Section 6.2 Trigonometric Functions: Unit Circle Approach

Practice Final Solutions

OHSx XM521 Multivariable Differential Calculus: Homework Solutions 13.1

Example 2.1. Draw the points with polar coordinates: (i) (3, π) (ii) (2, π/4) (iii) (6, 2π/4) We illustrate all on the following graph:

Definition 1.1 Let a and b be numbers, a smaller than b. Then the set of all numbers between a and b :

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION CLASS XII-COMMON PRE-BOARD EXAMINATION. Answer key (Mathematics) Section A

Core A-level mathematics reproduced from the QCA s Subject criteria for Mathematics document

Exercise. Exercise 1.1. MA112 Section : Prepared by Dr.Archara Pacheenburawana 1

MATH 1020 WORKSHEET 12.1 & 12.2 Vectors in the Plane

Properties of surfaces II: Second moment of area

Solutions to old Exam 3 problems

1 Matrices and matrix algebra

Edge Detection in Computer Vision Systems

Math 118, Fall 2014 Final Exam

Course Notes Math 275 Boise State University. Shari Ultman

Parametric Equations, Function Composition and the Chain Rule: A Worksheet

Review exercise 2. 1 The equation of the line is: = 5 a The gradient of l1 is 3. y y x x. So the gradient of l2 is. The equation of line l2 is: y =

Math 263 Final. (b) The cross product is. i j k c. =< c 1, 1, 1 >

MATHEMATICS EXTENSION 2

4.4: Optimization. Problem 2 Find the radius of a cylindrical container with a volume of 2π m 3 that minimizes the surface area.

Distance Between Ellipses in 2D

MATH 255 Applied Honors Calculus III Winter Midterm 1 Review Solutions

LUZERNE COUNTY MATHEMATICS CONTEST. Luzerne County Council of Teachers of Mathematics Wilkes University Junior Examination (Section I)

MATH.2720 Introduction to Programming with MATLAB Vector and Matrix Algebra

Parameterizing the Pythagorean Triples

Questions Q1. The function f is defined by. (a) Show that (5) The function g is defined by. (b) Differentiate g(x) to show that g '(x) = (3)

There are some trigonometric identities given on the last page.

Introduction to Computer Graphics (Lecture No 07) Ellipse and Other Curves

E. Falbel and P.-V. Koseleff

Honors Advanced Math Final Exam 2009

Maharashtra State Board Class X Mathematics Geometry Board Paper 2015 Solution. Time: 2 hours Total Marks: 40


Study guide for Exam 1. by William H. Meeks III October 26, 2012

Math 261 Solutions to Sample Final Exam Problems

Math 211, Fall 2014, Carleton College

IYGB Mathematical Methods 1

31.1.1Partial derivatives

1. Let g(x) and h(x) be polynomials with real coefficients such that

2013 HSC Mathematics Extension 2 Marking Guidelines

12/13/2016 FINAL EXAM Math 21a, Fall Name:

NAME: Date: HOMEWORK: C1. Question Obtained. Total/100 A 80 B 70 C 60 D 50 E 40 U 39

APPLICATIONS The eigenvalues are λ = 5, 5. An orthonormal basis of eigenvectors consists of

Intro Vectors 2D implicit curves 2D parametric curves. Graphics 2012/2013, 4th quarter. Lecture 2: vectors, curves, and surfaces

CURVATURE AND RADIUS OF CURVATURE

1. Vectors and Matrices

BROWN UNIVERSITY PROBLEM SET 4 INSTRUCTOR: SAMUEL S. WATSON DUE: 6 OCTOBER 2017

MATHEMATICS AS/M/P1 AS PAPER 1

3.4 Conic sections. Such type of curves are called conics, because they arise from different slices through a cone

McGill University April Calculus 3. Tuesday April 29, 2014 Solutions

NATIONAL BOARD FOR HIGHER MATHEMATICS. M. A. and M.Sc. Scholarship Test. September 24, Time Allowed: 150 Minutes Maximum Marks: 30

What you will learn today

Transcription:

Hough transform I- Introduction The Hough transform is used to isolate features of a particular shape within an image. Because it requires that the desired features be specified in some parametric form, the classical Hough transform is most commonly used for the detection of regular curves such as lines, circles, ellipses, etc. A generalized Hough transform can be employed in applications where a simple analytic description of a feature(s) is not possible. This transform was invented by Paul Hough in 1959. It was made popular by Duda and Hart: Duda, R. O. and P. E. Hart, "Use of the Hough Transformation to Detect Lines and Curves in Pictures", 1972. II- Method 1. Description Earliest versions of the Hough transform used a line equation of: y = mx + c. In the Hough transform, we will create a dual space in which (m,c) are the parameters: c = -mx + y For a point p, all lines passing through this point correspond to a single line in space (m,c). 1

For a point q, all lines passing through this point correspond to a single line in space (m, c). These lines in space (x, y) share the line connecting points p and q. This line (pq) is the intersection of 2 lines D p and D q representing p and q in space (m, c). All points on the same line D in space (x,y) are represented by lines which all pass through the same point in space (m,c). This point (m ', c') gives the desired parameters of the equation of the line D: y = c + m'x'. 2. Algorithm We will create an accumulator array h(m,c) for discrete values of (m,c). This poses the problem of how to "discretize" m, c. For each point x, y, which is a local maxima in the gradient (for which I(x,y) 0), we will evaluate the set of possible values of m and c (a step). For each possible value we will increment h(m,c). 2

Allocate a table h(m,c) initially set to 0 for each x, y if I(x, y) 0 then for all m c = mx+y h(m,c) = h(m,c) + 1 Formally, the Hough transform leads to building representation h(m, c) defined by: H ( m, c) = I( x, y). δ ( mx + c y) x y where δ (x) is the Kronecker symbol: if x = 0 δ (x) = 1 else δ (x) = 0. Exercise 1: Basics of the Hough Transform Question 1: Consider an image of 5 x 5 pixels identified by their coordinates between 0 and 4. P 1 is the pixel coordinate (2,3). We use the parameters m and c to represent the equation of a line in the form y = mx + c. Give an equation of the line representative point P 1. Question 2: Let P 2, the coordinates (1,1). Determine the equation of the line through P1 (cf. Question 1) and P2. Exercise 2: Implementation The Hough space is represented by an 11x11 matrix where the slope coefficient m and translation coefficient c can take integer values between -5 and 5. Give the configuration of the Hough space when the shape points of the image are the following: a) P 1 (1,0), P 2 (2,2) and P 3 (3,4), b) P 1 (1,0), P 2 (2,2) and P 3 (0,0), c) P 1 (1,0), P 2 (1,2) and P 3 (1,4). 3

3. Discretization A second, more useful parameterization is to represent line by its shortest distance from the origin ρ and its orientation θ. We build an accumulator array: h( ρ,θ). This is representation in polar coordinates: ρ = x cos(θ) + y sin(θ) Let ρ [0, D], where D is the diagonal distance of the image. Let θ [0, 2π [ Allocate a table h( ρ,θ) initially set to 0. for each x, y of the image for each θ ρ = x cos(θ) + y sin(θ) h( ρ,θ) = h( ρ,θ) + I(x,y) The resulting table accumulates contrast. Peaks in h( ρ,θ) correspond to line segments in the image. This is an extension of the Hough transform called Radon transform: H ( ρ, θ ) = I ( x, y). δ ( x cos( θ ) + y sin( θ ) ρ) x y From information available in R, it is possible to reconstruct the original image by the opposite "projection": I ( x, y) = R( x cos( θ ) + y sin( θ ), θ ) Example: cf. applet Java Hough_transform θ 4

Exercise 3: Let the binary image I as follows. Complete the following table T to express the Hough transform in polar coordinates corresponding. I T Identify the item receiving the most votes and deduce the equation of the line in polar coordinates, which connects the 3 points of I. 4. Extension to circular form We can represent a circle with the equation: (x - a) 2 + (y - b) 2 = r 2. We can use this to create a Hough space h(a, b, r) for limited ranges of r. The ranges of a and b are the possible positions of circles. Allocate a table h(a, b, r) initially set to 0. for each x, y of the image for r from r min to r max for a from 0 to a max b = y ± sqrt( r 2 (x - a) 2 ) h(a,b,r) = h(a,b,r) + I(x,y). Exercise 4: We have a circular shape of radius 2, using the equation: (x - a) 2 + (y - b) 2 = 2 2 Provide for three points, the configuration Hough space associated: P 1 (0,2), P 2 (2,0) and P 3 (4,2). a/b 5

III- Generalization of the Hough Transform 1. Modeling - O: gravitational center - MT: tangent to the shape in M - G r : perpicular MT (gradient orientation) - d = MO Model = list of triplets {β, α, d} 2. Recognition Form to recognize β We search the triplets {β, α, d}. These are the points of the contour model with a perpicular parallel to that of P. We can therefore say that the portion of contour centered on P vote for a gravitational center whose coordinates are given by α and d: - x 0 = x + d cos(α) - y 0 = y + d sin(α) If many points vote for the same item, the form will be recognized. 6

3. Algorithm Modeling Grouping the triplets of the model which have the same β and the value is stored in a table T whose rows are indexed by different values of β: Recognition Initialize an array A[x min.. x max ; y min.. y max ] for each shape point I(x, y) Compute β (which provides an entry in table T) for each couple of the line β of T Compute x 0 = x + d cos(α) and y 0 = y + d sin(α) Increment A[x 0, y 0 ] Determine the couple(x, y) that maximizes A[x, y] Exercise 5: The following table contains only partial data to model a form (the angles are expressed in degrees): β list of couples (α,d) 0 (0,1) 90 (90,1) 180 (180,1) 270 (270,1) Given this information, what is (are) the shape(s) that correspond(s) to the complete model? We consider that the outline shape is represented by black pixels. 7

Exercise 6: A picture of a printed circuit board shows in particular components squared. Assume that ideally these components appear as squares of 3x3 pixels. To detect their shape and position, we chose to use the Hough Transform. Give an expression of the model. What are the values in the Hough space when the image contour is that corresponding to the matrix below? 0 0 0 0 0 0 1 1 1 0 0 1 0 1 0 0 1 1 1 0 0 0 0 0 0 8