Lecture 6: Edge Detection CAP 5415: Computer Vision Fall 2008.

Slides:



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

Edges and Contours– Chapter 7
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.
CS 4487/9587 Algorithms for Image Analysis
EDGE DETECTION.
1Ellen L. Walker Edges Humans easily understand “line drawings” as pictures.
Edge and Corner Detection Reading: Chapter 8 (skip 8.1) Goal: Identify sudden changes (discontinuities) in an image This is where most shape information.
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
Canny Edge Detector.
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.
Filtering and Edge Detection. Local Neighborhoods Hard to tell anything from a single pixelHard to tell anything from a single pixel – Example: you see.
Computer Vision - A Modern Approach
Canny Edge Detector1 1)Smooth image with a Gaussian optimizes the trade-off between noise filtering and edge localization 2)Compute the Gradient magnitude.
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering
Segmentation (Section 10.2)
Zoom Lenses – Varifocal
Introduction to Computer Vision CS / ECE 181B Thursday, April 22, 2004  Edge detection (HO #5)  HW#3 due, next week  No office hours today.
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 4: Edge Based Vision Dr Carole Twining Thursday 18th March 2:00pm – 2:50pm.
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.
Computer Vision P. Schrater Spring 2003
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
CAP 5415 Computer Vision Fall 2004
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 Szeliski, Ch 4.1.2, From Sandlot.
Detection of nerves in Ultrasound Images using edge detection techniques NIRANJAN TALLAPALLY.
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
CSC508 What You Should Be Doing Code, code, code –Programming Gaussian Convolution Sobel Edge Operator.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
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.
Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Gradients and edges Points of sharp change in an image are interesting:
Edges.
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.
Edge-Detection and Wavelet Transform
Lecture 10: Lines from Edges, Interest Points, Binary Operations CAP 5415: Computer Vision Fall 2006.
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],
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.
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 Using an NVIDIA GPU and CUDA Alex Wade CAP6938 Final Project.
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Instructor: Mircea Nicolescu Lecture 7
Sliding Window Filters Longin Jan Latecki October 9, 2002.
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:
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
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.
Levi Smith REU Week 1.
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
Presentation transcript:

Lecture 6: Edge Detection CAP 5415: Computer Vision Fall 2008

Announcements PS 2 is available Please read it by Thursday During Thursday lecture, I will be going over it in some detail Monday - Computer Vision Distinguished Lecturer series

Edge Detection “Nonetheless, experience building vision systems suggests that very often, interesting things are happening in an image at an edge and it is worth knowing where the edges are.” – Forsyth and Ponce in “Computer Vision- A Modern Approach

Simplest Strategy Calculate the magnitude of the image gradient Compare against a threshold

Problems We get thick edges Redundant, especially if we going to be searching in places where edges are found

Solution Identify the local maximums Called “non-maximal suppression”

Basic Idea The gradient will be perpendicular to the edge Search along the gradient for the maximum point (From Slides by Forsyth)‏

Implementation Quantize the gradient orientation to a fixed number of orientations Search along those lines in a window around points above a threshold (From Course Notes by Shah)‏

Comparison Gradient ThresholdingWith non-maximal suppression

Avoiding Non-Maximal Suppression Can we formulate the problem so we can eliminate non-maximal suppression? Remember: we want to find the maxima and minima of the gradient Look for places where 2 nd derivative is zero Called zero-crossings (you may not see the 2 nd derivative actually be zero)‏

The second derivative is directional, but we can us the Laplacian which is rotationally invariant The image is usually smoothed first to eliminate noise Computing Laplacian after filtering with a Gaussian is equivalent to convolving with a Laplacian of a Gaussian Finding Zero-Crossings

The Laplacian of Gaussian Sometimes called a center-surround filter Response is similar to the response of some neurons in the visual cortex

Implementation Filter with Laplacian of Gaussian Look for patterns like {+,0,-} or {+,-} Also known as the Marr-Hildreth Edge Detector

Disadvantages Behaves poorly at corners (From Slides by Forsyth)‏

Noise and Edge Detection Noise is a bad thing for edge-detection –Usually assume that noise is white Gaussian noise (not likely in reality!)‏ Introduces many spurious edges Low-pass filtering is a simple way of reducing the noise –For the Laplacian of Gaussian Method, it is integrated into the edge detection

Why does filtering with a Gaussian reduce noise? Forsyth and Ponce’s explanation: “Secondly, pixels will have a greater tendency to look like neighbouring pixels — if we take stationary additive Gaussian noise, and smooth it, the pixel values of the resulting signal are no longer independent. In some sense, this is what smoothing was about — recall we introduced smoothing as a method to predict a pixel’s value from the values of its neighbours. However, if pixels tend to look like their neighbours, then derivatives must be smaller (because they measure the tendency of pixels to look different from their neighbours).” – from Computer Vision – A Modern Approach

How I like to see it If F is the DFT of an image, then |F| 2 is the power at each frequency In the average power image, the power is equal at every frequency for i=1:10000 cimg=randn(128); cum=cum+abs(fft2(cimg)).^2; end

Remember: Energy in Images is concentrated in low-frequencies When you low-pass filter, you’re retaining the relatively important low-frequencies and eliminating the noise in the high frequencies, where you don’t expect much image energy Log-Spectrum of the Einstein Image

Smoothing Fast The Gaussian Filter is a separable filter The 2D filter can be expressed as a series of 2 1D convolutions For a 9x9 filter, a separable filter requires 18 computations versus 81 for the 2D filter * =

Further Improvements to the Gradient Edge-Dector Fundamental Steps in Gradient-Based Edge Dection that we have talked about: –Smooth to reduce noise –Compute Gradients –Do Non-maximal suppression There is one more heuristic that we can advantage of. Edges tend to be continuous

Hysteresis Thresholding Edges tend to be continuous Still threshold the gradient Use a lower threshold if a neighboring point is an edge The “Canny Edge Detector” uses all of these heuristics

Is there better information than the gradient? Martin, Fowlkes, and Malik gathered a set of human segmentations From Martin, Fowlkes, and Malik (2004)‏

Capturing Texture

Texture and Color Help This is a precision- recall curve

Interesting Side-note The edge-detector was a classifier The type of classifier didn’t matter for this task

Next Time: –Fitting Lines to Edge Points –Binary Operations