Computer Vision Spring 2012 15-385,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.

Slides:



Advertisements
Similar presentations
Image Processing. Overview ImagesPixel Filters Neighborhood Filters Dithering.
Advertisements

CSCE 643 Computer Vision: Template Matching, Image Pyramids and Denoising Jinxiang Chai.
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Spatial Filtering (Chapter 3)
CS 4487/9587 Algorithms for Image Analysis
Lecture 4 Linear Filters and Convolution
1 Image filtering Hybrid Images, Oliva et al.,
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.
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.
3-D Computer Vision – Ioannis Stamos 3-D Computer Vision CSc Image Processing I/Filtering.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
1 Image filtering Images by Pawan SinhaPawan Sinha.
1 Image filtering
1 Images and Transformations Images by Pawan SinhaPawan Sinha.
Linear filtering.
1 Image filtering Hybrid Images, Oliva et al.,
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.
Basic Image Processing January 26, 30 and February 1.
Most slides from Steve Seitz
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Kavita Bala Hybrid Images, Oliva et al.,
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
Filtering Course web page: vision.cis.udel.edu/cv March 5, 2003  Lecture 9.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Spatial Filtering: Basics
CSC 589 Introduction to Computer Vision Lecture 2 linear filtering Instructor: Bei Xiao Thursday, January 15th Salvador Dali “Gala Contemplating the Mediterranean.
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP6 Frequency Space Miguel Tavares Coimbra.
CS654: Digital Image Analysis
Linear filtering. Motivation: Noise reduction Given a camera and a still scene, how can you reduce noise? Take lots of images and average them! What’s.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
Templates, Image Pyramids, and Filter Banks
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
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.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
CS 691B Computational Photography
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Noah Snavely Hybrid Images, Oliva et al.,
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
Miguel Tavares Coimbra
Linear Filters T-11 Computer Vision University of Houston
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Lecture 1: Images and image filtering
Image filtering Hybrid Images, Oliva et al.,
Image filtering Images by Pawan Sinha.
HCI / CprE / ComS 575: Computational Perception
Image filtering Images by Pawan Sinha.
Image Processing Today’s readings For Monday
Image filtering Images by Pawan Sinha.
Linear filtering.
Basic Image Processing
Digital Image Processing Week IV
Most slides from Steve Seitz
Image filtering Images by Pawan Sinha.
Image filtering
Image filtering
Linear Operations Using Masks
Lecture 1: Images and image filtering
Intensity Transformation
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Most slides from Steve Seitz
All about convolution.
Presentation transcript:

Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am

Image Processing and Filtering Lecture #3

Image as a Function We can think of an image as a function, f, f: R 2  R –f (x, y) gives the intensity at position (x, y) –Realistically, we expect the image only to be defined over a rectangle, with a finite range: f: [a,b] x [c,d]  [0,1] A color image is just three functions pasted together. We can write this as a “ vector- valued ” function:

Image as a Function

Image Processing Define a new image g in terms of an existing image f –We can transform either the domain or the range of f Range transformation: What kinds of operations can this perform?

Point Operations

Point Processing Original Darken Invert Lighten Lower Contrast Raise Contrast Nonlinear Raise Contrast Nonlinear Lower Contrast

Point Processing Original Darken Invert Lighten Lower Contrast Raise Contrast Nonlinear Raise Contrast Nonlinear Lower Contrast x + 128x * x ((x / 255.0) ^2) * x - 128x / 2x ((x / 255.0) ^ 0.33) * 255.0

Neighborhood Operations

Neighborhood operations Image Edge detectionBlur

Some operations preserve the range but change the domain of f : What kinds of operations can this perform? Still other operations operate on both the domain and the range of f. Image Processing

Face Morphing

Linear Shift Invariant Systems (LSIS) Linearity: Shift invariance:

Example of LSIS Defocused image ( g ) is a processed version of the focused image ( f ) Ideal lens is a LSIS LSIS Linearity: Brightness variation Shift invariance: Scene movement (not valid for lenses with non-linear distortions)

Convolution LSIS is doing convolution; convolution is linear and shift invariant kernel h

Convolution - Example Eric Weinstein’s Math World

Convolution - Example

Convolution Kernel – Impulse Response What h will give us g = f ? Dirac Delta Function (Unit Impulse) Sifting property:

Point Spread Function Optical System sceneimage Ideally, the optical system should be a Dirac delta function. Optical System point sourcepoint spread function However, optical systems are never ideal. Point spread function of Human Eyes

Point Spread Function normal visionmyopiahyperopia Images by Richmond Eye Associates astigmatism

Properties of Convolution Commutative Associative Cascade system

Images are Discrete and Finite Convolution Fourier Transform Inverse Fourier Transform

Averaging Let’s think about averaging pixel values For n=2, convolve pixel values with 121 2D images: 121 (a) use then or (b) use Which is faster?

The convolution kernel large Repeated averaging Gaussian smoothing Averaging

Gaussian Smoothing Gaussian kernel pixels Filter size…can be very large (truncate, if necessary) 2D Gaussian is separable! Use two 1D Gaussian filters

A Gaussian kernel gives less weight to pixels further from the center of the window (5x5, sigma=0.5) This kernel is an approximation of a Gaussian function: Gaussian Smoothing

original

Mean vs. Gaussian filtering

Gaussian Smoothing by Charles Allen Gillbert by Harmon & Julesz

Gaussian Smoothing

Border Problem

Ignore –Output image will be smaller than original Pad with constant values –Can introduce substantial 1 st order derivative values Pad with reflection –Can introduce substantial 2 nd order derivative values

Median Filter Smoothing is averaging (a) Blurs edges (b) Sensitive to outliers (a) (b) –Sort values around the pixel –Select middle value (median) –Non-linear (Cannot be implemented with convolution) Median filtering sortmedian

3x3 5x5 7x7 Salt and pepper noise Gaussian noise

Correlation How do we locate the template in the image? Minimize Maximize Cross-correlation template

Cross-correlation Note: Auto-correlation We need to be the maximum! A B C f t Problem:

Normalized Correlation Account for energy differences

Announcements Project 1 will be out later this evening. WARNING! Start projects early.

Next Class Image Processing and Filtering (continued) Fourier or frequency domain analysis Horn, Chapter 6