Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…

Slides:



Advertisements
Similar presentations
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
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 CSE 590 Tamara Berg Filtering & Pyramids.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Computational Photography Prof. Feng Liu Spring /06/2015.
Spatial Filtering Dan Witzner Hansen. Recap Exercises??? Feedback Last lectures?
Lecture 4 Linear Filters and Convolution
Lecture 2: Filtering CS4670/5670: Computer Vision Kavita Bala.
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
Lecture 2: Edge detection and resampling
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.
Linear filtering. Overview: Linear filtering Linear filters Definition and properties Examples Gaussian smoothing Separability Applications Denoising.
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.
Lecture 2: Image filtering
Linear filtering.
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.
Linear Filtering About modifying pixels based on neighborhood. Local methods simplest. Linear means linear combination of neighbors. Linear methods simplest.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Kavita Bala Hybrid Images, Oliva et al.,
Computer Vision – Lecture 3
Applications of Image Filters Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/04/10.
CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Edge Detection Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection 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?
Image gradients and edges Tuesday, September 1 st 2015 Devi Parikh Virginia Tech Disclaimer: Many slides have been borrowed from Kristen Grauman, who may.
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.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
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.
CS 691B Computational Photography
Announcements Project 0 due tomorrow night. Edge Detection Today’s readings Cipolla and Gee (handout) –supplemental: Forsyth, chapter 9Forsyth For Friday.
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.
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.
Miguel Tavares Coimbra
Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran
Linear Filters and Edges Chapters 7 and 8
Linear Filters T-11 Computer Vision University of Houston
Linear Filters April 6th, 2017
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Image gradients and edges
Edge Detection CS 678 Spring 2018.
- photometric aspects of image formation gray level images
Lecture 1: Images and image filtering
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Image gradients and edges April 11th, 2017
Motion illusion, rotating snakes
Linear filtering.
Digital Image Processing Week IV
Linear Filtering CS 678 Spring 2018.
Linear Operations Using Masks
Department of Computer Engineering
Lecture 2: Image filtering
Lecture 1: Images and image filtering
IT472 Digital Image Processing
Presentation transcript:

Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…

Grauman Motivation: noise reduction We can measure noise in multiple images of the same static scene. How could we reduce the noise, i.e., give an estimate of the true intensities?

Grauman Motivation: noise reduction How could we reduce the noise, i.e., give an estimate of the true intensities? What if there’s only one image?

Grauman First attempt at a solution Let’s replace each pixel with an average of all the values in its neighborhood Assumptions: – Expect pixels to be like their neighbors – Expect noise processes to be independent from pixel to pixel

Grauman First attempt at a solution Let’s replace each pixel with an average of all the values in its neighborhood Moving average in 1D: Source: S. Marschner

Grauman Weighted Moving Average Can add weights to our moving average Weights [1, 1, 1, 1, 1] / 5 Source: S. Marschner

Grauman Weighted Moving Average Non-uniform weights [1, 4, 6, 4, 1] / 16 Source: S. Marschner

Grauman Moving Average In 2D Source: S. Seitz

Grauman Moving Average In 2D Source: S. Seitz

Grauman Moving Average In 2D Source: S. Seitz

Grauman Moving Average In 2D Source: S. Seitz

Grauman Moving Average In 2D Source: S. Seitz

Grauman Moving Average In 2D Source: S. Seitz

Grauman Convolution Convolution: – Flip the filter in both dimensions (bottom to top, right to left) – Then apply cross-correlation F H

Grauman Median filter No new pixel values introduced Removes spikes: good for impulse, salt & pepper noise

Grauman Median filter Salt and pepper noise Median filtered Source: M. Hebert Plots of a row of the image

Grauman Smoothing with a Gaussian for sigma=1:3:10 h = fspecial('gaussian‘, fsize, sigma); out = imfilter(im, h); imshow(out); pause; end … Parameter σ is the “scale” / “width” / “spread” of the Gaussian kernel, and controls the amount of smoothing.

Grauman Partial derivatives of an image Which shows changes with respect to x? or ? -1 1 (showing flipped filters)

Grauman 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?

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

Grauman Derivative property of convolution Differentiation property of convolution.

Grauman Derivative of Gaussian filters x-direction y-direction Source: L. Lazebnik

Grauman Effect of σ on derivatives The apparent structures differ depending on Gaussian’s scale parameter. Larger values: larger scale edges detected Smaller values: finer features detected σ = 1 pixel σ = 3 pixels

Grauman Template matching Filters as templates: Note that filters look like the effects they are intended to find --- “matched filters” Use normalized cross-correlation score to find a given pattern (template) in the image. – Szeliski Eq Normalization needed to control for relative brightnesses.

Grauman Template matching Scene Template (mask) A toy example

Grauman Template matching Template Detected template

Grauman Template matching Detected templateCorrelation map

Grauman Where’s Waldo? Scene Template

Grauman Where’s Waldo? Scene Template

Grauman Where’s Waldo? Detected templateCorrelation map

Grauman Template matching Scene Template What if the template is not identical to some subimage in the scene?

Grauman

So, what scale to choose? It depends what we’re looking for. Too fine of a scale…can’t see the forest for the trees. Too coarse of a scale…can’t tell the maple grain from the cherry.

Grauman Predict the filtered outputs * = ? * *

Grauman Practice with linear filters Original ? Source: D. Lowe

Grauman Practice with linear filters Original Filtered (no change) Source: D. Lowe

Grauman Practice with linear filters Original ? Source: D. Lowe

Grauman Practice with linear filters Original Shifted left by 1 pixel with correlation Source: D. Lowe

Grauman Practice with linear filters Original ? Source: D. Lowe

Grauman Practice with linear filters Original Blur (with a box filter) Source: D. Lowe

Grauman Practice with linear filters Original ? Source: D. Lowe

Grauman Practice with linear filters Original Sharpening filter - Accentuates differences with local average Source: D. Lowe

Grauman Filtering examples: sharpening