Computer Vision Lecture 3

Size: px
Start display at page:

Download "Computer Vision Lecture 3"

Transcription

1 Demo Haribo Classification Computer Vision Lecture 3 Linear Filters Bastian Leibe RWTH Aachen leibe@vision.rwth-aachen.de Code available on the class website... 3 You Can Do It At Home Course Outline Accessin a webcam in Matlab: Imae Processin Basics function out = webcam % uses "Imae Acquisition Toolbox adaptorname = 'winvideo'; vidformat = 'I42_32x24'; vidobj= videoinput(adaptorname,, vidformat); set(vidobj, 'ReturnedColorSpace', 'rb'); set(vidobj, 'FramesPerTrier', ); out = vidobj ; Imae Formation Binary Imae Processin Linear Filters Ede & Structure Extraction Color Sementation Local Features & Matchin Object Reconition and Cateorization cam = webcam(); im=etsnapshot(cam); 3D Reconstruction Motion and Trackin 4 5 Motivation Topics of This Lecture Noise reduction/imae restoration Linear filters What are they? How are they applied? x Application: smoothin Gaussian filter I What does it mean to filter an imae? Nonlinear Filters Structure extraction Median filter Multi-Scale representations How to properly rescale an imae? Filters as templates Correlation as template matchin 6 7

2 Common Types of Noise Gaussian Noise Salt & pepper noise Random occurrences of black and white pixels Impulse noise Random occurrences of white pixels Gaussian noise Variations in intensity drawn from a Gaussian ( Normal ) distribution. Basic Assumption Noise is i.i.d. (independent & identically distributed) 8 Source: Steve Seitz >> noise = randn(size(im)).*sima; >> output = im + noise; 9 Imae Source: Martial Hebert First Attempt at a Solution Movin Averae in 2D Assumptions: Expect pixels to be like their neihbors Expect noise processes to be independent from pixel to pixel ( i.i.d. = independent, identically distributed ) Let s try to replace each pixel with an averae of all the values in its neihborhood Source: S. Seitz Movin Averae in 2D Movin Averae in 2D Source: S. Seitz 3 Source: S. Seitz 2

3 Movin Averae in 2D Movin Averae in 2D Source: S. Seitz 5 Source: S. Seitz Movin Averae in 2D Correlation Filterin Say the averain window size is 2k+ 2k+: Attribute uniform weiht to each pixel Loop over all pixels in neihborhood around imae pixel F[i,j] Now eneralize to allow different weihts dependin on neihborin pixel s relative position: 6 Source: S. Seitz Non-uniform weihts 7 Correlation Filterin Convolution Convolution: Flip the filter in both dimensions (bottom to top, riht to left) Then apply cross-correlation This is called cross-correlation, denoted Filterin an imae Replace each pixel by a weihted combination of its neihbors. The filter kernel or mask is the prescription for the weihts in the linear combination. 2 H 3 4 (,) F (N,N) Notation for convolution operator H H (,) F (N,N) 8 9 3

4 Correlation vs. Convolution Shift Invariant Linear System Correlation Matlab: filter2 imfilter Shift invariant: Operator behaves the same everywhere, i.e. the value of the output depends on the pattern in the imae neihborhood, not the position of the neihborhood. Convolution Note the difference! Matlab: conv2 Linear: Superposition: h * (f + f 2 ) = (h * f ) + (h * f 2 ) Scalin: h * (kf) = k(h * f) Note If H[-u,-v] = H[u,v], then correlation convolution. 2 2 Properties of Convolution Averain Filter Linear & shift invariant Commutative: f = f Associative: (f ) h = f ( h) Often apply several filters in sequence: (((a b ) b 2 ) b 3 ) This is equivalent to applyin one filter: a (b b 2 b 3 ) Identity: f e = f for unit impulse e = [,,,,,, ]. What values belon in the kernel H[u,v] for the movin averae example? = ? box filter 2 3 (f? Smoothin by Averain Smoothin with a Gaussian depicts box filter: white = hih value, black = low value Oriinal Rinin artifacts! Filtered Oriinal Filtered

5 Smoothin with a Gaussian Comparison Gaussian Smoothin Gaussian kernel Oriinal Filtered Rotationally symmetric Weihts nearby pixels more than distant ones This makes sense as probabilistic inference about the sinal A Gaussian ives a ood model of a fuzzy blob Gaussian Smoothin Gaussian Smoothin What parameters matter here? Variance of Gaussian What parameters matter here? Size of kernel or mask Determines extent of smoothin Gaussian function has infinite support, but discrete filters use finite kernels σ = 2 with 33 kernel σ = 5 with 33 kernel σ = 5 with kernel σ = 5 with 33 kernel Rule of thumb: set filter half-width to about 3σ! Gaussian Smoothin in Matlab >> hsize = ; >> sima = 5; >> h = fspecial( aussian hsize, sima); Effect of Smoothin More noise >> mesh(h); >> imaesc(h); >> outim = imfilter(im, h); >> imshow(outim); Wider smoothin kernel outim 3 3 5

6 Efficient Implementation Filterin: Boundary Issues Both, the BOX filter and the Gaussian filter are separable: First convolve each row with a D filter x I What is the size of the output? MATLAB: filter2(,f,shape) shape = full : output size is sum of sizes of f and shape = same : output size is same as f shape = valid : output size is difference of sizes of f and Then convolve each column with a D filter y I full same valid Remember: Convolution is linear associative and commutative x? y? I = x? ( y? I) = ( x? y )? I Slide credit: Bernt Schiele 32 f Slide credit: Svetlana Lazebnik f f 33 Filterin: Boundary Issues Filterin: Boundary Issues How should the filter behave near the imae boundary? The filter window falls off the ede of the imae Need to extrapolate Methods: Clip filter (black) Wrap around Copy ede Reflect across ede How should the filter behave near the imae boundary? The filter window falls off the ede of the imae Need to extrapolate Methods (MATLAB): Clip filter (black): imfilter(f,,) Wrap around: imfilter(f,, circular ) Copy ede: imfilter(f,, replicate ) Reflect across ede: imfilter(f,, symmetric ) 34 Source: S. Marschner 35 Source: S. Marschner Topics of This Lecture Why Does This Work? Linear filters What are they? How are they applied? Application: smoothin Gaussian filter What does it mean to filter an imae? A small excursion into the Fourier transform to talk about spatial frequencies Nonlinear Filters Median filter 3 cos(x) Multi-Scale representations How to properly rescale an imae? Filters as templates Correlation as template matchin + cos(3x) +.8 cos(5x) +.4 cos(7x) Source: Michal Irani 6

7 The Fourier Transform in Cartoons Fourier Transforms of Important Functions A small excursion into the Fourier transform to talk about spatial frequencies hih low Frequency spectrum hih Sine and cosine transform to?? 3 cos(x) + cos(3x) +.8 cos(5x) +.4 cos(7x) + Frequency coefficients 38 Source: Michal Irani 39 Imae Source: S. Chenney Fourier Transforms of Important Functions Sine and cosine transform to frequency spikes Fourier Transforms of Important Functions Sine and cosine transform to frequency spikes A Gaussian transforms to? A Gaussian transforms to a Gaussian A box filter transforms to 4 Imae Source: S. Chenney? 4 Imae Source: S. Chenney Fourier Transforms of Important Functions Duality Sine and cosine transform to frequency spikes The better a function is localized in one domain, the worse it is localized in the other. A Gaussian transforms to a Gaussian All of this is symmetric! A box filter transforms to a sinc sin x sinc( x) x This is true for any function 42 Imae Source: S. Chenney 43 7

8 Effect of Convolution Effect of Filterin Convolvin two functions in the imae domain corresponds to takin the product of their transformed versions in the frequency domain. Noise introduces hih frequencies. To remove them, we want to apply a low-pass filter. f? ( F G The ideal filter shape in the frequency domain would be a box. But this transfers to a spatial sinc, which has infinite spatial support. This ives us a tool to manipulate imae spectra. A filter attenuates or enhances certain frequencies throuh this effect. A compact spatial box filter transfers to a frequency sinc, which creates artifacts. A Gaussian has compact support in both domains. This makes it a convenient choice for a low-pass filter Low-Pass vs. Hih-Pass Quiz: What Effect Does This Filter Have? Low-pass filtered Oriinal imae Hih-pass filtered 46 Imae Source: S. Chenney 47 Source: D. Lowe Sharpenin Filter Sharpenin Filter Oriinal Sharpenin filter Accentuates differences with local averae 48 Source: D. Lowe 49 Source: D. Lowe 8

9 Application: Hih Frequency Emphasis Oriinal Hih pass Filter Topics of This Lecture Linear filters What are they? How are they applied? Application: smoothin Gaussian filter What does it mean to filter an imae? Nonlinear Filters Median filter Multi-Scale representations How to properly rescale an imae? Hih Frequency Emphasis Slide credit: Michal Irani Hih Frequency Emphasis + Historam Equalization 5 Imae derivatives How to compute radients robustly? 5 Non-Linear Filters: Median Filter Median Filter Basic idea Replace each pixel by the median of its neihbors. Salt and pepper noise Median filtered Properties Doesn t introduce new pixel values Removes spikes: ood for impulse, salt & pepper noise Linear? Plots of a row of the imae Imae Source: Martial Hebert Median Filter The Median filter is ede preservin. Median vs. Gaussian Filterin 3x3 5x5 7x7 Gaussian Median 54 Slide credit: Svetlana Lazebnik 55 9

10 Topics of This Lecture Motivation: Fast Search Across Scales Linear filters What are they? How are they applied? Application: smoothin Gaussian filter What does it mean to filter an imae? Nonlinear Filters Median filter Multi-Scale representations How to properly rescale an imae? Filters as templates Correlation as template matchin Imae Source: Irani & Basri Imae Pyramid How Should We Go About Resamplin? Low resolution Let s resample the checkerboard by takin one sample at each circle. In the top left board, the new representation is reasonable. Top riht also yields a reasonable representation. Bottom left is all black (dubious) and bottom riht has checks that are too bi. Hih resolution Fourier Interpretation: Discrete Samplin Fourier Interpretation: Discrete Samplin Samplin in the spatial domain is like multiplyin with a spike function. Samplin in the spatial domain is like multiplyin with a spike function. Samplin in the frequency domain is like... Samplin in the frequency domain is like convolvin with a spike function.? * 6 Source: S. Chenney 6 Source: S. Chenney

11 Samplin and Aliasin Samplin and Aliasin Nyquist theorem: In order to recover a certain frequency f, we need to sample with at least 2f. This corresponds to the point at which the transformed frequency spectra start to overlap (the Nyquist limit) Samplin and Aliasin Aliasin in Graphics Imae Source: Alexej Efros Resamplin with Prior Smoothin The Gaussian Pyramid Low resolution G 4 ( G 3 * aussian) 2 G G * aussian blur ) 2 3 ( 2 blur G 2 ( G * aussian) 2 blur G ( G * aussian) 2 G Imae blur Note: We cannot recover the hih frequencies, but we can avoid artifacts by smoothin before resamplin. 66 Hih resolution 67 Source: Irani & Basri

12 Gaussian Pyramid Stored Information Summary: Gaussian Pyramid All the extra levels add very little overhead for memory or computation! Construction: create each level from previous one Smooth and sample Smooth with Gaussians, in part because a Gaussian*Gaussian = another Gaussian G( ) * G( 2 ) = G(sqrt( )) Gaussians are low-pass filters, so the representation is redundant once smoothin has been performed. There is no need to store smoothed imaes at the full oriinal resolution. 68 Source: Irani & Basri Slide credit: David Lowe 69 The Laplacian Pyramid Gaussian Pyramid G n G 2 G L G expand( G ) i i i i i G L expand( G ) i - = Laplacian Pyramid Ln G n - L = 2 L Laplacian ~ Difference of Gaussian - = DoG = Difference of Gaussians Cheap approximation no derivatives needed. G L - = - = Why is this useful? 7 Source: Irani & Basri 7 Topics of This Lecture Note: Filters are Templates Linear filters What are they? How are they applied? Application: smoothin Gaussian filter What does it mean to filter an imae? Applyin a filter at some point can be seen as takin a dotproduct between the imae and some vector. Filterin the imae is a set of dot products. Insiht Filters look like the effects they are intended to find. Filters find effects they look like. Nonlinear Filters Median filter Multi-Scale representations How to properly rescale an imae? Filters as templates Correlation as template matchin

13 Where s Waldo? Where s Waldo? Template Template Scene 74 Detected template 75 Where s Waldo? Correlation as Template Matchin Think of filters as a dot product of the filter vector with the imae reion Now measure the anle between the vectors ab ab a b cos cos a b Anle (similarity) between vectors can be measured by normalizin lenth of each vector to. Detected template Correlation map Template a b 76 Imae reion Vector interpretation 77 Summary: Mask Properties Summary Linear Filters Smoothin Values positive Sum to constant reions same as input Amount of smoothin proportional to mask size Remove hih-frequency components; low-pass filter Filters act as templates Hihest response for reions that look the most like the filter Dot product as correlation Linear filterin: Form a new imae whose pixels are a weihted sum of oriinal pixel values Properties Output is a shift-invariant function of the input (same at each imae location) Examples: Smoothin with a box filter Smoothin with a Gaussian Findin a derivative Searchin for a template Pyramid representations Important for describin and searchin an imae at all scales

14 References and Further Readin Backround information on linear filters and their connection with the Fourier transform can be found in Chapters 7 and 8 of D. Forsyth, J. Ponce, Computer Vision A Modern Approach. Prentice Hall,

Linear Filters Tues Sept 1 Kristen Grauman UT Austin. Announcements. Plan for today 8/31/2015. Image noise Linear filters. Convolution / correlation

Linear Filters Tues Sept 1 Kristen Grauman UT Austin. Announcements. Plan for today 8/31/2015. Image noise Linear filters. Convolution / correlation 8/3/25 Linear Filters Tues Sept Kristen Grauman UT Austin Announcements Piazza for assinment questions A due Friday Sept 4. Submit on Canvas. Plan for today Imae noise Linear filters Examples: smoothin

More information

Motivation: Image denoising. How can we reduce noise in a photograph?

Motivation: Image denoising. How can we reduce noise in a photograph? Linear filtering Motivation: Image denoising How can we reduce noise in a photograph? Moving average Let s replace each pixel with a weighted average of its neighborhood The weights are called the filter

More information

Motivation: Image denoising. How can we reduce noise in a photograph?

Motivation: Image denoising. How can we reduce noise in a photograph? Linear filtering Motivation: Image denoising How can we reduce noise in a photograph? Moving average Let s replace each pixel with a weighted average of its neighborhood The weights are called the filter

More information

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech Image Filtering in Spatial domain Computer Vision Jia-Bin Huang, Virginia Tech Administrative stuffs Lecture schedule changes Office hours - Jia-Bin (44 Whittemore Hall) Friday at : AM 2: PM Office hours

More information

Prof. Feng Liu. Winter /10/2019

Prof. Feng Liu. Winter /10/2019 Prof. Feng Liu Winter 29 http://www.cs.pdx.edu/~fliu/courses/cs4/ //29 Last Time Course overview Admin. Info Computer Vision Computer Vision at PSU Image representation Color 2 Today Filter 3 Today Filters

More information

Motion illusion, rotating snakes

Motion illusion, rotating snakes Motion illusion, rotating snakes Image Filtering 9/4/2 Computer Vision James Hays, Brown Graphic: unsharp mask Many slides by Derek Hoiem Next three classes: three views of filtering Image filters in spatial

More information

Matlab (see Homework 1: Intro to Matlab) Linear Filters (Reading: 7.1, ) Correlation. Convolution. Linear Filtering (warm-up slide) R ij

Matlab (see Homework 1: Intro to Matlab) Linear Filters (Reading: 7.1, ) Correlation. Convolution. Linear Filtering (warm-up slide) R ij Matlab (see Homework : Intro to Matlab) Starting Matlab from Unix: matlab & OR matlab nodisplay Image representations in Matlab: Unsigned 8bit values (when first read) Values in range [, 255], = black,

More information

Sampling and Reconstruction

Sampling and Reconstruction Sampling and Reconstruction Many slides from Steve Marschner 15-463: Computational Photography Alexei Efros, CMU, Fall 211 Sampling and Reconstruction Sampled representations How to store and compute with

More information

Image filtering, image operations. Jana Kosecka

Image filtering, image operations. Jana Kosecka Image filtering, image operations Jana Kosecka - photometric aspects of image formation - gray level images - point-wise operations - linear filtering Image Brightness values I(x,y) Images Images contain

More information

02/02/10. Image Filtering. Computer Vision CS 543 / ECE 549 University of Illinois. Derek Hoiem

02/02/10. Image Filtering. Computer Vision CS 543 / ECE 549 University of Illinois. Derek Hoiem 2/2/ Image Filtering Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem Questions about HW? Questions about class? Room change starting thursday: Everitt 63, same time Key ideas from last

More information

Fourier analysis of images

Fourier analysis of images Fourier analysis of images Intensity Image Fourier Image Slides: James Hays, Hoiem, Efros, and others http://sharp.bu.edu/~slehar/fourier/fourier.html#filtering Signals can be composed + = http://sharp.bu.edu/~slehar/fourier/fourier.html#filtering

More information

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt. CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt. Session 7 Pixels and Image Filtering Mani Golparvar-Fard Department of Civil and Environmental Engineering 329D, Newmark Civil Engineering

More information

Midterm is on Thursday!

Midterm is on Thursday! Midterm is on Thursday! Project presentations are May 17th, 22nd and 24th Next week there is a strike on campus. Class is therefore cancelled on Tuesday. Please work on your presentations instead! REVIEW

More information

CSCI 1290: Comp Photo

CSCI 1290: Comp Photo CSCI 29: Comp Photo Fall 28 @ Brown University James Tompkin Many slides thanks to James Hays old CS 29 course, along with all of its acknowledgements. Things I forgot on Thursday Grads are not required

More information

06: Thinking in Frequencies. CS 5840: Computer Vision Instructor: Jonathan Ventura

06: Thinking in Frequencies. CS 5840: Computer Vision Instructor: Jonathan Ventura 06: Thinking in Frequencies CS 5840: Computer Vision Instructor: Jonathan Ventura Decomposition of Functions Taylor series: Sum of polynomials f(x) =f(a)+f 0 (a)(x a)+ f 00 (a) 2! (x a) 2 + f 000 (a) (x

More information

Image Filtering and Gaussian Pyramids

Image Filtering and Gaussian Pyramids Image Filtering and Gaussian Pyramids CS94: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 27 Limitations of Point Processing Q: What happens if I reshuffle all pixels within

More information

>>> from numpy import random as r >>> I = r.rand(256,256);

>>> from numpy import random as r >>> I = r.rand(256,256); WHAT IS AN IMAGE? >>> from numpy import random as r >>> I = r.rand(256,256); Think-Pair-Share: - What is this? What does it look like? - Which values does it take? - How many values can it take? - Is it

More information

>>> from numpy import random as r >>> I = r.rand(256,256);

>>> from numpy import random as r >>> I = r.rand(256,256); WHAT IS AN IMAGE? >>> from numpy import random as r >>> I = r.rand(256,256); Think-Pair-Share: - What is this? What does it look like? - Which values does it take? - How many values can it take? - Is it

More information

Image Processing for feature extraction

Image Processing for feature extraction Image Processing for feature extraction 1 Outline Rationale for image pre-processing Gray-scale transformations Geometric transformations Local preprocessing Reading: Sonka et al 5.1, 5.2, 5.3 2 Image

More information

Templates and Image Pyramids

Templates and Image Pyramids Templates and Image Pyramids 09/07/17 Computational Photography Derek Hoiem, University of Illinois Why does a lower resolution image still make sense to us? What do we lose? Image: http://www.flickr.com/photos/igorms/136916757/

More information

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University CS534 Introduction to Computer Vision Linear Filters Ahmed Elgammal Dept. of Computer Science Rutgers University Outlines What are Filters Linear Filters Convolution operation Properties of Linear Filters

More information

Templates and Image Pyramids

Templates and Image Pyramids Templates and Image Pyramids 09/06/11 Computational Photography Derek Hoiem, University of Illinois Project 1 Due Monday at 11:59pm Options for displaying results Web interface or redirect (http://www.pa.msu.edu/services/computing/faq/autoredirect.html)

More information

Filtering Images in the Spatial Domain Chapter 3b G&W. Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah

Filtering Images in the Spatial Domain Chapter 3b G&W. Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah Filtering Images in the Spatial Domain Chapter 3b G&W Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah 1 Overview Correlation and convolution Linear filtering Smoothing, kernels,

More information

Announcements. Image Processing. What s an image? Images as functions. Image processing. What s a digital image?

Announcements. Image Processing. What s an image? Images as functions. Image processing. What s a digital image? Image Processing Images by Pawan Sinha Today s readings Forsyth & Ponce, chapters 8.-8. http://www.cs.washington.edu/education/courses/49cv/wi/readings/book-7-revised-a-indx.pdf For Monday Watt,.3-.4 (handout)

More information

Vision Review: Image Processing. Course web page:

Vision Review: Image Processing. Course web page: Vision Review: Image Processing Course web page: www.cis.udel.edu/~cer/arv September 7, Announcements Homework and paper presentation guidelines are up on web page Readings for next Tuesday: Chapters 6,.,

More information

CS6670: Computer Vision Noah Snavely. Administrivia. Administrivia. Reading. Last time: Convolution. Last time: Cross correlation 9/8/2009

CS6670: Computer Vision Noah Snavely. Administrivia. Administrivia. Reading. Last time: Convolution. Last time: Cross correlation 9/8/2009 CS667: Computer Vision Noah Snavely Administrivia New room starting Thursday: HLS B Lecture 2: Edge detection and resampling From Sandlot Science Administrivia Assignment (feature detection and matching)

More information

Practical Image and Video Processing Using MATLAB

Practical Image and Video Processing Using MATLAB Practical Image and Video Processing Using MATLAB Chapter 10 Neighborhood processing What will we learn? What is neighborhood processing and how does it differ from point processing? What is convolution

More information

Thinking in Frequency

Thinking in Frequency Thinking in Frequency Computer Vision Brown James Hays Slides: Hoiem, Efros, and others Recap of Wednesday linear filtering convolution differential filters filter types boundary conditions. Review: questions

More information

Robert Collins CSE486, Penn State. Lecture 3: Linear Operators

Robert Collins CSE486, Penn State. Lecture 3: Linear Operators Lecture : Linear Operators Administrivia I have put some Matlab image tutorials on Angel. Please take a look if you are unfamiliar with Matlab or the image toolbox. I have posted Homework on Angel. It

More information

Image Filtering. Reading Today s Lecture. Reading for Next Time. What would be the result? Some Questions from Last Lecture

Image Filtering. Reading Today s Lecture. Reading for Next Time. What would be the result? Some Questions from Last Lecture Image Filtering HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev http://www.cs.iastate.edu/~alex/classes/2007_spring_575x/ January 24, 2007 HCI/ComS 575X: Computational Perception

More information

Computer Vision, Lecture 3

Computer Vision, Lecture 3 Computer Vision, Lecture 3 Professor Hager http://www.cs.jhu.edu/~hager /4/200 CS 46, Copyright G.D. Hager Outline for Today Image noise Filtering by Convolution Properties of Convolution /4/200 CS 46,

More information

CS 4501: Introduction to Computer Vision. Filtering and Edge Detection

CS 4501: Introduction to Computer Vision. Filtering and Edge Detection CS 451: Introduction to Computer Vision Filtering and Edge Detection Connelly Barnes Slides from Jason Lawrence, Fei Fei Li, Juan Carlos Niebles, Misha Kazhdan, Allison Klein, Tom Funkhouser, Adam Finkelstein,

More information

Image features: Histograms, Aliasing, Filters, Orientation and HOG. D.A. Forsyth

Image features: Histograms, Aliasing, Filters, Orientation and HOG. D.A. Forsyth Image features: Histograms, Aliasing, Filters, Orientation and HOG D.A. Forsyth Simple color features Histogram of image colors in a window Opponent color representations R-G B-Y=B-(R+G)/2 Intensity=(R+G+B)/3

More information

Image Pyramids. Sanja Fidler CSC420: Intro to Image Understanding 1 / 35

Image Pyramids. Sanja Fidler CSC420: Intro to Image Understanding 1 / 35 Image Pyramids Sanja Fidler CSC420: Intro to Image Understanding 1 / 35 Finding Waldo Let s revisit the problem of finding Waldo This time he is on the road template (filter) image Sanja Fidler CSC420:

More information

Images and Filters. EE/CSE 576 Linda Shapiro

Images and Filters. EE/CSE 576 Linda Shapiro Images and Filters EE/CSE 576 Linda Shapiro What is an image? 2 3 . We sample the image to get a discrete set of pixels with quantized values. 2. For a gray tone image there is one band F(r,c), with values

More information

Last Lecture. photomatix.com

Last Lecture. photomatix.com Last Lecture photomatix.com Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image Pyramids (Gaussian and Laplacian) Removing handshake

More information

Sampling and reconstruction

Sampling and reconstruction Sampling and reconstruction CS 5625 Lecture 6 Lecture 6 1 Sampled representations How to store and compute with continuous functions? Common scheme for representation: samples write down the function s

More information

Lecture 3: Linear Filters

Lecture 3: Linear Filters Signal Denoising Lecture 3: Linear Filters Math 490 Prof. Todd Wittman The Citadel Suppose we have a noisy 1D signal f(x). For example, it could represent a company's stock price over time. In order to

More information

Image restoration and color image processing

Image restoration and color image processing 1 Enabling Technologies for Sports (5XSF0) Image restoration and color image processing Sveta Zinger ( s.zinger@tue.nl ) What is image restoration? 2 Reconstructing or recovering an image that has been

More information

Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009 Digital Image Processing Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009 Outline Image Enhancement in Spatial Domain Histogram based methods Histogram Equalization Local

More information

Color Space 1: RGB Color Space. Color Space 2: HSV. RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation?

Color Space 1: RGB Color Space. Color Space 2: HSV. RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation? Color Space : RGB Color Space Color Space 2: HSV RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation? Hue, Saturation, Value (Intensity) RBG cube on its vertex

More information

Sampling and reconstruction. CS 4620 Lecture 13

Sampling and reconstruction. CS 4620 Lecture 13 Sampling and reconstruction CS 4620 Lecture 13 Lecture 13 1 Outline Review signal processing Sampling Reconstruction Filtering Convolution Closely related to computer graphics topics such as Image processing

More information

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction Table of contents Vision industrielle 2002/2003 Session - Image Processing Département Génie Productique INSA de Lyon Christian Wolf wolf@rfv.insa-lyon.fr Introduction Motivation, human vision, history,

More information

Last Lecture. photomatix.com

Last Lecture. photomatix.com Last Lecture photomatix.com HDR Video Assorted pixel (Single Exposure HDR) Assorted pixel Assorted pixel Pixel with Adaptive Exposure Control light attenuator element detector element T t+1 I t controller

More information

Image preprocessing in spatial domain

Image preprocessing in spatial domain Image preprocessing in spatial domain convolution, convolution theorem, cross-correlation Revision:.3, dated: December 7, 5 Tomáš Svoboda Czech Technical University, Faculty of Electrical Engineering Center

More information

Sampling and reconstruction

Sampling and reconstruction Sampling and reconstruction Week 10 Acknowledgement: The course slides are adapted from the slides prepared by Steve Marschner of Cornell University 1 Sampled representations How to store and compute with

More information

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and 8.1 INTRODUCTION In this chapter, we will study and discuss some fundamental techniques for image processing and image analysis, with a few examples of routines developed for certain purposes. 8.2 IMAGE

More information

Image Filtering. Median Filtering

Image Filtering. Median Filtering Image Filtering Image filtering is used to: Remove noise Sharpen contrast Highlight contours Detect edges Other uses? Image filters can be classified as linear or nonlinear. Linear filters are also know

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Part : Image Enhancement in the Spatial Domain AASS Learning Systems Lab, Dep. Teknik Room T9 (Fr, - o'clock) achim.lilienthal@oru.se Course Book Chapter 3-4- Contents. Image Enhancement

More information

ELEC Dr Reji Mathew Electrical Engineering UNSW

ELEC Dr Reji Mathew Electrical Engineering UNSW ELEC 4622 Dr Reji Mathew Electrical Engineering UNSW Filter Design Circularly symmetric 2-D low-pass filter Pass-band radial frequency: ω p Stop-band radial frequency: ω s 1 δ p Pass-band tolerances: δ

More information

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

IMAGE PROCESSING: AREA OPERATIONS (FILTERING) IMAGE PROCESSING: AREA OPERATIONS (FILTERING) N. C. State University CSC557 Multimedia Computing and Networking Fall 2001 Lecture # 13 IMAGE PROCESSING: AREA OPERATIONS (FILTERING) N. C. State University

More information

Next Classes. Spatial frequency Fourier transform and frequency domain. Reminder: Textbook. Frequency view of filtering Hybrid images Sampling

Next Classes. Spatial frequency Fourier transform and frequency domain. Reminder: Textbook. Frequency view of filtering Hybrid images Sampling Salvador Dali, 1976 Next Classes Spatial frequency Fourier transform and frequency domain Frequency view of filtering Hybrid images Sampling Reminder: Textbook Today s lecture covers material in 3.4 Slide:

More information

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase Fourier Transform Fourier Transform Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase 2 1 3 3 3 1 sin 3 3 1 3 sin 3 1 sin 5 5 1 3 sin

More information

ELEC Dr Reji Mathew Electrical Engineering UNSW

ELEC Dr Reji Mathew Electrical Engineering UNSW ELEC 4622 Dr Reji Mathew Electrical Engineering UNSW Multi-Resolution Processing Gaussian Pyramid Starting with an image x[n], which we will also label x 0 [n], Construct a sequence of progressively lower

More information

Image Enhancement II: Neighborhood Operations

Image Enhancement II: Neighborhood Operations Image Enhancement II: Neighborhood Operations Image Enhancement:Spatial Filtering Operation Idea: Use a mask to alter piel values according to local operation Aim: De)-Emphasize some spatial requencies

More information

EE482: Digital Signal Processing Applications

EE482: Digital Signal Processing Applications Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu EE482: Digital Signal Processing Applications Spring 2014 TTh 14:30-15:45 CBC C222 Lecture 15 Image Processing 14/04/15 http://www.ee.unlv.edu/~b1morris/ee482/

More information

ECE 484 Digital Image Processing Lec 09 - Image Resampling

ECE 484 Digital Image Processing Lec 09 - Image Resampling ECE 484 Digital Image Processing Lec 09 - Image Resampling Zhu Li Dept of CSEE, UMKC Office: FH560E, Email: lizhu@umkc.edu, Ph: x 2346. http://l.web.umkc.edu/lizhu slides created with WPS Office Linux

More information

Numerical Derivatives See also T&V, Appendix A.2 Gradient = vector of partial derivatives of image I(x,y) = [di(x,y)/dx, di(x,y)/dy]

Numerical Derivatives See also T&V, Appendix A.2 Gradient = vector of partial derivatives of image I(x,y) = [di(x,y)/dx, di(x,y)/dy] I have put some Matlab image tutorials on Angel. Please take a look i you are unamiliar with Matlab or the image toolbox. Lecture : Linear Operators Administrivia I have posted Homework on Angel. It is

More information

Image Enhancement in spatial domain. Digital Image Processing GW Chapter 3 from Section (pag 110) Part 2: Filtering in spatial domain

Image Enhancement in spatial domain. Digital Image Processing GW Chapter 3 from Section (pag 110) Part 2: Filtering in spatial domain Image Enhancement in spatial domain Digital Image Processing GW Chapter 3 from Section 3.4.1 (pag 110) Part 2: Filtering in spatial domain Mask mode radiography Image subtraction in medical imaging 2 Range

More information

Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017 Digital Image Processing Digital Image Fundamentals II 12 th June, 2017 Image Enhancement Image Enhancement Types of Image Enhancement Operations Neighborhood Operations on Images Spatial Filtering Filtering

More information

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University Achim J. Lilienthal Mobile Robotics and Olfaction Lab, Room T29, Mo, -2 o'clock AASS, Örebro University (please drop me an email in advance) achim.lilienthal@oru.se 4.!!!!!!!!! Pre-Class Reading!!!!!!!!!

More information

Sampling and Pyramids

Sampling and Pyramids Sampling and Pyramids 15-463: Rendering and Image Processing Alexei Efros with lots of slides from Steve Seitz Today Sampling Nyquist Rate Antialiasing Gaussian and Laplacian Pyramids 1 Fourier transform

More information

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering CoE4TN4 Image Processing Chapter 3: Intensity Transformation and Spatial Filtering Image Enhancement Enhancement techniques: to process an image so that the result is more suitable than the original image

More information

Image Enhancement using Histogram Equalization and Spatial Filtering

Image Enhancement using Histogram Equalization and Spatial Filtering Image Enhancement using Histogram Equalization and Spatial Filtering Fari Muhammad Abubakar 1 1 Department of Electronics Engineering Tianjin University of Technology and Education (TUTE) Tianjin, P.R.

More information

CAP 5415 Computer Vision. Marshall Tappen Fall Lecture 1

CAP 5415 Computer Vision. Marshall Tappen Fall Lecture 1 CAP 5415 Computer Vision Marshall Tappen Fall 21 Lecture 1 Welcome! About Me Interested in Machine Vision and Machine Learning Happy to chat with you at almost any time May want to e-mail me first Office

More information

Thinking in Frequency

Thinking in Frequency Thinking in Frequency Computer Vision Jia-Bin Huang, Virginia Tech Dali: Gala Contemplating the Mediterranean Sea (1976) Administrative stuffs Course website: http://bit.ly/vt-computer-vision-fall-2016

More information

Sampling and Reconstruction

Sampling and Reconstruction Sampling and Reconstruction Peter Rautek, Eduard Gröller, Thomas Theußl Institute of Computer Graphics and Algorithms Vienna University of Technology Motivation Theory and practice of sampling and reconstruction

More information

Aliasing and Antialiasing. What is Aliasing? What is Aliasing? What is Aliasing?

Aliasing and Antialiasing. What is Aliasing? What is Aliasing? What is Aliasing? What is Aliasing? Errors and Artifacts arising during rendering, due to the conversion from a continuously defined illumination field to a discrete raster grid of pixels 1 2 What is Aliasing? What is Aliasing?

More information

Sampling and Reconstruction

Sampling and Reconstruction Sampling and Reconstruction Salvador Dali, Dali from the Back Painting Gala from the Back Eternalized by Six Virtual Corneas Provisionally Reflected by Six Real Mirrors Many slides from Steve Marschner,

More information

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN DISCRETE FOURIER TRANSFORM AND FILTER DESIGN N. C. State University CSC557 Multimedia Computing and Networking Fall 2001 Lecture # 03 Spectrum of a Square Wave 2 Results of Some Filters 3 Notation 4 x[n]

More information

Chapter 3 Image Enhancement in the Spatial Domain. Chapter 3 Image Enhancement in the Spatial Domain

Chapter 3 Image Enhancement in the Spatial Domain. Chapter 3 Image Enhancement in the Spatial Domain It makes all the difference whether one sees darkness through the light or brightness through the shadows. - David Lindsay 3.1 Background 76 3.2 Some Basic Gray Level Transformations 78 3.3 Histogram Processing

More information

Image Sampling. Moire patterns. - Source: F. Durand

Image Sampling. Moire patterns. -  Source: F. Durand Image Sampling Moire patterns Source: F. Durand - http://www.sandlotscience.com/moire/circular_3_moire.htm Any questions on project 1? For extra credits, attach before/after images how your extra feature

More information

Circular averaging filter (pillbox) Approximates the two-dimensional Laplacian operator. Laplacian of Gaussian filter

Circular averaging filter (pillbox) Approximates the two-dimensional Laplacian operator. Laplacian of Gaussian filter Image Processing Toolbox fspecial Create predefined 2-D filter Syntax h = fspecial( type) h = fspecial( type,parameters) Description h = fspecial( type) creates a two-dimensional filter h of the specified

More information

Sampling and Reconstruction

Sampling and Reconstruction Sampling and reconstruction COMP 575/COMP 770 Fall 2010 Stephen J. Guy 1 Review What is Computer Graphics? Computer graphics: The study of creating, manipulating, and using visual images in the computer.

More information

1.Discuss the frequency domain techniques of image enhancement in detail.

1.Discuss the frequency domain techniques of image enhancement in detail. 1.Discuss the frequency domain techniques of image enhancement in detail. Enhancement In Frequency Domain: The frequency domain methods of image enhancement are based on convolution theorem. This is represented

More information

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016 Image acquisition Midterm Review Image Processing CSE 166 Lecture 10 2 Digitization, line of image Digitization, whole image 3 4 Geometric transformations Interpolation CSE 166 Transpose these matrices

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Part 2: Image Enhancement Digital Image Processing Course Introduction in the Spatial Domain Lecture AASS Learning Systems Lab, Teknik Room T26 achim.lilienthal@tech.oru.se Course

More information

More image filtering , , Computational Photography Fall 2017, Lecture 4

More image filtering , , Computational Photography Fall 2017, Lecture 4 More image filtering http://graphics.cs.cmu.edu/courses/15-463 15-463, 15-663, 15-862 Computational Photography Fall 2017, Lecture 4 Course announcements Any questions about Homework 1? - How many of you

More information

Sampling Theory. CS5625 Lecture Steve Marschner. Cornell CS5625 Spring 2016 Lecture 7

Sampling Theory. CS5625 Lecture Steve Marschner. Cornell CS5625 Spring 2016 Lecture 7 Sampling Theory CS5625 Lecture 7 Sampling example (reminder) When we sample a high-frequency signal we don t get what we expect result looks like a lower frequency not possible to distinguish between this

More information

Image Scaling. This image is too big to fit on the screen. How can we reduce it? How to generate a halfsized

Image Scaling. This image is too big to fit on the screen. How can we reduce it? How to generate a halfsized Resampling Image Scaling This image is too big to fit on the screen. How can we reduce it? How to generate a halfsized version? Image sub-sampling 1/8 1/4 Throw away every other row and column to create

More information

CS4495/6495 Introduction to Computer Vision. 2C-L3 Aliasing

CS4495/6495 Introduction to Computer Vision. 2C-L3 Aliasing CS4495/6495 Introduction to Computer Vision 2C-L3 Aliasing Recall: Fourier Pairs (from Szeliski) Fourier Transform Sampling Pairs FT of an impulse train is an impulse train Sampling and Aliasing Sampling

More information

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

IMAGE ENHANCEMENT IN SPATIAL DOMAIN A First Course in Machine Vision IMAGE ENHANCEMENT IN SPATIAL DOMAIN By: Ehsan Khoramshahi Definitions The principal objective of enhancement is to process an image so that the result is more suitable

More information

Filip Malmberg 1TD396 fall 2018 Today s lecture

Filip Malmberg 1TD396 fall 2018 Today s lecture Today s lecture Local neighbourhood processing Convolution smoothing an image sharpening an image And more What is it? What is it useful for? How can I compute it? Removing uncorrelated noise from an image

More information

Transforms and Frequency Filtering

Transforms and Frequency Filtering Transforms and Frequency Filtering Khalid Niazi Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University 2 Reading Instructions Chapter 4: Image Enhancement in the Frequency

More information

Lec 05 - Linear Filtering & Edge Detection

Lec 05 - Linear Filtering & Edge Detection ECE 484 Digital Image Processing Lec 05 - Linear Filtering & Edge Detection Zhu Li Dept of CSEE, UMKC Office: FH560E, Email: lizhu@umkc.edu, Ph: x 2346. http://l.web.umkc.edu/lizhu Z. Li, ECE 484 Digital

More information

Image analysis. CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror

Image analysis. CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror Image analysis CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror A two- dimensional image can be described as a function of two variables f(x,y). For a grayscale image, the value of f(x,y) specifies the brightness

More information

Part I Feature Extraction (1) Image Enhancement. CSc I6716 Spring Local, meaningful, detectable parts of the image.

Part I Feature Extraction (1) Image Enhancement. CSc I6716 Spring Local, meaningful, detectable parts of the image. CSc I6716 Spring 211 Introduction Part I Feature Extraction (1) Zhigang Zhu, City College of New York zhu@cs.ccny.cuny.edu Image Enhancement What are Image Features? Local, meaningful, detectable parts

More information

Lecture Schedule: Week Date Lecture Title

Lecture Schedule: Week Date Lecture Title http://elec3004.org Sampling & More 2014 School of Information Technology and Electrical Engineering at The University of Queensland Lecture Schedule: Week Date Lecture Title 1 2-Mar Introduction 3-Mar

More information

FFT analysis in practice

FFT analysis in practice FFT analysis in practice Perception & Multimedia Computing Lecture 13 Rebecca Fiebrink Lecturer, Department of Computing Goldsmiths, University of London 1 Last Week Review of complex numbers: rectangular

More information

Convolution Pyramids. Zeev Farbman, Raanan Fattal and Dani Lischinski SIGGRAPH Asia Conference (2011) Julian Steil. Prof. Dr.

Convolution Pyramids. Zeev Farbman, Raanan Fattal and Dani Lischinski SIGGRAPH Asia Conference (2011) Julian Steil. Prof. Dr. Zeev Farbman, Raanan Fattal and Dani Lischinski SIGGRAPH Asia Conference (2011) presented by: Julian Steil supervisor: Prof. Dr. Joachim Weickert Fig. 1.1: Gradient integration example Seminar - Milestones

More information

Deconvolution , , Computational Photography Fall 2018, Lecture 12

Deconvolution , , Computational Photography Fall 2018, Lecture 12 Deconvolution http://graphics.cs.cmu.edu/courses/15-463 15-463, 15-663, 15-862 Computational Photography Fall 2018, Lecture 12 Course announcements Homework 3 is out. - Due October 12 th. - Any questions?

More information

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi Computer Graphics (Fall 2011) CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi Some slides courtesy Thomas Funkhouser and Pat Hanrahan Adapted version of CS 283 lecture http://inst.eecs.berkeley.edu/~cs283/fa10

More information

Understanding Digital Signal Processing

Understanding Digital Signal Processing Understanding Digital Signal Processing Richard G. Lyons PRENTICE HALL PTR PRENTICE HALL Professional Technical Reference Upper Saddle River, New Jersey 07458 www.photr,com Contents Preface xi 1 DISCRETE

More information

Filters. Materials from Prof. Klaus Mueller

Filters. Materials from Prof. Klaus Mueller Filters Materials from Prof. Klaus Mueller Think More about Pixels What exactly a pixel is in an image or on the screen? Solid square? This cannot be implemented A dot? Yes, but size matters Pixel Dots

More information

Non Linear Image Enhancement

Non Linear Image Enhancement Non Linear Image Enhancement SAIYAM TAKKAR Jaypee University of information technology, 2013 SIMANDEEP SINGH Jaypee University of information technology, 2013 Abstract An image enhancement algorithm based

More information

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering Image Processing Intensity Transformations Chapter 3 Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering INEL 5327 ECE, UPRM Intensity Transformations 1 Overview Background Basic intensity

More information

Digital Image Processing 3/e

Digital Image Processing 3/e Laboratory Projects for Digital Image Processing 3/e by Gonzalez and Woods 2008 Prentice Hall Upper Saddle River, NJ 07458 USA www.imageprocessingplace.com The following sample laboratory projects are

More information

Paul F. Sydney, Charles J. Wetterer Integrity Applications Incorporated / Pacific Defense Solutions ABSTRACT 1. INTRODUCTION

Paul F. Sydney, Charles J. Wetterer Integrity Applications Incorporated / Pacific Defense Solutions ABSTRACT 1. INTRODUCTION Efficient Photometry In-Frame Calibration (EPIC) Gaussian Corrections for Automated Backround Normalization of Rate-Tracked Satellite Imaery Jacob D. Griesbach, Joseph D. Gerber Applied Defense Solutions,

More information

Filtering. Image Enhancement Spatial and Frequency Based

Filtering. Image Enhancement Spatial and Frequency Based Filtering Image Enhancement Spatial and Frequency Based Brent M. Dingle, Ph.D. 2015 Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Lecture

More information

Computer Vision Lecture 1

Computer Vision Lecture 1 Computer Vision Lecture 1 Introduction 19.10.2016 Bastian Leibe Visual Computing Institute RWTH Aachen University http://www.vision.rwth-aachen.de/ leibe@vision.rwth-aachen.de Organization Lecturer Prof.

More information