Comp 665 Convolution. Questions? Ask here first. Likely someone else has the same question.

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

Prof. Ramin Zabih (CS) Prof. Ashish Raj (Radiology) CS5540: Computational Techniques for Analyzing Clinical Data.
Lecture 4 Linear Filters and Convolution
Lecture 2: Filtering CS4670/5670: Computer Vision Kavita Bala.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
1 Image filtering Hybrid Images, Oliva et al.,
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
Low Pass Filtering Spatial frequency is a measure of how rapidly brightness or colour varies as we traverse an image. Figure 7.11a shows that an image.
Signal Processing COS 323 COS 323. Digital “Signals” 1D: functions of space or time (e.g., sound)1D: functions of space or time (e.g., sound) 2D: often.
Midterm Review. World is practically continuous in time space color brightness dynamic range brightness.
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.
1 Image filtering Images by Pawan SinhaPawan Sinha.
Linear View Synthesis Using a Dimensionality Gap Light Field Prior
1 Images and Transformations Images by Pawan SinhaPawan Sinha.
Linear filtering.
1 Image filtering Hybrid Images, Oliva et al.,
Basic Image Processing January 26, 30 and February 1.
Most slides from Steve Seitz
lecture 2, linear imaging systems Linear Imaging Systems Example: The Pinhole camera Outline  General goals, definitions  Linear Imaging Systems.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Filtering Course web page: vision.cis.udel.edu/cv March 5, 2003  Lecture 9.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
From Pixels to Features: Review of Part 1 COMP 4900C Winter 2008.
lecture 4, Convolution and Fourier Convolution Convolution Fourier Convolution Outline  Review linear imaging model  Instrument response function.
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.
Image Processing Edge detection Filtering: Noise suppresion.
CS 556 – Computer Vision Image Basics & Review. What is an Image? Image: a representation, resemblance, or likeness An image is a signal: a function carrying.
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.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Sejong Univ. CH3. Area Processes Convolutions Blurring Sharpening Averaging vs. Median Filtering.
Reconnaissance d’objets et vision artificielle
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
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.
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.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
- photometric aspects of image formation gray level images
… Sampling … … Filtering … … Reconstruction …
Basis beeldverwerking (8D040) dr. Andrea Fuster dr. Anna Vilanova Prof
Linear Filters and Edges Chapters 7 and 8
Distributed Ray Tracing
A Gentle Introduction to Bilateral Filtering and its Applications
Fourier Transform.
- photometric aspects of image formation gray level images
Lecture 1: Images and image filtering
Recap from Wednesday Spectra and Color Light capture in cameras and humans.
Linear system Convolution Linear Filter
Dr. Chang Shu COMP 4900C Winter 2008
Image filtering Images by Pawan Sinha.
Image filtering Images by Pawan Sinha.
Distributed Ray Tracing
Basic Image Processing
Digital Image Processing Week IV
Most slides from Steve Seitz
Lecture 2: Image filtering
Lecture 1: Images and image filtering
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Most slides from Steve Seitz
Lecture 7 Spatial filtering.
All about convolution.
Distributed Ray Tracing
Presentation transcript:

Comp 665 Convolution

Questions? Ask here first. Likely someone else has the same question.

Modeling the imaging process We know how to compute where points in the world will map on the image plane Now, how will they be changed?

Impulse Response Function Point Spread Function What is the image of a point? –Shape of pinhole for points at infinity –Typically a little blob for a good lens –Could have aberrations and are distance, color, or position dependent. What happens as we enlarge the pinhole?

Blurring as convolution: IRF’s and apertures Blurring by convolution with impulse response function: I blurred (x)=  I input (y) h(x-y) dy –Replace each point y by y’s intensity times IRF h centered at y h(x-y) is effect of a fixed y on x over various image points x –Sum up over all such points Aperture in image space x: –effect of y on x over various y: h(-[y-x]) – weighting of various input image points in producing image at a fixed point x

Linear Systems Favorite model because we have great tools F(a+b) = F(a) + F(b), F(k a) = k F(a) Shift Invariant Time Invariant Is camera projection linear?

Properties of convolution: I out (x) =  I in (y) h(x-y) dy h(x) is called the convolution kernel Linear in both inputs, I in and h Symmetric in its inputs, I in and h Cascading convolutions is convolution with the convolution of the two kernels: (I * h 1 ) * h 2 = I * (h 1 * h 2 ) –Thus cascading of convolution of two Gaussians produces Gaussian with  = (   2 2 ) ½ Any linear, shift invariant operator can be written as a convolution or a limit of one

Linear Shift-Invariant Operators Blurring with IRF that is constant over the scene Viewing scene through any fixed aperture All derivatives D –So D(I * h 1 ) = DI * h 1 = I * Dh 1 Designed operations, e.g., for smoothing, noise removal, sharpening, etc. Can be applied to parametrized functions of u –E.g., smoothing surfaces

Convolution Equation Notorious flip! For non-causal symmetric impulse responses it doesn’t matter For causal or non-symmetric impulse responses it is critical! Important for relating convolution to correlation Some texts (web sites) reverse the input, don’t do that Reverse the impulse response instead

1D Convolution Code Output side algorithm for i indexing y sum = 0 for j indexing h sum += h[j] * x[i-j] y[i] = sum Input side algorithm zero y for i indexing y for j indexing h y[i+j] += x[i]*h[j]

Impulse Response

Example Impulse Responses

Derivative of Gaussian Weighting Functions Gaussian: G Barness along u  : G uu Edgeness along u  : G u

Properties of Convolution Commutative: a*b = b*a Associative: (a*b)*c = a*(b*c) Distributive: a*b + a*c = a*(b+c) Central Limit Theorem: convolve a pulse with itself enough times you get a Gaussian

Properties of convolution, continued For any convolution kernel h(x), if the input I in (x) is a sinusoid with wavelength (level of detail) 1/, i.e., I in (x) = A cos(2  x) + B sin(2  x), then the output of the convolution is a sinusoid with the same wavelength (level of detail), i.e., I in * h = C cos(2  x) + D sin(2  x), for some C and D dependent on A, B, and h(x)

Sampling and integration (digital images) Model –Within-pixel integration at all points Has its own IRF, typically rectangular –Then sampling Sampling = multiplication by pixel area  brush function –Brush function is sum of impulses at pixel centers –Sampling = aliasing: in sinusoidal decomposition higher frequency components masquerading as and thus polluting lower frequency components –Nyquist frequency: how finely to sample to have adequately low effect of aliasing

Fun with Convolution s/applets/util/convolution/current/