October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],

Slides:



Advertisements
Similar presentations
A Graph based Geometric Approach to Contour Extraction from Noisy Binary Images Amal Dev Parakkat, Jiju Peethambaran, Philumon Joseph and Ramanathan Muthuganapathy.
Advertisements

Boundary Detection - Edges Boundaries of objects –Usually different materials/orientations, intensity changes.
Spatial Filtering (Chapter 3)
EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
Instructor: Mircea Nicolescu Lecture 6 CS 485 / 685 Computer Vision.
October 2, 2014Computer Vision Lecture 8: Edge Detection I 1 Edge Detection.
Segmentation (2): edge detection
1Ellen L. Walker Edges Humans easily understand “line drawings” as pictures.
December 5, 2013Computer Vision Lecture 20: Hidden Markov Models/Depth 1 Stereo Vision Due to the limited resolution of images, increasing the baseline.
Edge and Corner Detection Reading: Chapter 8 (skip 8.1) Goal: Identify sudden changes (discontinuities) in an image This is where most shape information.
Edge Detection. Our goal is to extract a “line drawing” representation from an image Useful for recognition: edges contain shape information –invariance.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Lecture 4 Edge Detection
Canny Edge Detector.
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
CS 376b Introduction to Computer Vision 04 / 11 / 2008 Instructor: Michael Eckmann.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Canny Edge Detector1 1)Smooth image with a Gaussian optimizes the trade-off between noise filtering and edge localization 2)Compute the Gradient magnitude.
Segmentation (Section 10.2)
1 Lecture 12 Neighbourhood Operations (2) TK3813 DR MASRI AYOB.
Filters and Edges. Zebra convolved with Leopard.
EE663 Image Processing Edge Detection 3 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Computer Vision P. Schrater Spring 2003
3-D Computational Vision CSc Canny Edge Detection.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
CS 6825: Binary Image Processing – binary blob metrics
University of Kurdistan Digital Image Processing (DIP) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Edges. Edge detection schemes can be grouped in three classes: –Gradient operators: Robert, Sobel, Prewitt, and Laplacian (3x3 and 5x5 masks) –Surface.
CSC508 Convolution Operators. CSC508 Convolution Arguably the most fundamental operation of computer vision It’s a neighborhood operator –Similar to the.
October 7, 2014Computer Vision Lecture 9: Edge Detection II 1 Laplacian Filters Idea: Smooth the image, Smooth the image, compute the second derivative.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
University of Texas at Arlington
Edges.
Course14 Dynamic Vision. Biological vision can cope with changing world Moving and changing objects Change illumination Change View-point.
October 16, 2014Computer Vision Lecture 12: Image Segmentation II 1 Hough Transform The Hough transform is a very general technique for feature detection.
Edge Based Segmentation Xinyu Chang. Outline Introduction Canny Edge detector Edge Relaxation Border Tracing.
CSE 6367 Computer Vision Image Operations and Filtering “You cannot teach a man anything, you can only help him find it within himself.” ― Galileo GalileiGalileo.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Course 5 Edge Detection. Image Features: local, meaningful, detectable parts of an image. edge corner texture … Edges: Edges points, or simply edges,
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Canny Edge Detection. 5 STEPS 5 STEPS Apply Gaussian filter to smooth the image in order to remove the noise Apply Gaussian filter to smooth the image.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Edge Segmentation in Computer Images CSE350/ Sep 03.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
September 26, 2013Computer Vision Lecture 8: Edge Detection II 1Gradient In the one-dimensional case, a step edge corresponds to a local peak in the first.
Detection of nerves in Ultrasound Images using edge detection techniques NIRANJAN TALLAPALLY.
Edges Edges = jumps in brightness/color Brightness jumps marked in white.
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
October 3, 2013Computer Vision Lecture 10: Contour Fitting 1 Edge Relaxation Typically, this technique works on crack edges: pixelpixelpixel pixelpixelpixelebg.
Mean Shift Segmentation
Computer Vision Lecture 12: Image Segmentation II
Fourier Transform: Real-World Images
Computer Vision Lecture 5: Binary Image Processing
Fitting Curve Models to Edges
Edge Detection The purpose of Edge Detection is to find jumps in the brightness function (of an image) and mark them.
Computer Vision Lecture 9: Edge Detection II
Levi Smith REU Week 1.
a kind of filtering that leads to useful features
a kind of filtering that leads to useful features
Canny Edge Detector.
Magnetic Resonance Imaging
Fourier Transform of Boundaries
Canny Edge Detector Smooth image with a Gaussian
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
Presentation transcript:

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j], i.e., non-zero values that do not correspond to any edge in the original image. In most cases, these values will be smaller than those indicating actual edges. We can then simply use a threshold T to eliminate the noise. All values of E[i, j] < T are set to 0, and the other values remain unchanged or are set to 1 (whatever you prefer). Then the Canny edge detector operation is complete.

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 2 Canny Edge Detector - Example Let us look at the following (already smoothed) sample image and perform Canny edge detection on it: grayscale image intensity values of same image

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 3 Canny Edge Detector - Example Applying the vertical and horizontal gradient filters gives us the following results: Q[i, j] P[i, j]

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 4 Canny Edge Detector - Example Based on P[i, j] and Q[i, j], we can now compute the magnitude and orientation of the gradient: M[i, j]  [i, j] 0000 0000 0000 0000 0000 0000 0000 192  216  246  193  165  0000 191  203  208  213  183  0000 305  261  226  213  196  0000 212  218  226  228  345  0000 295  282  309  293  186 

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 5 Canny Edge Detector - Example This allows us to compute the sector  [i, j] for each angle  [i, j]:  [i, j] Remember the directions: 103 2[i,j]2 301

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 6 Canny Edge Detector - Example The last steps are nonmaxima suppression and thresholding (here we use T = 30): E[i, j] final result

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 7 Canny Edge Detector - Example Finally we visualize the detected edge pixels (0 = white, 1 = black) and indicate the precise edge locations (the pixels’ lower right corners) in the original image: edge locations in original image edge pixels

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 8 Evaluating Edge Detector Performance How can we decide which type of edge detector we should use in our application? For this purpose, we need to find a method for evaluating the performance of these detectors. First of all, we need to create one of more test images for which we know the actual locations and orientations of edges. A straightforward idea is to just draw an image showing geometric objects. One possible measure for edge detector performance is called the figure of merit.

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 9 Evaluating Edge Detector Performance The figure of merit FM is computed as follows: with number of detected edges I A, number of ideal edges I I, distance between the actual and ideal edges (as matched by an appropriate algorithm) d, and constant for penalizing displaced edges .

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 10 Evaluating Edge Detector Performance The maximum value of FM is 1, which indicates perfect performance. The closer FM is to 0, the poorer the performance. Of course even a poor edge detector can perform very well in artificial images that show, for example, only perfect rectangles. In order to perform a more meaningful analysis, we should add noise to our test images and see how well our edge detector can handle it. One possibility is to simulate varying degrees of Gaussian noise in our test images.

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 11 Simulating Gaussian Noise In order to simulate Gaussian noise, change the intensity of each pixel according to a Gaussian random distribution: probability intensity original intensity i of pixel Probability for new intensity i’ of pixel standard deviation  of Gaussian determines amount of noise

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 12 Simulating Gaussian Noise To simulate a Gaussian random distribution, keep on choosing 2D random points in the marked rectangular area until one of them is under the Gaussian curve. Set i’ to the horizontal coordinate of that point. Set i’ to the horizontal coordinate of that point. probability intensity original intensity i of pixel new intensity i’

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 13 Evaluating Edge Detector Performance We can then measure the figure of merit as a function of the Gaussian noise added to the input image:  of Gaussian noise figure of merit strong (robust) edge detector weak edge detector

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 14 From Edges to Contours In order to represent a region boundary, we have to link its local edges. Such a representation is called a contour. Closed contours indicate region boundaries. Open contours are usually parts of region boundaries with gaps due to noise or low contrast. We can represent a contour as an ordered list of edges or as a curve. A curve is a mathematical model of a contour.

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 15 Edge Relaxation The edge images generated by edge detection techniques (Sobel, Canny, etc.) are usually noisy. In these images, contours may be visible to the human eye, but they may contain gaps, and there are isolated edges that do not belong to an actual contour. We can use the edge relaxation technique to fill the gaps and remove the isolated edges. It is an iterative method that assigns confidence values to edges and updates these values.

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 16 Edge Relaxation Typically, this technique works on crack edges: pixelpixelpixel pixelpixelpixelebg i h a c d f

October 1, 2013Computer Vision Lecture 9: From Edges to Contours 17 Edge Relaxation Edges h and i can be used for non-maxima suppression similar to the Canny detector. We will not discuss this here. The edge pattern at an edge e can be described as a pair of integers: the number of connecting edges on the left (edges a, b, c) and the number of connecting edges on the right (d, f, g). Since the left and right sides are exchangeable, we simply write the smaller number first, e.g. 0-1, 1-3, 2-2. These edge patterns determine whether we should increase or decrease the current confidence value for e or leave it unchanged.