Brent M. Dingle, Ph.D. 2015 Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection.

Slides:



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

Lecture 2: Convolution and edge detection CS4670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
Instructor: Mircea Nicolescu Lecture 6 CS 485 / 685 Computer Vision.
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
Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
Announcements Mailing list: –you should have received messages Project 1 out today (due in two weeks)
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Lecture 2: Edge detection and resampling
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Lecture 3: Edge detection, continued
Segmentation (Section 10.2)
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
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
The blue and green colors are actually the same.
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 10 – Edges and Pyramids 1.
Edge Detection.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30 – 11:50am.
CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008.
Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
Lecture 2: Edge detection CS4670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
Lecture 3: Edge detection CS4670/5670: Computer Vision Kavita Bala From Sandlot ScienceSandlot Science.
CS 1699: Intro to Computer Vision Edges and Binary Images Prof. Adriana Kovashka University of Pittsburgh September 15, 2015.
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.
Instructor: S. Narasimhan
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.
Many slides from Steve Seitz and Larry Zitnick
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
Digital Image Processing
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection:
Digital Image Processing
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.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Image Processing.
Announcements Project 0 due tomorrow night. Edge Detection Today’s readings Cipolla and Gee (handout) –supplemental: Forsyth, chapter 9Forsyth For Friday.
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
COMPUTER VISION D10K-7C02 CV05: Edge Detection Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Lecture 8: Edges and Feature Detection
Finding Boundaries Computer Vision CS 143, Brown James Hays 09/28/11 Many slides from Lana Lazebnik, Steve Seitz, David Forsyth, David Lowe, Fei-Fei Li,
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.
Edge Detection slides taken and adapted from public websites:
Image gradients and edges
Edge Detection CS 678 Spring 2018.
Lecture 2: Edge detection
Jeremy Bolton, PhD Assistant Teaching Professor
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Review: Linear Systems
Edge Detection Today’s reading
Edge Detection Today’s reading
Lecture 2: Edge detection
Edge Detection Today’s reading
Edge Detection Today’s readings Cipolla and Gee Watt,
Lecture 2: Edge detection
Winter in Kraków photographed by Marcin Ryczek
IT472 Digital Image Processing
IT472 Digital Image Processing
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Presentation transcript:

Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection Digital Image Processing Material in this presentation is largely based on/derived from presentations by: Sventlana Lazebnik, and Noah Snavely

Lecture Objectives Previously – Filtering – Interpolation – Warping – Morphing – Compression Today – Edge Detection Image Manipulation and Enhancement Image Analysis Image Compression

Recall: Digital Image Processing Digital Image Processing (DIP) – Is computer manipulation of pictures, or images, that have been converted into numeric form – Typical operations include Image Compression Image Warping Contrast Enhancement Blur Removal Feature Extraction Pattern Recognition

Image Processing Goals Digital image processing is a subclass of signal processing specifically concerned with picture images – Goals To improve image quality for – human perception (subjective) – computer interpretation (objective) Develop methods and applications – to compress images – to provide efficient storage and transmission Your projects should relate to these goals

Related Fields Computer Graphics Computer Vision Artificial Intelligence … others…

Distinction Between Fields Image processing is not just image-in/image-out But it does work to distinguish relational aspects of some fields

Related Fields Image Processing Image Scene Description Computer Graphics Texture mapping Antialiasing Low Level Noise reduction Contrast enhancement Filtering Image-In / Image Out Description In Image Out Extract Attributes Edge Detection Mid Level Segmentation Computer Vision Image In Features Out AI Features In Description Out Object Recognition Cognitive Functions High Level

Image Analysis: Edge Detection Edge Detection – Relates to filtering – Used in various types of image analysis – Useful in other fields Such as Computer Vision

Edge Detection Goal: Identify sudden changes (discontinuities) in an image – Much of the ‘shape’ information of the image can be realized in the edges Ideal Result: an artist’s line drawing – aside: who can use knowledge beyond a single image contour line drawing image from:

What Makes an Edge? Edges are “caused” by various discontinuities depth discontinuity surface color discontinuity illumination discontinuity surface normal discontinuity image source: Steve Seitz

Discontinuity --> Sharp Change

Edge Characterization An edge is a place of rapid change in the image intensity function image intensity function (along horizontal scanline) first derivative edges correspond to extrema of derivative Images from: Svetlana Lazebnik

Image Derivatives How can we differentiate a digital image F(x, y)? Option 1: – Reconstruct a continuous image, f, then compute its derivative Option 2: – Take a discrete derivative (finite difference, convolution) approximate In other notation: 1 i.e. the convolution:

Image Derivatives How can we differentiate a digital image F(x, y)? Option 1: – Reconstruct a continuous image, f, then compute its derivative Option 2: – Take a discrete derivative (finite difference, convolution) How can this be implemented as a linear filter? : :

Finite Difference Filters Other filters for approximating differentiation exist: source: K. Grauman

Image Gradient The gradient of an image: The gradient points in the direction of the most rapid change (increase) in intensity source: Steve Seitz The edge strength is given by the magnitude of the gradient: The gradient direction is given by: This is perpendicular to the direction of the edge

Example: Finite Differences lines in the y-direction lines in the x-direction Source: S Lazebnik

Effects of Noise Consider a single row or column of the image Noisy input image Plot the intensity as a function of position gives a signal: Where is the Edge? source: S. Seitz

Effects of Noise Finite difference filters respond strongly to noise – Image noise results in pixels that look different from their neighbors – The “larger” the noise then the stronger the response Solution? – Smoothing the image – Forces pixels different from their nhbrs to look more like their nhbrs i.e. Removes “largeness” of the difference source: D. Forsyth

Smoothing First To find edges: look for peaks in source: S. Seitz f g f * g

Associative Property of Convolution Differentiation is convolution, and convolution is associative: This saves us one operation: f source: S. Seitz

2D Edge Detection Filter * [1 -1] = Gaussian Derivative of Gaussian ( x )

Derivative of Gaussian Filter x-direction y-direction Which finds horizontal/vertical edges? --- try it and find out!

Options: Sobel Operator Remember there are options for approximating the derivative of the Gaussian – Prewitt, Sobel, Roberts (back a few slides), results vary For illustration consider the Sobel Operator Most “standard” definition of the Sobel operator omit the 1/8 term This terms does not matter so much with regard to edge detection But it IS needed to calculate the correct gradient value

Example: Sobel Operator Source: Wikipedia

Also Consider: Scale of Gaussian’ Filter Scale of Gaussian Derivative Filter 1 pixel3 pixels7 pixels Smoothed derivative removes noise BUT blurs the edges AND finds edges at different ‘scales.’ source: D. Forsyth

Implementation Issues The gradient magnitude is large along a thick trail or ridge – How do we identify actual edge points? – How do we link the edge points to form curves?

Example: Lena Original Image

Finding Edges Gradient Magnitude

Finding Edges where is the edge?

Non-Maximum Suppression Check if pixel is a local maximum along gradient direction – q is a maximum if the value is larger than those at both p and r note: p and r values would be interpolated values source: D. Forsyth

Finding Edges Thresholding

Finding Edges Thinning (non-maximum suppression)

Designing an Edge Detector Criteria for an ‘optimal’ edge detector – Good Detection Minimizes the probability of false positives and false negatives – Good Localization The detected edges must be as close as possible to the true edges – Single Response Returns only one point for each true edge point – Minimize the number of local maxima around the true edge source: L. Fei-Fei

Canny Edge Detector Originated in 1986 – J. Canny, A Computational Approach To Edge Detection, IEEE Trans. Pattern Analysis and Machine Intelligence, 8: , Still widely used today Depends on several parameters  : width (size of kernel) of the Gaussian blur high and low threshold

Canny Edge Detector Filter image with derivative of Gaussian Find magnitude and orientation of gradient Apply non-maximum suppression Linking and thresholding (hysteresis) – Define 2 thresholds: low and high – Use the high threshold to start edge curves and the low threshold to continue them source: L. Fei-Fei, D. Lowe

Edge Linking Assume the marked point is an edge point Construct the tangent to the edge curve – which is normal to the gradient at that point Use this to predict the next points – either r or s as shown source: D. Forsyth

Hysteresis Thresholding Use a high threshold to start edge curves and a low threshold to continue them source: S. Seitz

Example: Hysteresis Thresholding original image high threshold (strong edges) low threshold (weak edges) hysteresis threshold source: L. Fei-Fei

Effect of  (size of kernel) Large  detects large scale edges Small  detects small (finer) scale edges Canny with original source: S. Seitz

Edge Detection is Just the Beginning image segmentation

Questions? Beyond D2L – Examples and information can be found online at: Continue to more stuff as needed

Extra Reference Stuff Follows

Credits Much of the content derived/based on slides for use with the book: – Digital Image Processing, Gonzalez and Woods Some layout and presentation style derived/based on presentations by – Donald House, Texas A&M University, 1999 – Sventlana Lazebnik, UNC, 2010 – Noah Snavely, Cornell University, 2012 – Xin Li, WVU, 2014 – George Wolberg, City College of New York, 2015 – Yao Wang and Zhu Liu, NYU-Poly, 2015