Computer Vision Spring 2006 15-385,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.

Slides:



Advertisements
Similar presentations
Multiscale Analysis of Images Gilad Lerman Math 5467 (stealing slides from Gonzalez & Woods, and Efros)
Advertisements

Image Interpolation CS4670: Computer Vision Noah Snavely.
Ted Adelson’s checkerboard illusion. Motion illusion, rotating snakes.
Slides from Alexei Efros
CS 691 Computational Photography
Computational Photography: Sampling + Reconstruction Connelly Barnes Slides from Alexei Efros and Steve Marschner.
Pyramids and Texture. Scaled representations Big bars and little bars are both interesting Spots and hands vs. stripes and hairs Inefficient to detect.
Computational Photography CSE 590 Tamara Berg Filtering & Pyramids.
Convolution. Spatial Filtering Operations g(x,y) = 1/M  f(n,m) (n,m) in  S Example 3 x 3 5 x 5.
Image Filtering, Part 2: Resampling Today’s readings Forsyth & Ponce, chapters Forsyth & Ponce –
Convolution, Edge Detection, Sampling : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Sampling and Pyramids : Rendering and Image Processing Alexei Efros …with lots of slides from Steve Seitz.
Edges and Scale Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski – From Sandlot ScienceSandlot.
Lecture 2: Edge detection and resampling
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F(  ) is the spectrum of the function.
Image transformations, Part 2 Prof. Noah Snavely CS1114
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Immagini e filtri lineari. Image Filtering Modifying the pixels in an image based on some function of a local neighborhood of the pixels
Image Sampling Moire patterns
Lecture 3: Edge detection, continued
CSCE 641 Computer Graphics: Fourier Transform Jinxiang Chai.
Lecture 4: Image Resampling CS4670: Computer Vision Noah Snavely.
Convolution. Convolution Properties Commutative: f*g = g*f Associative: (f*g)*h = f*(g*h) Homogeneous : f*( g)= f*g Additive (Distributive): f*(g+h)=
Lecture 3: Image Resampling CS4670: Computer Vision Noah Snavely Nearest-neighbor interpolation Input image 3x upsample hq3x interpolation (ZSNES)
CPSC 641 Computer Graphics: Fourier Transform Jinxiang Chai.
Computer Vision - A Modern Approach Set: Pyramids and Texture Slides by D.A. Forsyth Scaled representations Big bars (resp. spots, hands, etc.) and little.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
Computational Photography: Fourier Transform Jinxiang Chai.
Slides from Alexei Efros, Steve Marschner Filters & fourier theory.
Image Sampling Moire patterns -
Image Sampling CSE 455 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick.
Image Representation Gaussian pyramids Laplacian Pyramids
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5409 T-R 10:30am – 11:50am.
2D Image Fourier Spectrum.
Applications of Image Filters Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/04/10.
Image Resampling CS4670: Computer Vision Noah Snavely.
Image Resampling CS4670: Computer Vision Noah Snavely.
EECS 274 Computer Vision Pyramid and Texture. Filter, pyramid and texture Frequency domain Fourier transform Gaussian pyramid Wavelets Texture Reading:
Image Processing Xuejin Chen Ref:
Lecture 3: Edge detection CS4670/5670: Computer Vision Kavita Bala From Sandlot ScienceSandlot Science.
Instructor: S. Narasimhan
Templates, Image Pyramids, and Filter Banks
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.
2D Image Fourier Spectrum.
Lecture 5: Image Interpolation and Features
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Image Processing.
Lecture 5: Fourier and Pyramids
Computer vision. Applications and Algorithms in CV Tutorial 3: Multi scale signal representation Pyramids DFT - Discrete Fourier transform.
Projects Project 1a due this Friday Project 1b will go out on Friday to be done in pairs start looking for a partner now.
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
Image Resampling & Interpolation
- photometric aspects of image formation gray level images
Many slides from Steve Seitz and Larry Zitnick
Image Sampling Moire patterns
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F() is the spectrum of the function.
Computer Vision Jia-Bin Huang, Virginia Tech
Image Sampling Moire patterns
Multiscale Analysis of Images
More Image Manipulation
CSCE 643 Computer Vision: Thinking in Frequency
Samuel Cheng Slide credits: Noah Snavely
Image Processing Today’s readings For Monday
Filtering Part 2: Image Sampling
Image Sampling Moire patterns
Lecture 5: Resampling, Compositing, and Filtering Li Zhang Spring 2008
Image Resampling & Interpolation
Resampling.
Samuel Cheng Slide credits: Noah Snavely
Convolution.
Presentation transcript:

Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm

Image Resampling and Pyramids Lecture #8

RECAP - Sampling Theorem Continuous signal: Shah function (Impulse train): Sampled function:

RECAP - Sampling Theorem Sampled function: Only if Sampling frequency

RECAP - Nyquist Theorem If Aliasing When can we recover from ? Only if (Nyquist Frequency) We can use Thenand Sampling frequency must be greater than

Aliasing

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

Image Sub-Sampling Throw away every other row and column to create a 1/2 size image - called image sub-sampling 1/4 1/8

Image Sub-Sampling 1/4 (2x zoom) 1/8 (4x zoom) 1/2

Good and Bad Sampling Good sampling: Sample often or, Sample wisely Bad sampling: see aliasing in action!

Sub-Sampling with Gaussian Pre-Filtering G 1/4 G 1/8 Gaussian 1/2 Solution: filter the image, then subsample –Filter size should double for each ½ size reduction. Why?

G 1/4G 1/8Gaussian 1/2 Sub-Sampling with Gaussian Pre-Filtering

Compare with... 1/4 (2x zoom) 1/8 (4x zoom) 1/2

Image Resampling What about arbitrary scale reduction? How can we increase the size of the image? Recall how a digital image is formed –It is a discrete point-sampling of a continuous function –If we could somehow reconstruct the original function, any new image could be generated, at any resolution and scale 12345

Image Resampling So what to do if we don’t know –Answer: guess an approximation –Can be done in a principled way: filtering Image reconstruction –Convert to a continuous function –Reconstruct by cross-correlation:

Resampling filters What does the 2D version of this hat function look like? Better filters give better resampled images –Bicubic is common choice performs linear interpolation performs bilinear interpolation

Bilinear interpolation A common method for resampling images

Image Rotation

Multi-Resolution Image Representation Fourier domain tells us “what” (frequencies, sharpness, texture properties), but not “where”. Spatial domain tells us “where” (pixel location) but not “what”. We want a image representation that gives a local description of image “events” – what is happening where. Naturally, think about representing images across varying scales.

Multi-resolution Image Pyramids High resolution Low resolution

Space Required for Pyramids

Constructing a pyramid by taking every second pixel leads to layers that badly misrepresent the top layer

Even worse for synthetic images

Decimation

Expansion

Interpolation Results

The Gaussian Pyramid Smooth with Gaussians because –a Gaussian*Gaussian=another Gaussian Synthesis –smooth and downsample Gaussians are low pass filters, so repetition is redundant Kernel width doubles with each level

Smoothing as low-pass filtering High frequencies lead to trouble with sampling. Suppress high frequencies before sampling ! –truncate high frequencies in FT –or convolve with a low-pass filter Common solution: use a Gaussian –multiplying FT by Gaussian is equivalent to convolving image with Gaussian.

The Gaussian Pyramid High resolution Low resolution blur down-sample blur down-sample

Pyramids at Same Resolution

Difference of Gaussians (DoG) Laplacian of Gaussian can be approximated by the difference between two different Gaussians

Gaussian – Image filter Gaussian delta function Fourier Transform

expand Gaussian Pyramid Laplacian Pyramid The Laplacian Pyramid - = - = - =

Applications of Image Pyramids Coarse-to-Fine strategies for computational efficiency. Search for correspondence –look at coarse scales, then refine with finer scales Edge tracking –a “good” edge at a fine scale has parents at a coarser scale Control of detail and computational cost in matching –e.g. finding stripes –very important in texture representation Image Blending and Mosaicing Data compression (laplacian pyramid)

Edge Detection using Pyramids Coarse-to-fine strategy: Do edge detection at higher level. Consider edges of finer scales only near the edges of higher scales.

Fast Template Matching

Image Blending and Mosaicing

Blending Apples and Oranges

Pyramid blending of Regions

Horror Photo © prof. dmartin

Image Fusion Multi-scale Transform (MST) = Obtain Pyramid from Image Inverse Multi-scale Transform (IMST) = Obtain Image from Pyramid

Multi-Sensor Fusion

Image Compression

Next Class Hough Transform