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.

Slides:



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

Spatial Filtering (Chapter 3)
Edges and Contours– Chapter 7
Instructor: Mircea Nicolescu Lecture 6 CS 485 / 685 Computer Vision.
CS 4487/9587 Algorithms for Image Analysis
1Ellen L. Walker Edges Humans easily understand “line drawings” as pictures.
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
Filtering and Edge Detection
Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007
Canny Edge Detector.
1 Image filtering Hybrid Images, Oliva et al.,
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)
MSU CSE 803 Stockman Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute.
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Lecture 1: Images and image filtering
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
Introduction to Computer Vision CS / ECE 181B Thursday, April 22, 2004  Edge detection (HO #5)  HW#3 due, next week  No office hours today.
1 Image filtering Images by Pawan SinhaPawan Sinha.
1 Image filtering
Lecture 2: Image filtering
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
MSU CSE 803 Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Most slides from Steve Seitz
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.
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.
SHINTA P. Juli What are edges in an image? Edge Detection Edge Detection Methods Edge Operators Matlab Program.
EECS 274 Computer Vision Linear Filters and Edges.
CSC508 What You Should Be Doing Code, code, code –Programming Gaussian Convolution Sobel Edge Operator.
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.
EE 4780 Edge Detection.
Many slides from Steve Seitz and Larry Zitnick
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
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.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
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.
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.
Instructor: Mircea Nicolescu Lecture 7
Lecture 8: Edges and Feature Detection
1 Edge Operators a kind of filtering that leads to useful features.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Miguel Tavares Coimbra
Edge Detection slides taken and adapted from public websites:
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Jeremy Bolton, PhD Assistant Teaching Professor
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
Edge Detection Today’s reading
a kind of filtering that leads to useful features
a kind of filtering that leads to useful features
Edge Detection Today’s reading
Lecture 2: Edge detection
Canny Edge Detector.
Linear Operations Using Masks
Feature Detection .
Edge Detection Today’s reading
Edge Detection Today’s readings Cipolla and Gee Watt,
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
IT472 Digital Image Processing
IT472 Digital Image Processing
Presentation transcript:

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 Galilei Farhad Kamangar Computer Science and Engineering Department The University of Texas at Arlington

What Is An Image? Grayscale image: –Think of an image as a function f( x, y ) is the intensity at position ( x, y ) In practice, an image only is defined over a finite A color image is three functions

Images as A Matrix Digital images:: Sample the 2D space on a regular grid R G B row column

Neighborhood operations If we shuffle all pixels in an image then the image can not be recognized (However the histogram of the image will not change) Image information is stored in local neighborhoods. We can perform image operations on local neighborhoods. Example: Replace each pixel with the average of all the neighboring pixels.

Moving Average Source: S. Seitz f( x, y ) g( x, y )

Correlation Filtering an image means replacing each pixel in the original image with a linear combination of that pixel and its neighbors. The filter “template” or “kernel” or “mask” H[u,v] is the values for the weights in the linear combination. The kernel size is 2k+1 by 2k+1 and the center element is assumed to be element (0,0): g( x, y ) h(u,v) “kernel” or “mask” f( x, y )

Convolution Same as cross-correlation, except that the kernel is “flipped” (horizontally and vertically) This is called a convolution operation:

Convolution vs Correlation Cross correlation is: Not commutative Associative No Identity Convolution is: Commutative Associative Identity

Moving Average as Correlation g( x, y ) 1/9 h(u,v) “kernel” or “mask” f( x, y ) cross-correlation

What is the gradient? No Change in horizontal direction Change in vertical direction

Gradient

How do we calculate gradient on a digital image F(x,y)? We can subtract a pixel value from it’s neighbor. Question: Which neighbor?

Gradient Can we compute gradients with cross correlation? Correlation with [-.5, 0,.5] Correlation with [-.5; 0;.5] for derivative in y direction.

Gradient Convolution Masks

Roberts operator

Sobel Common Sobel operators are:

Prewit Operator

What is an Edge? Edge is Where Change Occurs The changes due to noise are not edges Edges in real images are not perfectly sharp Change is measured by derivative Biggest change, derivative has maximum magnitude Or 2 nd derivative is zero.

Edges Edge detection is the process of finding edges in an image A contour a curve that passes through neighboring edge points Edge following is the process of searching the image to determine contours

Derivative Around an Edge If the edge is noisy then derivative is high everywhere. Smooth before taking derivative.

Implementation of 1D Edge Detection

Efficient Implementation of Edge Detection

Use of Second Derivative Edge points are located at the peaks of of the first derivative peaks of the first derivative A threshold is used to detect an edge. Alternative approach is to use the zero crossing of the second derivative. The Laplacian may be used as a second derivative. The Laplacian is symmetric in all directions and is invariant to rotation in the image.

Laplacian Operator Two dimensional equivalent of the second derivative For digital images Mask

Laplacian of Gaussian The second derivative creates zero crossings in the presence of noise. The image should be smoothed before edge detection The Laplacian of a Gaussian LoG smoothes image by combining Gaussian filtering and Laplacian operator

Laplacian of Gaussian Laplacian of Gaussian operator Zero-crossings is the edge position

Discrete LoG

DoG vs LoG Difference of two Gaussians (DoG) can approximate Laplacian of Gaussian many filters with varying σ DoG is implemented by subtracting two Gaussian filters with different σ

Edge detection by subtraction Laplacian of Gaussian Gaussian delta function

Kirsch edge patterns

Canny Edge Detector Smooth the image to remove the noise (Gaussian filter) Find the gradients of the image Apply non-maximum suppression Apply double threshold Select edge pixels by hysteresis (suppress all edges that are weak and not connected to strong edges).

Canny Edge Detector Find points along the curve where the gradient magnitude is biggest.

Non-Maxima Supression Find points along the curve where the gradient magnitude is biggest.