Lecture 2: Filtering CS4670/5670: Computer Vision Kavita Bala.

Slides:



Advertisements
Similar presentations
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 4: Image Processing 1 Ravi Ramamoorthi
Advertisements

Lecture 2: Convolution and edge detection CS4670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
Spatial Filtering (Chapter 3)
Motion illusion, rotating snakes. Slide credit Fei Fei Li.
Computational Photography: Sampling + Reconstruction Connelly Barnes Slides from Alexei Efros and Steve Marschner.
Computational Photography CSE 590 Tamara Berg Filtering & Pyramids.
Computational Photography Prof. Feng Liu Spring /06/2015.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
1 Image filtering Hybrid Images, Oliva et al.,
Computer Vision Introduction to Image formats, reading and writing images, and image environments Image filtering.
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.
Linear filtering. Overview: Linear filtering Linear filters Definition and properties Examples Gaussian smoothing Separability Applications Denoising.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
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.
1 Image filtering
Lecture 2: Image filtering
Matlab Tutorial Continued Files, functions and images.
Linear filtering.
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
Linear Filtering About modifying pixels based on neighborhood. Local methods simplest. Linear means linear combination of neighbors. Linear methods simplest.
Basic Image Processing January 26, 30 and February 1.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Kavita Bala Hybrid Images, Oliva et al.,
CSC589 Introduction to Computer Vision Lecture 3 Gaussian Filter, Histogram Equalization Bei Xiao.
Filtering Course web page: vision.cis.udel.edu/cv March 5, 2003  Lecture 9.
Computer Vision – Lecture 3
CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008.
Filtering Robert Lin April 29, Outline Why filter? Filtering for Graphics Sampling and Reconstruction Convolution The Fourier Transform Overview.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Lecture 3: Edge detection CS4670/5670: Computer Vision Kavita Bala From Sandlot ScienceSandlot Science.
Linear Filters Monday, Jan 24 Prof. Kristen Grauman UT-Austin …
Linear Filters August 27 th 2015 Devi Parikh Virginia Tech 1 Slide credit: Devi Parikh Disclaimer: Many slides have been borrowed from Kristen Grauman,
Image Filtering Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/02/10.
Why is computer vision difficult?
Chapter 5: Neighborhood Processing
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.
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 7 – Linear Filters 1.
Sejong Univ. CH3. Area Processes Convolutions Blurring Sharpening Averaging vs. Median Filtering.
CS 691B Computational Photography
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.
Pixels and Image Filtering Computational Photography Derek Hoiem 08/26/10 Graphic:
Lecture 3: Filtering and Edge detection
Lecture 5: Fourier and Pyramids
Reconnaissance d’objets et vision artificielle
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
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.
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
Images and Filters CSEP 576 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick.
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.
Linear Filters T-11 Computer Vision University of Houston
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Lecture 1: Images and image filtering
Image gradients and edges April 11th, 2017
Fundamentals of Spatial Filtering
Motion illusion, rotating snakes
Linear filtering.
Lecture 5: Resampling, Compositing, and Filtering Li Zhang Spring 2008
Lecture: Image manipulations (2) Filters and kernels
Basic Image Processing
Digital Image Processing Week IV
Linear Filtering CS 678 Spring 2018.
Department of Computer Engineering
Lecture 2: Image filtering
Lecture 1: Images and image filtering
All about convolution.
Presentation transcript:

Lecture 2: Filtering CS4670/5670: Computer Vision Kavita Bala

Announcements PA 1 will be out early next week (Monday) – due in 2 weeks – to be done in groups of two – please form your groups ASAP We will grade in demo sessions

Linear filtering One simple version: linear filtering – Replace each pixel by a linear combination (a weighted sum) of its neighbors – Simple, but powerful – Cross-correlation, convolution The prescription for the linear combination is called the “kernel” (or “mask”, “filter”) kernel 8 Modified image data Source: L. Zhang Local image data

Filter Properties Linearity – Weighted sum of original pixel values – Use same set of weights at each point – S[f + g] = S[f] + S[g] – S[p f + q g] = p S[f] + q S[g] Shift-invariance – If f[m,n]  g[m,n], then f[m-p,n-q]  g[m-p, n-q] – The operator behaves the same everywhere SS

Cross-correlation This is called a cross-correlation operation: Let be the image, be the kernel (of size 2k+1 x 2k+1), and be the output image Can think of as a “dot product” between local neighborhood and kernel for each pixel

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

Convolution Adapted from F. Durand

Pseudo-code CS 4620 and 5625 cover topic in detail

Linear filters: examples Original Shifted left By 1 pixel Source: D. Lowe * =

Convolution Point spread function, impulse response function PSF of Hubble Telescope

Smoothing with box filter Source: D. Forsyth

Gaussian Kernel Source: C. Rasmussen

Gaussian Kernel x 5,  = 1 Source: C. Rasmussen

Gaussian filters = 30 pixels= 1 pixel = 5 pixels = 10 pixels

Mean vs. Gaussian filtering

Detour: Fourier Analysis Every signal has some frequency Fourier analysis finds frequencies of a signal – Sum of sine/cosine waves Source: Foley, van Dam

Detour: Fourier Analysis Source: Foley, van Dam

Convolution is special Convolution in image space – Multiplication in Fourier space Box filter -> sinc in Fourier space Gaussian filter -> Gaussian in Fourier space

Low pass filtering Source: Foley, van Dam

Gaussian filter Removes “high-frequency” components from the image (low-pass filter) Convolution with self is another Gaussian – Convolving twice with Gaussian kernel of width = convolving once with kernel of width Source: K. Grauman * =

Source: Foley, van Dam

Sharpening What does blurring take away? original smoothed (5x5) – detail = sharpened = Let’s add it back: originaldetail + α Source: S. Lazebnik

Linear filters: examples Original Sharpening filter (accentuates edges) Source: D. Lowe = *

Sharpening Source: D. Lowe

Sharpen filter Gaussian scaled impulse Laplacian of Gaussian image blurred image unit impulse (identity)

Sharpen filter unfiltered filtered

“Optical” Convolution Source: Bokeh: Blur in out-of-focus regions of an image. Camera shake * = Source: Fergus, et al. “Removing Camera Shake from a Single Photograph”, SIGGRAPH 2006