Image Representation Gaussian pyramids Laplacian Pyramids

Slides:



Advertisements
Similar presentations
CSCE 643 Computer Vision: Template Matching, Image Pyramids and Denoising Jinxiang Chai.
Advertisements

November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Spatial Filtering (Chapter 3)
Applications in Signal and Image Processing
Multiscale Analysis of Images Gilad Lerman Math 5467 (stealing slides from Gonzalez & Woods, and Efros)
CS 691 Computational Photography
Digital Image Processing
Templates, Image Pyramids, and Filter Banks Slides largely from Derek Hoeim, Univ. of Illinois.
ECE 472/572 - Digital Image Processing Lecture 8 - Image Restoration – Linear, Position-Invariant Degradations 10/10/11.
Freeman Algorithms and Applications in Computer Vision Lihi Zelnik-Manor Lecture 5: Pyramids.
Convolution. Spatial Filtering Operations g(x,y) = 1/M  f(n,m) (n,m) in  S Example 3 x 3 5 x 5.
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Image Pyramids and Blending
Texture Reading: Chapter 9 (skip 9.4) Key issue: How do we represent texture? Topics: –Texture segmentation –Texture-based matching –Texture synthesis.
Image Enhancement.
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)=
Image Features, Hough Transform Image Pyramid CSE399b, Spring 06 Computer Vision Lecture 10
2D Fourier Theory for Image Analysis Mani Thomas CISC 489/689.
4 – Image Pyramids. Admin stuff Change of office hours on Wed 4 th April – Mon 31 st March pm (right after class) Change of time/date of last.
Transforms: Basis to Basis Normal Basis Hadamard Basis Basis functions Method to find coefficients (“Transform”) Inverse Transform.
Image Pyramids and Blending
Basic Image Processing January 26, 30 and February 1.
(1) A probability model respecting those covariance observations: Gaussian Maximum entropy probability distribution for a given covariance observation.
Linear Algebra and Image Processing
ENG4BF3 Medical Image Processing
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5409 T-R 10:30am – 11:50am.
2D Image Fourier Spectrum.
Introduction to Image Processing Grass Sky Tree ? ? Review.
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
Presentation Image Filters
Applications of Image Filters Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/04/10.
The Frequency Domain Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve Seitz CS194: Image Manipulation & Computational Photography Alexei.
CAP5415: Computer Vision Lecture 4: Image Pyramids, Image Statistics, Denoising Fall 2006.
Medical Image Analysis Image Enhancement Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
Lecture 3 Image Pyramids Antonio Torralba, What is a good representation for image analysis? Fourier transform domain tells you “ what ” (textural.
Templates, Image Pyramids, and Filter Banks
Image Processing Xuejin Chen Ref:
Math 3360: Mathematical Imaging Prof. Ronald Lok Ming Lui Department of Mathematics, The Chinese University of Hong Kong Lecture 9: More about Discrete.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
Wavelets and Multiresolution Processing (Wavelet Transforms)
1 CMPB 345: IMAGE PROCESSING DISCRETE TRANSFORM 2.
2D Image Fourier Spectrum.
Fourier Transform.
Lecture 5: Fourier and Pyramids
Computer vision. Applications and Algorithms in CV Tutorial 3: Multi scale signal representation Pyramids DFT - Discrete Fourier transform.
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
Recall: Gaussian smoothing/sampling G 1/4 G 1/8 Gaussian 1/2 Solution: filter the image, then subsample Filter size should double for each ½ size reduction.
Convolution.
Medical Image Analysis
Jean Baptiste Joseph Fourier
- photometric aspects of image formation gray level images
… Sampling … … Filtering … … Reconstruction …
The Chinese University of Hong Kong
Convolution.
Fourier Transform.
Image Processing - in short
Images & Objects Input Output Image Objects
Jeremy Bolton, PhD Assistant Teaching Professor
Multiscale Analysis of Images
Convolution.
Basic Image Processing
Convolution.
Nov. 25 – Israeli Computer Vision Day
Lecture 4 Image Enhancement in Frequency Domain
Convolution.
Photometric Processing
Review and Importance CS 111.
Convolution.
Presentation transcript:

Image Representation Gaussian pyramids Laplacian Pyramids Image Processing - Lesson 10 Image Representation Gaussian pyramids Laplacian Pyramids Wavelet Pyramids Applications

Image Pyramids Image features at different resolutions require filters at different scales. Edges (derivatives): f(x) f (x)

Image Pyramids Image Pyramid = Hierarchical representation of an image No details in image - (blurred image) low frequencies Low Resolution Details in image - low+high frequencies High Resolution A collection of images at different resolutions.

Image pyramids Gaussian Pyramids Laplacian Pyramids Wavelet/QMF

Image Pyramid Low resolution High resolution

Image Pyramid Frequency Domain Low resolution High resolution

Image Blurring = low pass filtering * = ~ =

* = * = * =

Image Pyramid Low resolution High resolution

Gaussian Pyramid Level n 1 X 1 Level 1 2n-1 X 2n-1 Level 0 2n X 2n

Gaussian Pyramid

Gaussian Pyramid Burt & Adelson (1981) Normalized: Swi = 1 Symmetry: wi = w-i Unimodal: wi ³ wj for 0 < i < j Equal Contribution: for all j Swj+2i = constant w0 w1 w-1 w-2 w2

Gaussian Pyramid a + 2b + 2c = 1 a + 2c = 2b a > 0.25 b = 0.25 Burt & Adelson (1981) a b c a + 2b + 2c = 1 a + 2c = 2b a > 0.25 b = 0.25 c = 0.25 - a/2

g = [0.05 0.25 0.4 0.25 0.05] low_pass_filter = g’ * g = For a = 0.4 most similar to a Gauusian filter g = [0.05 0.25 0.4 0.25 0.05] low_pass_filter = g’ * g = 0.0025 0.0125 0.0200 0.0125 0.0025 0.0125 0.0625 0.1000 0.0625 0.0125 0.0200 0.1000 0.1600 0.1000 0.0200 1 2 3 4 5 0.05 0.1 0.15 0.2

Computational Aspects Gaussian Pyramid - Computational Aspects Memory: 2NX2N (1 + 1/4 + 1/16 + ... ) = 2NX2N * 4/3 Computation: Level i can be computed with a single convolution with filter: hi = g * g * g * ..... i times Example: h2 = * = g g

MultiScale Pattern Matching Option 1: Scale target and search for each in image. Option 2: Search for original target in image pyramid.

Hierarchical Pattern Matching search search search search

Pattern matching using Pyramids - Example image pattern correlation

Image pyramids Gaussian Pyramids Laplacian Pyramids Wavelet/QMF

Laplacian Pyramid Motivation = Compression, redundancy removal. compression rates are higher for predictable values. e.g. values around 0. G0, G1, .... = the levels of a Gaussian Pyramid. Predict level Gl from level Gl+1 by Expanding Gl+1 to G’l Gl+1 Expand Reduce Gl G’l Denote by Ll the error in prediction: Ll = Gl - G’l L0, L1, .... = the levels of a Laplacian Pyramid.

What does blurring take away? original

What does blurring take away? smoothed (5x5 Gaussian)

What does blurring take away? smoothed – original

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

Frequency Domain Gaussian Pyramid Laplacian Pyramid

Laplace Pyramid - No scaling

from: B.Freeman

Reconstruction of the original image from the Laplacian Pyramid Gl = Ll + G’l Laplacian Pyramid expand + = expand + = expand + = Original Image

Computational Aspects Laplacian Pyramid - Computational Aspects Memory: 2NX2N (1 + 1/4 + 1/16 + ... ) = 2NX2N * 4/3 However coefficients are highly compressible. Computation: Li can be computed from G0 with a single convolution with filter: ki = hi-1 - hi - = hi-1 hi ki k1 k2 k3

Image Mosaicing Registration

Image Blending

Blending

Multiresolution Spline When splining two images, transition from one image to the other should behave: High Frequencies Middle Frequencies Low Frequencies

Multiresolution Spline High Frequencies Middle Frequencies Low Frequencies

Multiresolution Spline - Example Left Image Right Image Left + Right Narrow Transition Wide Transition (Burt & Adelson)

Multiresolustion Spline - Using Laplacian Pyramid

Multiresolution Spline - Example Left Image Right Image Left + Right Narrow Transition Wide Transition Multiresolution Spline (Burt & Adelson)

Multiresolution Spline - Example Original - Left Original - Right Glued Splined

laplacian level 4 laplacian level 2 laplacian level 0 left pyramid right pyramid blended pyramid

Multiresolution Spline

Multiresolution Spline - Example

The colored version © prof. dmartin

Image pyramids Gaussian Pyramids Laplacian Pyramids Wavelet/QMF

What is a good representation for image analysis? Pixel domain representation tells you “where” (pixel location), but not “what”. In space, this representation is too localized Fourier transform domain tells you “what” (textural properties), but not “where”. In space, this representation is too spread out. Want an image representation that gives you a local description of image events—what is happening where. That representation might be “just right”.

Space-Frequency Tiling Standard basis Spatial Freq. Fourier basis Spatial Freq. Wavelet basis Spatial

Space-Frequency Tiling Standard basis Spatial Freq. Fourier basis Spatial Freq. Wavelet basis Spatial

Various Wavelet basis

Wavelet bands are split recursively Wavelet - Frequency domain Wavelet bands are split recursively image H L H L L H

Wavelet decomposition - 2D Wavelet - Frequency domain Wavelet decomposition - 2D Frequency domain Horizontal high pass Vertical high pass Horizontal low pass Vertical low pass

Apply the wavelet transform separably in both dimensions Wavelet - Frequency domain Apply the wavelet transform separably in both dimensions Horizontal high pass, vertical high pass Horizontal high pass, vertical low-pass Horizontal low pass, vertical high-pass Horizontal low pass, Vertical low-pass

Splitting can be applied recursively:

Pyramids in Frequency Domain Gaussian Pyramid Laplacian Pyramid

Wavelet Decomposition Fourier Space

Wavelet Transform - Step By Step Example

Wavelet Transform - Example

Wavelet Transform - Example

Image Pyramids - Comparison Image pyramid levels = Filter then sample. Filters: Gaussian Pyramid Laplacian Pyramid Wavelet Pyramid

Image Linear Transforms Basis Characteristics Localized in space Not localized in Frequency Delta Standard Not localized in space Localized in Frequency Fourier Sines+Cosines Wavelet Pyramid Localized in space Localized in Frequency Wavelet Filters Delta Fourier Wavelet space space space

Convolution and Transforms in matrix notation (1D case) transformed image Vectorized image Basis vectors (Fourier, Wavelet, etc)

= * Fourier Transform Fourier transform Fourier bases pixel domain image Fourier bases are global: each transform coefficient depends on all pixel locations. From: B. Freeman

Transform in matrix notation (1D case) Forward Transform: transformed image Vectorized image Basis vectors (Fourier, Wavelet, etc) Inverse Transform: Basis vectors Vectorized image transformed image

= * Inverse Fourier Transform Fourier transform pixel domain image Fourier bases Every image pixel is a linear combination of the Fourier basis weighted by the coefficient. Note that if U is orthonormal basis then

= * Convolution Convolution Result Circular Matrix of Filter Kernels pixel image From: B. Freeman

Pyramid = Convolution + Sampling * Convolution Result Matrix of Filter Kernels pixel image From: B. Freeman

Pyramid = Convolution + Sampling Pyramid Level 1 = * Pyramid Level 2 = * Pyramid Level 2 = *

Pyramid = Convolution + Sampling Pyramid Level 2 = * Pyramid Level 2 = *

Pyramid as Matrix Computation - Example 1 4 6 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 6 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 6 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 6 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 6 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 6 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 6 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 6 4 1 0 - Next pyramid level U2 = 1 4 6 4 1 0 0 0 0 0 1 4 6 4 1 0 0 0 0 0 1 4 6 4 0 0 0 0 0 0 1 4 - The combined effect of the two pyramid levels U2 * U1 = 1 4 10 20 31 40 44 40 31 20 10 4 1 0 0 0 0 0 0 0 0 0 0 0 1 4 10 20 31 40 44 40 31 20 10 4 1 0 0 0 0 0 0 0 0 0 0 0 1 4 10 20 31 40 44 40 30 16 4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 10 20 25 16 4 0 from: B.Freeman

= = * Gaussian Pyramid pixel image Overcomplete representation. Low-pass filters, sampled appropriately for their blur. Gaussian pyramid From: B. Freeman

= * Laplacian Pyramid pixel image Overcomplete representation. Transformed pixels represent bandpassed image information. Laplacian pyramid From: B. Freeman

= * Wavelet Transform Wavelet pyramid Ortho-normal transform (like Fourier transform), but with localized basis functions. pixel image From: B. Freeman

Wavelet Shrinkage Denoising

Image statistics (or, mathematically, how can you tell image from noise?) Noisy image From: B. Freeman

Clean image From: B. Freeman

Image domain histogram From: B. Freeman

Wavelet domain image histogram From: B. Freeman

Image domain noise histogram From: B. Freeman

Wavelet domain noise histogram

Noise-corrupted full-freq and bandpass images But want the bandpass image histogram to look like this From: B. Freeman

Using Bayes theorem argmaxx P(x|y) = P(y|x) P(x) / P(y) Constant w.r.t. parameters x. argmaxx P(x|y) = P(y|x) P(x) / P(y) The parameters you want to estimate Likelihood function What you observe Prior probability From: B. Freeman

Bayesian MAP estimator for clean bandpass coefficient values Let x = bandpassed image value before adding noise. Let y = noise-corrupted observation. By Bayes theorem P(x|y) = k P(y|x) P(x) P(x) maximum P(y|x) y P(y|x) P(x|y) P(x|y) From: B. Freeman

Bayesian MAP estimator for clean bandpass coefficient values P(y|x) maximum P(x|y) From: B. Freeman

Bayesian MAP estimator for clean bandpass coefficient values maximum P(y|x) P(x|y) From: B. Freeman

MAP estimate, , as function of observed coefficient value, y From: B. Freeman

Wavelet Shrinkage Pipe-line Mapping functions Transform W xiw yiw Inverse Transform WT

Simoncelli and Adelson, Noise Removal via Bayesian Wavelet Coring Noise removal results Simoncelli and Adelson, Noise Removal via Bayesian Wavelet Coring From: B. Freeman

More results

More results