Lecture 7 Patch based methods: nonlocal means, BM3D, K- SVD, data-driven (tight) frame.

Slides:



Advertisements
Similar presentations
Basis beeldverwerking (8D040) dr. Andrea Fuster dr. Anna Vilanova Prof.dr.ir. Marcel Breeuwer Filtering.
Advertisements

Transform-based Non-local Methods for Image Restoration IT530, Lecture Notes.
CSCE 643 Computer Vision: Template Matching, Image Pyramids and Denoising Jinxiang Chai.
Non-local means: a look at non-local self-similarity of images
CS448f: Image Processing For Photography and Vision Sharpening.
Accelerating Spatially Varying Gaussian Filters Jongmin Baek and David E. Jacobs Stanford University.
Pointwise Shape-Adaptive DCT for denoising and image reconstruction: denoising, deblocking and deblurring for grayscale and color images continue... Tampere.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
5. 1 Model of Image degradation and restoration
Image Denoising using Locally Learned Dictionaries Priyam Chatterjee Peyman Milanfar Dept. of Electrical Engineering University of California, Santa Cruz.
SRINKAGE FOR REDUNDANT REPRESENTATIONS ? Michael Elad The Computer Science Department The Technion – Israel Institute of technology Haifa 32000, Israel.
Image Denoising via Learned Dictionaries and Sparse Representations
New Results in Image Processing based on Sparse and Redundant Representations Michael Elad The Computer Science Department The Technion – Israel Institute.
Image Denoising with K-SVD Priyam Chatterjee EE 264 – Image Processing & Reconstruction Instructor : Prof. Peyman Milanfar Spring 2007.
SUSAN: structure-preserving noise reduction EE264: Image Processing Final Presentation by Luke Johnson 6/7/2007.
Texture Reading: Chapter 9 (skip 9.4) Key issue: How do we represent texture? Topics: –Texture segmentation –Texture-based matching –Texture synthesis.
Lecture 2: Image filtering
EE565 Advanced Image Processing Copyright Xin Li Different Frameworks for Image Processing Statistical/Stochastic Models: Wiener’s MMSE estimation.
Computational Photography: Image Processing Jinxiang Chai.
Multiscale transforms : wavelets, ridgelets, curvelets, etc.
Sparse and Redundant Representation Modeling for Image Processing Michael Elad The Computer Science Department The Technion – Israel Institute of technology.
Geometry-driven Diffusion.
Despeckle Filtering in Medical Ultrasound Imaging
A Gentle Introduction to Bilateral Filtering and its Applications Limitation? Pierre Kornprobst (INRIA) 0:20.
Motivation from Real-World Applications EE565 Advanced Image Processing Copyright Xin Li Noisy Photos Noisy ultrasound data.
CSCE 441: Computer Graphics Image Filtering Jinxiang Chai.
High dynamic range imaging. Camera pipeline 12 bits8 bits.
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.
Iterated Denoising for Image Recovery Onur G. Guleryuz To see the animations and movies please use full-screen mode. Clicking on.
Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
Image Processing Edge detection Filtering: Noise suppresion.
Sparsity-based Image Deblurring with Locally Adaptive and Nonlocally Robust Regularization Weisheng Dong a, Xin Li b, Lei Zhang c, Guangming Shi a a Xidian.
Image Enhancement [DVT final project]
Real-Time Exemplar-Based Face Sketch Synthesis Pipeline illustration Note: containing animations Yibing Song 1 Linchao Bao 1 Qingxiong Yang 1 Ming-Hsuan.
Non-local Sparse Models for Image Restoration Julien Mairal, Francis Bach, Jean Ponce, Guillermo Sapiro and Andrew Zisserman ICCV 2009 Presented by: Mingyuan.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Practical Poissonian-Gaussian Noise Modeling and Fitting for Single-image Raw-data Alessandro Foi, Mejdi Trimeche, Vladimir Katkovnik, and Karen Egiazarian.
Image Denoising Using Wavelets
Digital Image Processing Lecture 10: Image Restoration
8-1 Chapter 8: Image Restoration Image enhancement: Overlook degradation processes, deal with images intuitively Image restoration: Known degradation processes;
A Gentle Introduction to Bilateral Filtering and its Applications 07/10: Novel Variants of the Bilateral Filter Jack Tumblin – EECS, Northwestern University.
1 Markov random field: A brief introduction (2) Tzu-Cheng Jen Institute of Electronics, NCTU
Edges.
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.
Bilateral Mesh Denoising Shachar Fleishman Iddo Drori Daniel Cohen-Or Tel Aviv University.
Instructor: Mircea Nicolescu Lecture 7
Single Image Interpolation via Adaptive Non-Local Sparsity-Based Modeling The research leading to these results has received funding from the European.
EE565 Advanced Image Processing Copyright Xin Li Why do we Need Image Model in the first place? Any image processing algorithm has to work on a collection.
Introduction to Medical Imaging Week 6: Introduction to Medical Imaging Week 6: Denoising (part II) – Variational Methods and Evolutions Guy Gilboa Course.
Medical Image Analysis
Miguel Tavares Coimbra
Edge Detection slides taken and adapted from public websites:
Sparsity Based Poisson Denoising and Inpainting

Digital Image Processing Lecture 10: Image Restoration
ECE 692 – Advanced Topics in Computer Vision
Deconvolution , , Computational Photography
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Math 3360: Mathematical Imaging
Image Analysis Image Restoration.
Image Denoising in the Wavelet Domain Using Wiener Filtering
A Gentle Introduction to Bilateral Filtering and its Applications
Non-local Means Filtering
Improving K-SVD Denoising by Post-Processing its Method-Noise
Department of Computer Engineering
Lecture 7 Spatial filtering.
Winter in Kraków photographed by Marcin Ryczek
Templates and Image Pyramids
Presentation transcript:

Lecture 7 Patch based methods: nonlocal means, BM3D, K- SVD, data-driven (tight) frame

Outline Nonlocal methods Dictionary learning methods Low rank models Nonlocal means BM3D Dictionary learning methods K-SVD Data-driven tight frame Low rank models

Nonlocal Methods Local means and BM3D

Denoising: Gaussian Smoothing Revisited * = *h h 𝑥 𝑖 = 1 𝐶 𝑖 𝑗 𝑦(𝑗) 𝑒 − 𝑖−𝑗 2 2 𝜎 2

Perona-Malik: Anisotropic Filtering Edges ⇒ smooth only along edges “Smooth” regions ⇒ smooth isotropically gradient

Ideal: Spatially Adaptive Smoothing Non uniform smoothing Depending on image content: Smooth where possible Preserve fine details How? *h3 *h2 *h1

Bilateral Filtering (Smith and Brady, 1997) Formula

* * * Gaussian Smoothing Same Gaussian kernel everywhere Slides taken from Sylvain Paris, Siggraph 2007 Gaussian Smoothing * input output * * Same Gaussian kernel everywhere Averages across edges ⇒ blur

* * * Bilateral Filtering Kernel shape depends on image content Slides taken from Sylvain Paris, Siggraph 2007 Bilateral Filtering * input output * * Kernel shape depends on image content Avoids averaging across edges

Nonlocal Means (NLM): Motivation Assume a static scene Consider multiple images y(𝑡) at different times The signal 𝑥(𝑡) remains constant 𝑛(𝑡) varies over time with zero mean

Nonlocal Means (NLM): Motivation Average multiple images over time

Nonlocal Means (NLM): Motivation Average multiple images over time

Nonlocal Means (NLM): Motivation Average multiple images over time

Redundancy in natural images Glasner et al. (2009)

Single image “time-like” denoising Unfortunately, patches are not exactly the same ⇒ simple averaging just won’t work

NLM Buades, Cole and Morel (2005) 𝑤(𝑝,𝑞) 𝑤(𝑝,𝑟) 𝑤(𝑝,𝑠) Use a weighted average based on similarity 𝑥 𝑖 = 1 𝐶 𝑖 𝑗 𝑦(𝑗) 𝑒 − 𝐺𝑆𝑆𝐷 y 𝑁 𝑖 −y 𝑁 𝑗 2 𝜎 2 𝑤 𝑖,𝑗

From Bilateral Filters to NLM 𝑥 𝑖 𝑁𝐿𝑀 1𝑥1 = 1 𝐶 𝑖 𝑗 𝑦(𝑗) 𝑒 − 𝑦 𝑖 −𝑦(𝑗) 2 2 𝜎 2 𝑥 𝑖 𝑁𝐿𝑀 = 1 𝐶 𝑖 𝑗 𝑦(𝑗) 𝑒 − 𝐺𝑆𝑆𝐷 y 𝑁 𝑖 −y 𝑁 𝑗 2 𝜎 2 Patch similarity

Performance Evaluation Gaussian Smoothing Anisotropic Filtering Bilateral Filtering NLM Windowed Weiner Hard WT Soft WT Buades et al. (2005)

Variational Formulation of NLM Gilboa and Osher (2008) Nonlocal (partial) derivative Nonlocal gradient: 𝛻 𝑤 𝑢:𝛺→𝛺×𝛺 Inner product: 𝑣 1 , 𝑣 2 ≔ Ω×Ω 𝑣 1 𝑥,𝑦 𝑣 2 𝑥,𝑦 𝑑𝑥𝑑𝑦 With such inner product, we can define divergence 𝑑𝑖 𝑣 𝑤 𝑣 𝑥 : Ω×Ω→Ω And Laplacian

Variational Formulation of NLM Gilboa and Osher (2008) Nonlocal TV Nonlocal ROF Nonlocal TV- 𝐿 1

Variational Formulation of NLM Gilboa and Osher (2008)

Application in Surface Denoising Dong et al. (2008)

Application in Surface Denoising Dong et al. (2008)

Application in 4D CT Reconstruction Tian et al. (2011)

What’s Next? The idea of grouping sounds good ⇒ reduces mixing Denoise = “extract the common (the signal)” NLM: common = weighted average Can a sparser representation do better?

BM3D: Dabov et al. (2007) Block Matching 3D collaborative filtering Group patches with similar local structure (BM) Jointly denoise each group (3D) Smart Fusion of multiple estimates

BM3D: Dabov et al. (2007) R R Single BM3D Estimate Filter / R Block matching Inverse 3D transform Filter / thresholding R R R 3D grouping Denoised 3D group 3D transform

BM3D: Dabov et al. (2007) For every noisy reference block: Calculate SSD between noisy blocks If SSD<thr ⇒ add to group

BM3D: Dabov et al. (2007) 3D transform 3D transform Image Patch Domain Sparse Domain

BM3D: Dabov et al. (2007) Collaborative filtering Use hard thresholding or Wiener filter Each patch in the group gets a denoised estimate Unlike NLM – where only central pixel in reference patch got an estimate Filter / Thresholding R R Noisy patches Denoised Patches

BM3D: Dabov et al. (2007) Multiple BM3D Estimate R R R R R R R R Collaborative filtering R R thr R R Multiple BM3D Estimate R Collaborative filtering R thr R R

BM3D: Dabov et al. (2007) R t ? Fusion

BM3D: Dabov et al. (2007) Each pixel gets multiple estimates from different groups Naive approach Average all estimates of each pixel …. not all estimates are as good Suggestion Give higher weight to more reliable estimates

𝑤∝ 1 #𝑁𝑜𝑛 𝑍𝑒𝑟𝑜 𝐶𝑜𝑒𝑓𝑓𝑖𝑐𝑖𝑒𝑛𝑡𝑠 BM3D: Dabov et al. (2007) Give each estimate a weight according to denoising quality of its group Quality = Sparsity induced by the denoising Hard thresholding 𝑤∝ 1 #𝑁𝑜𝑛 𝑍𝑒𝑟𝑜 𝐶𝑜𝑒𝑓𝑓𝑖𝑐𝑖𝑒𝑛𝑡𝑠 Weiner filtering 𝑤∝ 1 𝐹𝑖𝑙𝑡𝑒𝑟 2

BM3D: Dabov et al. (2007) Noise may result in poor matching ⇒ Degrades de-noising performance Improvements: Match using a smoothed version of the image Perform BM3D in 2 phases: Basic BM3D estimate ⇒ improved 3D groups Final BM3D Variational formulation: BM3D frame Danielyan, Katkovnik and Egiazarian. BM3D frames and variational image deblurring. IEEE TIP. 21(4):1715-28. 2012.

BM3D: Dabov et al. (2007) Results

Dictionary Learning K-SVD, Data-Driven Tight Frame

Sparse Coding and Dictionary Learning

Dictionary Selection Which D to use? A fixed set of basis: Steerable wavelet Contourlet DCT Basis …… Data adaptive dictionary – learn from data K-SVD ( ℓ 0 -norm) http://bicmr.pku.edu.cn/~dongbin/Teaching_files/%E5%9B%BE%E5%83%8F%E5%A4%84%E7%90%86%E4%B8%AD%E7%9A%84%E6%95%B0%E5%AD%A6%E6%96%B9%E6%B3%95-18-19/ClassMaterials/K-SVD.pptx Data-Driven Tight Frame (DDTF) http://bicmr.pku.edu.cn/~dongbin/Teaching_files/%E5%9B%BE%E5%83%8F%E5%A4%84%E7%90%86%E4%B8%AD%E7%9A%84%E6%95%B0%E5%AD%A6%E6%96%B9%E6%B3%95-18-19/ClassMaterials/DDTF.pdf