Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007

Slides:



Advertisements
Similar presentations
Boundary Detection - Edges Boundaries of objects –Usually different materials/orientations, intensity changes.
Advertisements

EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
Instructor: Mircea Nicolescu Lecture 6 CS 485 / 685 Computer Vision.
Sliding Window Filters and Edge Detection Longin Jan Latecki Computer Graphics and Image Processing CIS 601 – Fall 2004.
Computer Vision Group Digital Image Filters 26 th November 2012.
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.
EE663 Image Processing Edge Detection 1
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
Lecture 4 Linear Filters and Convolution
Canny Edge Detector.
Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Differentiation and convolution Recall Now this is linear and shift invariant,
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Computer Vision - A Modern Approach
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Segmentation (Section 10.2)
Linear filters and edges. Linear Filters General process: Form new image whose pixels are a weighted sum of original pixel values, using the same set.
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.
Lecture 2: Image filtering
Announcements Since Thursday we’ve been discussing chapters 7 and 8. “matlab can be used off campus by logging into your wam account and bringing up an.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Neighborhood Operations
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30 – 11:50am.
Linear Filters and Edges
Edge Detection (with implementation on a GPU) And Text Recognition (if time permits) Jared Barnes Chris Jackson.
Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
Edges. Edge detection schemes can be grouped in three classes: –Gradient operators: Robert, Sobel, Prewitt, and Laplacian (3x3 and 5x5 masks) –Surface.
Edge Detection Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection From Sandlot ScienceSandlot Science.
Edge Detection Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski, Ch 4.1.2, From Sandlot.
EECS 274 Computer Vision Linear Filters and Edges.
CS654: Digital Image Analysis Lecture 24: Introduction to Image Segmentation: Edge Detection Slide credits: Derek Hoiem, Lana Lazebnik, Steve Seitz, David.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
CSE 185 Introduction to Computer Vision Edges. Scale space Reading: Chapter 3 of S.
EE 4780 Edge Detection.
October 7, 2014Computer Vision Lecture 9: Edge Detection II 1 Laplacian Filters Idea: Smooth the image, Smooth the image, compute the second derivative.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection.
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.
Announcements Project 0 due tomorrow night. Edge Detection Today’s readings Cipolla and Gee (handout) –supplemental: Forsyth, chapter 9Forsyth For Friday.
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.
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.
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Lecture 8: Edges and Feature Detection
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.
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.
Winter in Kraków photographed by Marcin Ryczek
Edge Detection Images and slides from: James Hayes, Brown University, Computer Vision course Svetlana Lazebnik, University of North Carolina at Chapel.
Miguel Tavares Coimbra
Edge Detection slides taken and adapted from public websites:
Linear Filters and Edges Chapters 7 and 8
Edge Detection CS 678 Spring 2018.
Computer Vision Lecture 9: Edge Detection II
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Dr. Chang Shu COMP 4900C Winter 2008
Canny Edge Detector.
CS 565 Computer Vision Nazar Khan Lecture 9.
Winter in Kraków photographed by Marcin Ryczek
IT472 Digital Image Processing
IT472 Digital Image Processing
CAP 5415 Computer Vision Fall 2004
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Presentation transcript:

Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007

Computer Vision Group Edge Detection in Images  Goal: Automatically find the contour of objects in a scene.  What For: Edges are significant descriptors, useful for classification, compression…

Computer Vision Group Edge Detection in Images  What is an object? It is one of the goals of computer vision to identify objects in scenes.

Computer Vision Group Edges May Have Different Sources  Object Boundaries  Occlusions  Textures  Shading

Computer Vision Group What is an Edge  Lets define an edge to be a discontinuity in image intensity function.  Several Models Step Edge Ramp Edge Roof Edge Spike Edge  They can be thus detected as discontinuities of image Derivatives

Computer Vision Group Differentiation and convolution  Recall  Now this is linear and shift invariant. Therefore, in discrete domain, it will be represented as a convolution

Computer Vision Group Differentiation and convolution  Recall  Now this is linear and shift invariant, so must be the result of a convolution.  We could approximate this as (which is obviously a convolution with Kernel ; it’s not a very good way to do things, as we shall see)

Computer Vision Group Finite Difference in 2D Discrete Approximation Horizontal Convolution Kernels Vertical

Computer Vision Group Finite differences

Computer Vision Group Noise  Simplest noise model independent stationary additive Gaussian noise the noise value at each pixel is given by an independent draw from the same normal probability distribution  Issues this model allows noise values that could be greater than maximum camera output or less than zero for small standard deviations, this isn’t too much of a problem - it’s a fairly good model independence may not be justified (e.g. damage to lens) may not be stationary (e.g. thermal gradients in the ccd)

Computer Vision Group Finite differences and noise  Finite difference filters respond strongly to noise obvious reason: image noise results in pixels that look very different from their neighbors  The more relevant is the noise, the stronger the response

Computer Vision Group Finite differences and noise  What is to be done? intuitively, most pixels in images look quite a lot like their neighbors. this is true even at an edge; along the edge they’re similar, across the edge they’re not. suggests that smoothing the image should help, by forcing pixels different to their neighbors (=noise pixels?) to look more like neighbors.

Computer Vision Group Finite differences responding to noise Increasing noise -> (this is zero mean additive gaussian noise)

Computer Vision Group Finite differences responding to noise Increasing noise -> (this is zero mean additive gaussian noise)

Computer Vision Group Finite differences responding to noise Increasing noise -> (this is zero mean additive gaussian noise)

Computer Vision Group Smoothing reduces noise  Generally expect pixels to “be like” their neighbors surfaces turn slowly relatively few reflectance changes  Generally expect noise processes to be independent from pixel to pixel

Computer Vision Group Smoothing reduces noise  Generally expect pixels to “be like” their neighbors surfaces turn slowly relatively few reflectance changes  Generally expect noise processes to be independent from pixel to pixe  Implies that smoothing suppresses noise, (i.i.d. noise!)  Gaussian Filtering the parameter in the symmetric Gaussian as this parameter goes up, more pixels are involved in the average and the image gets more blurred and noise is somehow suppressed

Computer Vision Group The effects of smoothing Each row shows smoothing with gaussians of different width; each column shows different realisations of an image of gaussian noise. Low - Pass

Computer Vision Group Classical Operators : Prewitt Smooth Differentiate Horizontal Vertical

Computer Vision Group Classical Operators: Sobel Smooth Differentiate Horizontal Vertical

Computer Vision Group Gaussian Filter

Computer Vision Group  Sobel Edge Detector Detecting Edges in Image Image I Threshold Edges any alternative ? Discrete Derivatives Gradient Norms Threshold

Computer Vision Group Quality of an Edge Detector  Robustness to Noise  Localization  Too Many/Too less Responses Poor robustness to noise Poor localization Too many responses True Edge

Computer Vision Group Canny Edge Detector Criteria  Good Detection: The optimal detector must minimize the probability of false positives as well as false negatives.  Good Localization: The edges detected must be as close as possible to the true edges.  Single Response Constraint: The detector must return one point only for each edge point.

Computer Vision Group Canny Edge Detector  Basically Convolution with derivative of Gaussian Non-maximum Suppression Hysteresis Thresholding

Computer Vision Group Canny Edge Detector  Smooth by Gaussian  Compute x and y derivatives  Compute gradient magnitude and orientation

Computer Vision Group Canny Edge Operator

Computer Vision Group Canny Edge Detector

Computer Vision Group The Gradient Orientation  Like for continuous function, the gradient at each pixel points at the steepest intensity growth direction.  The gradient norm indicates the inclination of the intensity growth.  Matlab…..

Computer Vision Group Canny Edge Detector

Computer Vision Group We wish to mark points along the curve where the magnitude is biggest. We can do this by looking for a maximum along a slice normal to the curve (non-maximum suppression). These points should form a curve. There are then two algorithmic issues: at which point is the maximum, and where is the next one? Non-Maximum Suppression - Idea

Computer Vision Group We wish to mark points along the curve where the magnitude is biggest. We can do this by looking for a maximum along a slice normal to the curve (non-maximum suppression). These points should form a curve. There are then two algorithmic issues: at which point is the maximum, and where is the next one? Non-Maximum Suppression – Idea (II)

Computer Vision Group Non-Maximum Suppression - Threshold  Suppress the pixels in ‘Gradient Magnitude Image’ which are not local maximum

Computer Vision Group An Overview on Threshold  According to the way the Threshold T is used they are divided into Global Threshold Local (or) Adaptive Threshold  According to the output they can be classified in Binary Threshold Hard Threshold Soft Threshold

Computer Vision Group Non-Maximum Suppression

Computer Vision Group Hysteresis Thresholding  Use of two different threshold High and Low for For new edge starting point For continuing edges  In such a way the edges continuity is preserved

Computer Vision Group Hysteresis Thresholding  If the gradient at a pixel is above ‘High’, declare it an ‘edge pixel’.  If the gradient at a pixel is below ‘Low’, declare it a ‘non- edge-pixel’.  If the gradient at a pixel is between ‘Low’ and ‘High’ then declare it an ‘edge pixel’ if and only if it is connected to an ‘edge pixel’ directly or via pixels between ‘Low’ and ‘ High’.

Computer Vision Group Hysteresis Thresholding

Computer Vision Group Examples an image its detected edges

Computer Vision Group In matlab..  Canny edge detector is implemented with the edge.m command

Computer Vision Group A brief overview on Morphological Operators in Image Processing Giacomo Boracchi 5/12/2007

Computer Vision Group An overview on morphological operations  Erosion, Dilation  Open, Closure  We assume the image being processed is binary, as these operators are typically meant for refining “mask” images.

Computer Vision Group AND operator in Binary images Images From Digital Image Processing II edition Gonzalez & Woods Chapter 9

Computer Vision Group OR in Binary Images

Computer Vision Group Erosion  General definition: Nonlinear Filtering procedure that replace to each pixel value the maximum on a given neighbor  As a consequence on binary images E(x)=1 iff the image in the neighbor is constantly 1  This operation reduces thus the boundaries of binary images  It can be interpreted as an AND operation of the image and the neighbor overlapped at each pixel

Computer Vision Group Erosion Example

Computer Vision Group Erosion Example

Computer Vision Group Dilation  General definition: Nonlinear Filtering procedure that replace to each pixel value the minimum on a given neighbor  As a consequence on binary images E(x)=1 iff at least a pixel in the neighbor is1  This operation grows fat the boundaries of binary images  It can be interpreted as an OR operation of the image and the neighbor overlapped at each pixel

Computer Vision Group Dilation Example

Computer Vision Group Dilation Example

Computer Vision Group In matlab  They are performed using the bwmorph.m script passing the name of the operation as a parmeter Examples…

Computer Vision Group Open and Closure  Open Erosion followed by a Dilation  Closure Dilation followed by an Erosion

Computer Vision Group Open  Open Erosion followed by a Dilation Smoothes the contours of an object Typically eliminate thin protrusions

Computer Vision Group Open  Figure to Open,  Structuring element a Disk

Computer Vision Group Open  First Erode,

Computer Vision Group Open  Then Dilate,  Open results, the bridge has been eliminate from the first erosion and cannot be replaced by the dilation.  Edges are smoothed  Corners are rounded

Computer Vision Group Closure  Closure Dilation followed by an Erosion Smoothes the contours of an object, typically creates Generally fuses narrow breaks

Computer Vision Group Open  Figure to Open,  Structuring element a Disk

Computer Vision Group Close  First Dilate,

Computer Vision Group Close  Then Erode,  Close results, the bridge has been preserved  Edges are smoothed  Corners are rounded