Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

Similar documents
Filtering and Edge Detection. Computer Vision I. CSE252A Lecture 10. Announcement

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Edge Detection (with a sidelight introduction to linear, associative operators). Images

Multimedia Computing: Algorithms, Systems, and Applications: Edge Detection

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

CS534: Introduction to Computer Vision Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

CS 4495 Computer Vision. Linear Filtering 2: Templates, Edges. Aaron Bobick. School of Interactive Computing. Templates/Edges

CS5670: Computer Vision

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

Generalized Hough Transform, line fitting

Edge Detection. Today s reading. Cipolla & Gee on edge detection (available online) From Sandlot Science

CS4670: Computer Vision Noah Snavely

Edge Detection. Announcements. Edge detection. Origin of Edges. Mailing list: you should have received messages

Biomedical Image Analysis. Point, Edge and Line Detection

Lecture 7: Most Common Edge Detectors

Digital Image Processing. Image Enhancement - Filtering

Edge Detection Lecture 03 Computer Vision

Anno accademico 2006/2007. Davide Migliore

Neighborhood operations

Edges and Binary Images

Edges, interpolation, templates. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

What Are Edges? Lecture 5: Gradients and Edge Detection. Boundaries of objects. Boundaries of Lighting. Types of Edges (1D Profiles)

Other Linear Filters CS 211A

Edge Detection. CSE 576 Ali Farhadi. Many slides from Steve Seitz and Larry Zitnick

Lecture 6: Edge Detection

Edge Detection. CSC320: Introduction to Visual Computing Michael Guerzhoy. René Magritte, Decalcomania. Many slides from Derek Hoiem, Robert Collins

Edge and corner detection

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University

Prof. Feng Liu. Winter /15/2019

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Edge Detection CSC 767

[ ] Review. Edges and Binary Images. Edge detection. Derivative of Gaussian filter. Image gradient. Tuesday, Sept 16

What is an edge? Paint. Depth discontinuity. Material change. Texture boundary

Digital Image Processing COSC 6380/4393

Image Analysis. Edge Detection

Line, edge, blob and corner detection

Image Processing

Edge and local feature detection - 2. Importance of edge detection in computer vision

EE795: Computer Vision and Intelligent Systems

Linear Operations Using Masks

Computer Vision I - Filtering and Feature detection

Lecture 4: Image Processing

Lecture: Edge Detection

Image Analysis. Edge Detection

PA2 Introduction to Tracking. Connected Components. Moving Object Detection. Pixel Grouping. After Pixel Grouping 2/19/17. Any questions?

Edge detection. Gradient-based edge operators

Filtering and Enhancing Images

Image gradients and edges April 11 th, 2017

Image gradients and edges April 10 th, 2018

Concepts in. Edge Detection

Review of Filtering. Filtering in frequency domain

Filtering Images. Contents

Lecture 4: Spatial Domain Transformations

Introduction to Computer Vision

Concepts in. Edge Detection

Image features. Image Features

Lesson 6: Contours. 1. Introduction. 2. Image filtering: Convolution. 3. Edge Detection. 4. Contour segmentation

Ulrik Söderström 16 Feb Image Processing. Segmentation

Edge Detection. CS664 Computer Vision. 3. Edges. Several Causes of Edges. Detecting Edges. Finite Differences. The Gradient

Computer Vision I - Basics of Image Processing Part 2

Edge Detection. EE/CSE 576 Linda Shapiro

ME/CS 132: Introduction to Vision-based Robot Navigation! Low-level Image Processing" Larry Matthies"

Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

Local Image preprocessing (cont d)

Biomedical Image Analysis. Spatial Filtering

Edge Detection. Computer Vision Shiv Ram Dubey, IIIT Sri City

Introduction. Introduction. Related Research. SIFT method. SIFT method. Distinctive Image Features from Scale-Invariant. Scale.

Straight Lines and Hough

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

DIGITAL IMAGE PROCESSING

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

Solution: filter the image, then subsample F 1 F 2. subsample blur subsample. blur

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space

Denoising and Edge Detection Using Sobelmethod

2D Image Processing INFORMATIK. Kaiserlautern University. DFKI Deutsches Forschungszentrum für Künstliche Intelligenz

Image Segmentation and Registration

IMAGE PROCESSING >FILTERS AND EDGE DETECTION FOR COLOR IMAGES UTRECHT UNIVERSITY RONALD POPPE

Segmentation and Grouping

Filtering Applications & Edge Detection. GV12/3072 Image Processing.

Scott Smith Advanced Image Processing March 15, Speeded-Up Robust Features SURF

Comparison between Various Edge Detection Methods on Satellite Image

Experiments with Edge Detection using One-dimensional Surface Fitting

Image gradients and edges

Implementing the Scale Invariant Feature Transform(SIFT) Method

Lecture Image Enhancement and Spatial Filtering

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Edges and Binary Image Analysis April 12 th, 2018

A Comparative Assessment of the Performances of Different Edge Detection Operator using Harris Corner Detection Method

Edge Detection. CMPUT 206: Introduction to Digital Image Processing. Nilanjan Ray. Source:

Image gradients and edges

Computer Vision: 4. Filtering. By I-Chen Lin Dept. of CS, National Chiao Tung University

SYDE 575: Introduction to Image Processing

EEM 463 Introduction to Image Processing. Week 3: Intensity Transformations

An Algorithm for Blurred Thermal image edge enhancement for security by image processing technique

Transcription:

Announcements Edge Detection Introduction to Computer Vision CSE 152 Lecture 9 Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3. Reading from textbook An Isotropic Gaussian The picture shows a smoothing kernel proportional to exp x2 + y 2 2σ 2 Method : Median filters : Principle 1. rank-order neighborhood intensities in a window 2. take middle value (which is a reasonable model of a circularly symmetric fuzzy blob) non-linear filter no new grey levels emerge... Median filters : example filters have width 5 : Filters are templates Applying a filter at some point can be seen as taking a dotproduct between the image and some vector Filtering the image is a set of dot products Insight filters look like the effects they are intended to find filters find effects they look like

Edges Physical causes of edges 1. Object boundaries 2. Surface normal discontinuities 3. Reflectance (albedo) discontinuities 4. Lighting discontinuities (shadow boundaries) Object Boundaries Surface normal discontinuities Boundaries of materials properties Boundaries of lighting

Noisy Step Edge Derivative is high everywhere. Must smooth before taking gradient. Edge is Where Change Occurs: 1-D Change is measured by derivative in 1D Ideal Edge Smoothed Edge First Derivative Second Derivative Biggest change, derivative has maximum magnitude Or 2nd derivative is zero. Numerical Derivatives f(x) X -h X X +h Take Taylor series expansion of f(x) about x f(x) = f(x )+f (x )(x-x ) + ½ f (x)(x-x ) 2 + Consider Samples taken at increments of h and first two terms, we have f(x +h) = f(x )+f (x )h+ ½ f (x )h 2 f(x -h) = f(x )-f (x )h+ ½ f (x )h 2 Subtracting and adding f(x +h) and f(x -h) respectively yields f ( x + h) f ( x h) f '( x) = 2h f ( x + h) + 2 f ( x) + f ( x h) f ''( x) = 2 2h x On numerical derivatives Blackboard Convolve with First Derivative: [-1 1] Second Derivative: [-1 2-1] Implementing 1-D Edge Detection 2D Edge Detection: Canny 1. Filter out noise: convolve with Gaussian 2. Take a derivative: convolve with [-1 1] We can combine 1 and 2. 3. Find the peak: Two issues: Should be a local maximum. Should be sufficiently high. 1. Filter out noise Use a 2D Gaussian Filter. J = I * G 2. Take a derivative Compute the magnitude of the gradient: J J J = ( J x, J y ) =, is the Gradient x J = J + J 2 x 2 y

What is the gradient? What is the gradient? No Change I I, = ( k,) x Change I I, = (, k) x Change No Change Smoothing and Differentiation Need two derivatives, in x and y direction. Filter with Gaussian and then compute Gradient, OR Use a derivative of Gaussian filter because differentiation is convolution, and convolution is associative G x σ G σ Directional Derivatives θ Gσ G cosθ + sinθ x σ Finding derivatives Is this di/dx or di/dy? σ = 1 σ = 2 y x There are three major issues: 1. The gradient magnitude at different scales is different; which scale should we choose? 2. The gradient magnitude is large along thick trail; how do we identify the significant points? 3. How do we link the relevant points up into curves?

There is ALWAYS a tradeoff between smoothing and good edge localization! Magnitude of Gradient Image with Edge Edge Location 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? Image + Noise Derivatives detect edge and noise Smoothed derivative removes noise, but blurs edge Non-maximum suppression Non-maximum suppression For every pixel in the image (e.g., q) we have an estimate of edge direction and edge normal (shown at q) Using normal at q, find two points p and r on adjacent rows (or columns). We have a maximum if the value is larger than those at both p and at r. Interpolate to get values. Non-maximum suppression Predicting the next edge point Assume the marked point is an edge point. Then we construct the tangent to the edge curve (which is normal to the gradient at that point) and use this to predict the next points (here either r or s). Hysteresis Tresholding Track edge points by starting at point where gradient magnitude > τ high. Follow edge in direction orthogonal to gradient. Stop when gradient magnitude < τ low. i.e., use a high threshold to start edge curves and a low threshold to continue them. τ high τ low

Input image Single Threshold T=15 T=5 Hysteresis T h =15 T l = 5 Hysteresis thresholding fine scale high threshold coarse scale, High threshold coarse scale Low high threshold

Hysteresis Tresholding Track edge points by starting at point where gradient magnitude > τ high. Follow edge in direction orthogonal to gradient. Stop when gradient magnitude < τ low. i.e., use a high threshold to start edge curves and a low threshold to continue them. τ high Why is Canny so Dominant Still widely used after 2 years. 1. Theory is nice (but end result same,). 2. Details good (magnitude of gradient, non-max suppression). 3. Hysteresis an important heuristic. 4. Code was distributed. τ low