CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008.

Slides:



Advertisements
Similar presentations
Lecture 2: Convolution and edge detection CS4670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
Advertisements

Edge Detection CSE P 576 Larry Zitnick
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.
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
Computer Vision Introduction to Image formats, reading and writing images, and image environments Image filtering.
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Lecture 1: Images and image filtering
Lecture 3: Edge detection, continued
Announcements Kevin Matzen office hours – Tuesday 4-5pm, Thursday 2-3pm, Upson 317 TA: Yin Lou Course lab: Upson 317 – Card access will be setup soon Course.
Filters and Edges. Zebra convolved with Leopard.
Convolution and Edge Detection : Computational Photography Alexei Efros, CMU, Fall 2005 Some slides from Steve Seitz.
Lecture 2: Image filtering
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
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 6: Edge Detection, Image Compositing, and Warping Li Zhang Spring 2010.
Lecture 2: Edge detection CS4670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
Image Processing Edge detection Filtering: Noise suppresion.
Lecture 3: Edge detection CS4670/5670: Computer Vision Kavita Bala From Sandlot ScienceSandlot Science.
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.
Why is computer vision difficult?
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
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.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
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.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
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,
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Noah Snavely Hybrid Images, Oliva et al.,
Edges Edges = jumps in brightness/color Brightness jumps marked in white.
Winter in Kraków photographed by Marcin Ryczek
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
9th Lecture - Image Filters
Edge Detection Today’s reading
Lecture 2: Edge detection
Canny Edge Detector.
Lecture 5: Resampling, Compositing, and Filtering Li Zhang Spring 2008
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:

CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008

Today Eyes Cameras

Image as a discreet function Represented by a matrix

What is image filtering? Modify the pixels in an image based on some function of a local neighborhood of the pixels Local image data 7 Modified image data Some function

Linear functions Simplest: linear filtering. – Replace each pixel by a linear combination of its neighbors. The prescription for the linear combination is called the “convolution kernel” Local image datakernel 7 Modified image data

Convolution I

Linear filtering (warm-up slide) original 0 Pixel offset coefficient 1.0 ?

Linear filtering (warm-up slide) original 0 Pixel offset coefficient 1.0 Filtered (no change)

Linear filtering 0 Pixel offset coefficient original 1.0 ?

shift 0 Pixel offset coefficient original 1.0 shifted

Linear filtering 0 Pixel offset coefficient original 0.3 ?

Blurring 0 Pixel offset coefficient original 0.3 Blurred (filter applied in both dimensions).

0 Pixel offset coefficient 0.3 original 8 filtered 2.4 impulse Blur Examples

0 Pixel offset coefficient 0.3 original 8 filtered impulse edge 0 Pixel offset coefficient 0.3 original 8 filtered 2.4 Blur Examples

original ? Linear filtering (warm-up slide)

original Filtered (no change) Linear Filtering (no change)

original ? Linear Filtering

(remember blurring) 0 Pixel offset coefficient original 0.3 Blurred (filter applied in both dimensions).

original Sharpened original Sharpening

Sharpening example coefficient -0.3 original 8 Sharpened (differences are accentuated; constant areas are left untouched)

Sharpening beforeafter

Spatial resolution and color R G B original

Blurring the G component R G B original processed

Blurring the R component original processed R G B

Blurring the B component original R G B processed

L a b A rotation of the color coordinates into directions that are more perceptually meaningful: L: luminance, a: red-green, b: blue-yellow Lab Color Component

L a b original processed Bluring L

original L a b processed Bluring a

original L a b processed Bluring b

Application to image compression (compression is about hiding differences from the true image where you can’t see them).

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

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

Image gradient The gradient of an image: The gradient direction is given by: The gradient points in the direction of most rapid change in intensity –how does the gradient relate to the direction of the edge? The edge strength is given by the gradient magnitude

Effects of noise Consider a single row or column of the image – Plotting intensity as a function of position gives a signal Where is the edge? How to compute a derivative?

Where is the edge? Solution: smooth first Look for peaks in

Derivative theorem of convolution This saves us one operation:

Laplacian of Gaussian Consider Laplacian of Gaussian operator Where is the edge?Zero-crossings of bottom graph

Canny Edge Detector Smooth image I with 2D Gaussian: Find local edge normal directions for each pixel Along this direction, compute image gradient Locate edges by finding max gradient magnitude (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 Detector Canny with original The choice of depends on desired behavior –large detects large scale edges –small detects fine features