Edge linking. Two types of approaches. This process needs to be able to bridge gaps in detected edges due to the reason mentioned above

Similar documents
Lecture 9: Hough Transform and Thresholding base Segmentation

HOUGH TRANSFORM. Plan for today. Introduction to HT. An image with linear structures. INF 4300 Digital Image Analysis

(Refer Slide Time: 0:32)

Biomedical Image Analysis. Point, Edge and Line Detection

Edge pixel with coordinates (s,t) in S xy has an angle similar to pixel at α(s,t) α(x,y) <A

Computer Vision. Image Segmentation. 10. Segmentation. Computer Engineering, Sejong University. Dongil Han

EECS490: Digital Image Processing. Lecture #20

Lecture 15: Segmentation (Edge Based, Hough Transform)

Edge detection. Gradient-based edge operators

HOUGH TRANSFORM CS 6350 C V

Types of Edges. Why Edge Detection? Types of Edges. Edge Detection. Gradient. Edge Detection

Fitting: The Hough transform

Elaborazione delle Immagini Informazione Multimediale. Raffaella Lanzarotti

Issues with Curve Detection Grouping (e.g., the Canny hysteresis thresholding procedure) Model tting They can be performed sequentially or simultaneou

Fitting: The Hough transform

Fitting: The Hough transform

Practical Image and Video Processing Using MATLAB

OBJECT detection in general has many applications

Finding 2D Shapes and the Hough Transform

1. What are the derivative operators useful in image segmentation? Explain their role in segmentation.

Other Linear Filters CS 211A

Chapter 10: Image Segmentation. Office room : 841

ATIP A Tool for 3D Navigation inside a Single Image with Automatic Camera Calibration

From Szymon Rusinkiewicz, Princeton

Circular Hough Transform

Straight Lines and Hough

Segmentation

Fitting. Lecture 8. Cristian Sminchisescu. Slide credits: K. Grauman, S. Seitz, S. Lazebnik, D. Forsyth, J. Ponce

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

EECS490: Digital Image Processing. Lecture #21

Introduction. Chapter Overview

Feature Detectors and Descriptors: Corners, Lines, etc.

Feature Selection. Ardy Goshtasby Wright State University and Image Fusion Systems Research

Chapter 11 Arc Extraction and Segmentation

Chapter 10 Image Segmentation. Yinghua He

Segmentation I: Edges and Lines

EDGE EXTRACTION ALGORITHM BASED ON LINEAR PERCEPTION ENHANCEMENT

Segmentation

Model Fitting: The Hough transform I

Fitting: Voting and the Hough Transform April 23 rd, Yong Jae Lee UC Davis

EE795: Computer Vision and Intelligent Systems

GNR401M Remote Sensing and Image Processing

Lecture 8: Fitting. Tuesday, Sept 25

Massachusetts Institute of Technology. Department of Computer Science and Electrical Engineering /6.866 Machine Vision Quiz I

Computer Vision 6 Segmentation by Fitting

Edge Detection. Announcements. Edge detection. Origin of Edges. Mailing list: you should have received messages

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

CS443: Digital Imaging and Multimedia Perceptual Grouping Detecting Lines and Simple Curves

Multimedia Computing: Algorithms, Systems, and Applications: Edge Detection

GENERALIZING THE HOUGH TRANSFORM TO DETECT ARBITRARY SHAPES. D. H. Ballard Pattern Recognition Vol. 13 No

Announcements, schedule. Lecture 8: Fitting. Weighted graph representation. Outline. Segmentation by Graph Cuts. Images as graphs

E0005E - Industrial Image Analysis

Section 2.1 Graphs. The Coordinate Plane

CAP 5415 Computer Vision Fall 2012

Automated Detection for Baseball Batter Analysis Using Image Processing and Segmentation Methods

Edge detection. Convert a 2D image into a set of curves. Extracts salient features of the scene More compact than pixels

Edge Detection. Dr. Mongkol Ekpanyapong

Computer Graphics : Bresenham Line Drawing Algorithm, Circle Drawing & Polygon Filling

Lecture 7: Most Common Edge Detectors

CS6640: Image Processing Project 4 Hough Transform

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives.

Contents Edge Linking and Boundary Detection

Image Analysis. Edge Detection

Filtering and Enhancing Images

Chapter - 2: Geometry and Line Generations

Point Operations and Spatial Filtering

Feature Descriptors. CS 510 Lecture #21 April 29 th, 2013

EN1610 Image Understanding Lab # 3: Edges

RANSAC and some HOUGH transform

Distance and Angles Effect in Hough Transform for line detection

A Robust Method for Circle / Ellipse Extraction Based Canny Edge Detection

Lecture 4: Finding lines: from detection to model fitting

Lesson 6: Contours. 1. Introduction. 2. Image filtering: Convolution. 3. Edge Detection. 4. Contour segmentation

Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

Image Analysis. Edge Detection

CMPS 3130/6130 Computational Geometry Spring Voronoi Diagrams. Carola Wenk. Based on: Computational Geometry: Algorithms and Applications

Image Enhancement: To improve the quality of images

UNIT 2 GRAPHIC PRIMITIVES

Clipping Points Consider a clip window which is rectangular in shape. P(x, y) is a point to be displayed.

Filtering Images. Contents

Conic Sections. College Algebra

Feature descriptors and matching


Edge and local feature detection - 2. Importance of edge detection in computer vision

CSCI 4620/8626. Coordinate Reference Frames

CS 664 Image Matching and Robust Fitting. Daniel Huttenlocher

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

UNIVERSITY OF OSLO. Faculty of Mathematics and Natural Sciences

REGION & EDGE BASED SEGMENTATION

Anno accademico 2006/2007. Davide Migliore

BIM472 Image Processing Image Segmentation

Generalized Hough Transform, line fitting

Filtering Applications & Edge Detection. GV12/3072 Image Processing.

Realtime 3D Computer Graphics Virtual Reality

We have already studied equations of the line. There are several forms:

notes13.1inclass May 01, 2015

EE795: Computer Vision and Intelligent Systems

Scientific Journal Impact Factor: (ISRA), Impact Factor: [Kawde, 3(7): July, 2014] ISSN:

COMPUTER AND ROBOT VISION

COMP30019 Graphics and Interaction Scan Converting Polygons and Lines

Transcription:

Edge linking Edge detection rarely finds the entire set of edges in an image. Normally there are breaks due to noise, non-uniform illumination, etc. If we want to obtain region boundaries (for segmentation) we need to link edge pixels into longer edge curves This process needs to be able to bridge gaps in detected edges due to the reason mentioned above Two types of approaches Local/Regional Global

Edge Linking

Local and regional approaches Local edge linking Compute the gradient magnitude and gradient angle images If a pixel in N has similar gradient orientation and magnitude to any of its neighbors link them. Linking can be implemented by assigning an unique integer identifier to linked edge segment. What to do about gaps? Consider a larger region than immediate neighbors for potential links.

Regional edge linking Regional edge linking Find curves in moderate sized regions (not local, not global) of the image Example Given an ordered set of points known to be on the same boundary, fit a polynomial model (x(s),y(s)) to the edge curve. The model can be evaluated at any s which allows for interpolation between the original detected edge points (hence closing gaps)

Thresholded Smoothed and thresholded To get a binary edge map we can threshold the gradient magnitude of the image Choosing a threshold is a trade-off between losing weak edges and keeping edges due to noise Smoothing can help with this problem to some extent 1992 2008 R. C. Gonzalez & R. E. Woods

1992 2008 R. C. Gonzalez & R. E. Woods

Finding global lines in images We can search for lines in images globally Given n points detected as edge pixels Consider every pair of points as a line candidate There are n(n-1)~n 2 candidate lines Find all points that lie close to each line candidates. If a candidate line has enough points located close then it is marked as a valid line Have to check n points for each candidate line; therefore, the total complexity is on the order n 3 There is a better way: Hough transform

Parameter space Consider an edge point (x i,y i ) Infinitely many lines can pass through (x i,y i ) Any slope, intercept pair (a,b) satisfying y i = a x i + b defines a line that passes through (x i,y i ) Rewrite as b = y i - a x i. Fix (x i,y i ), vary a and solve for b This is the equation of a line in the ab-plane. The ab-plane is called the parameter space. 1992 2008 R. C. Gonzalez & R. E. Woods

Lines in parameter space Now consider a second point (x j,y j ). This point yields a second line in the parameter space The two lines in the parameter space intersect at a point (a,b ). These are the slope and intercept parameters of the line (in the xy-space) passing through both (x i,y i ) and (x j,y j ) In fact all points on the line passing through both (x i,y i ) and (x j,y j ) will have lines in the parameter space that pass through (a,b ) 1992 2008 R. C. Gonzalez & R. E. Woods

Hough transform Draw lines in the parameter space for all detected edge points (x i,y i ) Find points in the parameter space where a large number of parameter-space lines intersect These locations are the parameters for the lines in the xyspace which have a lot of evidence supporting them. Linear complexity in n (number of edges) One difficulty is that the slope parameter (a) approaches infinity as the line in xy-space becomes close to vertical. This would create a problem with the implementation of the Hough transform

ough transform - normal representation We can use the normal representation of a line instead x cosθ + ysinθ = ρ Then the parameterspace is the θρplane Points in the xyspace correspond to sinusoidal curves in the θρ-plane y x 1992 2008 R. C. Gonzalez & R. E. Woods

Hough transform implementation Divide the θρ-plane into discrete accumulator cells. A ij is the accumulator value for cell corresponding to (θ i,ρ j ). Range θ: -90 o to 90 o and ρ: -D to D (D is length of image diagonal) How many cells should we use? 1992 2008 R. C. Gonzalez & R. E. Woods

Hough transform implementation Initialize all A ij to 0 For each edge point (x k,y k ) Let θ equal all of the allowed subdivision values and solve for corresponding ρ. Round resulting to nearest integer If a choice of θ p results in ρ q then A(p,q) = A(p,q) + 1 1992 2008 R. C. Gonzalez & R. E. Woods

Hough transform implementation Threshold A ij to find strong lines in the image Number of subdivisions determines the accuracy of the parameters of the detected lines. More subdivisions = higher accuracy However, the trade-off is that the detection can become less robust with more subdivisions. As the number of subdivisions increases even the strongest line will produce a smaller A ij. Therefore a smaller threshold will be needed, possibly resulting in the detection of some false lines.

Hough transform example 1992 2008 R. C. Gonzalez & R. E. Woods

Generalized Hough transform The Hough transform can be extended to find shapes in an image that can be expressed as a mathematical equation with parameters. Examples: circle (x-c 1 ) 2 + (y-c 2 ) 2 = c 32. This will require a 3D parameter-space Ellipse centered at origin (x/a) 2 +(y/b) 2 = 1. This will require a 2D parameter-space The complexity of the Hough transform increases with the number of parameters (dimension of the parameter-space). Usually more than 3-4 parameters is not feasible.