Images and Filters CSEP 576 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick.

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.
Lecture 6 Sharpening Filters
Computational Photography: Sampling + Reconstruction Connelly Barnes Slides from Alexei Efros and Steve Marschner.
Computational Photography CSE 590 Tamara Berg Filtering & Pyramids.
Edge Detection. Our goal is to extract a “line drawing” representation from an image Useful for recognition: edges contain shape information –invariance.
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.
Filtering CSE P 576 Larry Zitnick
Lecture 2: Filtering CS4670/5670: Computer Vision Kavita Bala.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
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.
Computer Vision Introduction to Image formats, reading and writing images, and image environments Image filtering.
Lecture 1: Images and image filtering
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.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Face Detection CSE 576. Face detection State-of-the-art face detection demo (Courtesy Boris Babenko)Boris Babenko.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Kavita Bala Hybrid Images, Oliva et al.,
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
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.
Image Processing Edge detection Filtering: Noise suppresion.
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.
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Pixels and Image Filtering Computer Vision Derek Hoiem, University of Illinois 02/01/11 Graphic:
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:
Reconnaissance d’objets et vision artificielle
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
Sharpening Spatial Filters ( high pass)  Previously we have looked at smoothing filters which remove fine detail  Sharpening spatial filters seek to.
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…
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Noah Snavely Hybrid Images, Oliva et al.,
Filters– Chapter 6. Filter Difference between a Filter and a Point Operation is that a Filter utilizes a neighborhood of pixels from the input image to.
Image Filtering in Spatial domain
Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran
ECE 692 – Advanced Topics in Computer Vision
Pixels and Image Filtering
A Gentle Introduction to Bilateral Filtering and its Applications
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Image gradients and edges
Digital Image Processing
Edge Detection CS 678 Spring 2018.
Lecture 1: Images and image filtering
A Gentle Introduction to Bilateral Filtering and its Applications
Recap from Wednesday Spectra and Color Light capture in cameras and humans.
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
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Motion illusion, rotating snakes
Linear filtering.
Lecture: Image manipulations (2) Filters and kernels
Linear Operations Using Masks
Department of Computer Engineering
Lecture 2: Image filtering
Lecture 1: Images and image filtering
Winter in Kraków photographed by Marcin Ryczek
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Images and Filters CSEP 576 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick

What is an image?

F() = Image Operations (functions of functions)

F() = Image Operations (functions of functions)

F() = Image Operations (functions of functions)

F(, ) = Image Operations (functions of functions) 0.23

Local image functions F() =

Credit: S. Seitz Image filtering

Image filtering Credit: S. Seitz

Image filtering Credit: S. Seitz

Image filtering Credit: S. Seitz

Image filtering Credit: S. Seitz

Image filtering Credit: S. Seitz ?

Image filtering Credit: S. Seitz ?

Image filtering Credit: S. Seitz

What does it do? Replaces each pixel with an average of its neighborhood Achieve smoothing effect (remove sharp features) Slide credit: David Lowe (UBC) Box Filter

Smoothing with box filter

Practice with linear filters Original ? Source: D. Lowe

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

Practice with linear filters Original ? Source: D. Lowe

Practice with linear filters Original Shifted left By 1 pixel Source: D. Lowe

Practice with linear filters Original ? (Note that filter sums to 1) Source: D. Lowe

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

Sharpening Source: D. Lowe

Other filters Vertical Edge (absolute value) Sobel

Other filters Horizontal Edge (absolute value) Sobel

Basic gradient filters or Horizontal GradientVertical Gradient 10 or

Gaussian filter * = Input image f Filter h Output image g Compute empirically

Gaussian vs. mean filters What does real blur look like?

Spatially-weighted average x 5,  = 1 Slide credit: Christopher Rasmussen Important filter: Gaussian

Smoothing with Gaussian filter

Smoothing with box filter

Gaussian filters What parameters matter here? Variance of Gaussian: determines extent of smoothing Source: K. Grauman

Smoothing with a Gaussian … Parameter σ is the “scale” / “width” / “spread” of the Gaussian kernel, and controls the amount of smoothing. Source: K. Grauman

First and second derivatives * =

Original First Derivative xSecond Derivative x, y What are these good for?

Subtracting filters OriginalSecond Derivative Sharpened

for some Combining filters * * = = It’s also true:

Combining Gaussian filters More blur than either individually (but less than ) * = ?

Separable filters * = Compute Gaussian in horizontal direction, followed by the vertical direction. Not all filters are separable. Freeman and Adelson, 1991 Much faster!

Sums of rectangular regions How do we compute the sum of the pixels in the red box? After some pre-computation, this can be done in constant time for any box. This “trick” is commonly used for computing Haar wavelets (a fundemental building block of many object recognition approaches.)

Sums of rectangular regions The trick is to compute an “integral image.” Every pixel is the sum of its neighbors to the upper left. Sequentially compute using:

Sums of rectangular regions AB CD Solution is found using: A + D – B - C

Spatially varying filters Some filters vary spatially. Useful for deblurring. Durand, 02

* * * input output Same Gaussian kernel everywhere. Slides courtesy of Sylvian Paris Constant blur

* * * input output The kernel shape depends on the image content. Slides courtesy of Sylvian Paris Bilateral filter Maintains edges when blurring!

Borders What to do about image borders: blackfixed periodic reflected