Instructor: S. Narasimhan

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 Detection CSE P 576 Larry Zitnick
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
Canny Edge Detector.
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
Convolution, Edge Detection, Sampling : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz.
Announcements Mailing list: –you should have received messages Project 1 out today (due in two weeks)
Edges and Scale Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski – From Sandlot ScienceSandlot.
Lecture 2: Edge detection and resampling
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Lecture 3: Edge detection, continued
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2011 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
Convolution and Edge Detection : Computational Photography Alexei Efros, CMU, Fall 2005 Some slides from Steve Seitz.
Lecture 2: Image filtering
Lecture 4: Edge Based Vision Dr Carole Twining Thursday 18th March 2:00pm – 2:50pm.
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2008 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
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.
Linear Filters and Edges
CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008.
Recap of Friday linear Filtering convolution differential filters
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.
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.
Many slides from Steve Seitz and Larry Zitnick
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2010 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
Recap of Monday linear Filtering convolution differential filters filter types boundary conditions.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP7 Spatial Filters Miguel Tavares Coimbra.
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.
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
COMPUTER VISION D10K-7C02 CV05: Edge Detection Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Lecture 8: Edges and Feature Detection
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
Edges Edges = jumps in brightness/color Brightness jumps marked in white.
Winter in Kraków photographed by Marcin Ryczek
EDGE DETECTION Dr. Amnach Khawne. Basic concept An edge in an image is defined as a position where a significant change in gray-level values occur. An.
Miguel Tavares Coimbra
Edge Detection slides taken and adapted from public websites:
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
Dr. Chang Shu COMP 4900C Winter 2008
Edge Detection Today’s reading
Edge Detection CSE 455 Linda Shapiro.
Edge Detection Today’s reading
Lecture 2: Edge detection
Canny Edge Detector.
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
Presentation transcript:

Instructor: S. Narasimhan Computer Vision Spring 2006 15-385,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm

Aliasing - Really bad in video

Text Aliasing

Edge Detection Lecture #7

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

Origin of Edges Edges are caused by a variety of factors surface normal discontinuity depth discontinuity surface color discontinuity illumination discontinuity Edges are caused by a variety of factors

How can you tell that a pixel is on an edge?

Edge Types Step Edges Roof Edge Line Edges

Real Edges Noisy and Discrete! We want an Edge Operator that produces: Edge Magnitude Edge Orientation High Detection Rate and Good Localization

Gradient Gradient equation: Represents direction of most rapid change in intensity Gradient direction: The edge strength is given by the gradient magnitude

Theory of Edge Detection Ideal edge Unit step function: Image intensity (brightness):

Theory of Edge Detection Image intensity (brightness): Partial derivatives (gradients): Squared gradient: Edge Magnitude: Edge Orientation: Rotationally symmetric, non-linear operator (normal of the edge)

Theory of Edge Detection Image intensity (brightness): Partial derivatives (gradients): Laplacian: Rotationally symmetric, linear operator zero-crossing

Discrete Edge Operators How can we differentiate a discrete image? Finite difference approximations: Convolution masks :

Discrete Edge Operators Second order partial derivatives: Laplacian : Convolution masks : or (more accurate)

The Sobel Operators Better approximations of the gradients exist The Sobel operators below are commonly used -1 1 -2 2 1 2 -1 -2

Comparing Edge Operators Good Localization Noise Sensitive Poor Detection Gradient: Roberts (2 x 2): 1 -1 1 -1 Sobel (3 x 3): -1 1 1 -1 Sobel (5 x 5): -1 -2 2 1 -3 3 -5 5 1 2 3 5 -2 -3 -5 -1 Poor Localization Less Noise Sensitive Good Detection

Effects of Noise Where is the edge?? Consider a single row or column of the image Plotting intensity as a function of position gives a signal Where is the edge??

Solution: Smooth First Where is the edge? Look for peaks in

Derivative Theorem of Convolution …saves us one operation.

Laplacian of Gaussian (LoG) Laplacian of Gaussian operator Where is the edge? Zero-crossings of bottom graph !

2D Gaussian Edge Operators Derivative of Gaussian (DoG) Laplacian of Gaussian Mexican Hat (Sombrero) is the Laplacian operator:

Canny Edge Operator Smooth image I with 2D Gaussian: Find local edge normal directions for each pixel Compute edge magnitudes Locate edges by finding zero-crossings along the edge normal directions (non-maximum suppression)

Non-maximum Suppression Check if pixel is local maximum along gradient direction requires checking interpolated pixels p and r

The Canny Edge Detector original image (Lena)

The Canny Edge Detector magnitude of the gradient

The Canny Edge Detector After non-maximum suppression

Canny Edge Operator The choice of depends on desired behavior original Canny with Canny with The choice of depends on desired behavior large detects large scale edges small detects fine features

Difference of Gaussians (DoG) Laplacian of Gaussian can be approximated by the difference between two different Gaussians

DoG Edge Detection (a) (b) (b)-(a)

Gaussian – Image filter Fourier Transform Gaussian delta function

Unsharp Masking – = + a =

MATLAB demo g = fspecial('gaussian',15,2); imagesc(g) surfl(g) gclown = conv2(clown,g,'same'); imagesc(conv2(clown,[-1 1],'same')); imagesc(conv2(gclown,[-1 1],'same')); dx = conv2(g,[-1 1],'same'); imagesc(conv2(clown,dx,'same'); lg = fspecial('log',15,2); lclown = conv2(clown,lg,'same'); imagesc(lclown) imagesc(clown + .2*lclown)

Edge Thresholding Standard Thresholding: Can only select “strong” edges. Does not guarantee “continuity”. Hysteresis based Thresholding (use two thresholds) Example: For “maybe” edges, decide on the edge if neighboring pixel is a strong edge.

Edge Relaxation a f e g b c h (1) (0) Parallel – Iterative method to adjust edge values on the basis of neighboring edges. a f No Edge e g b Edge to be updated Edge c h (1) Vertex Types: (0)

Edge Relaxation Vertex Types (continued): (2) (3)

Edge Relaxation Algorithm Action Table: Decrement Increment Leave as is 0 - 0 1 - 1 0 - 1 2 - 2 Edge Type 0 - 2 1 - 2 2 - 3 0 - 3 1 - 3 3 - 3 Algorithm: Step 0: Compute Initial Confidence of each edge e: Step 1: Initialize Step 2: Compute Edge Type of each edge e Step 3: Modify confidence based on and Edge Type Step 4: Test to see if all have CONVERGED to either 1 or 0. Else go to Step 2.

Edge Relaxation

Next Class Image Resampling Multi-resolution Image Pyramids