L ECTURE 3 PDE Methods for Image Restoration. O VERVIEW Generic 2 nd order nonlinear evolution PDE Classification: Forward parabolic (smoothing): heat.

Slides:



Advertisements
Similar presentations
Pattern Recognition and Machine Learning
Advertisements

An Active contour Model without Edges
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Johann Radon Institute for Computational and Applied Mathematics: 1/25 Signal- und Bildverarbeitung, Image Analysis and Processing.
R. DOSIL, X. M. PARDO, A. MOSQUERA, D. CABELLO Grupo de Visión Artificial Departamento de Electrónica e Computación Universidade de Santiago de Compostela.
Active Contours, Level Sets, and Image Segmentation
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)
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Johann Radon Institute for Computational and Applied Mathematics: 1/33 Signal- und Bildverarbeitung, Image Analysis and Processing.
Johann Radon Institute for Computational and Applied Mathematics: 1/31 Signal- und Bildverarbeitung, Image Analysis and Processing.
Johann Radon Institute for Computational and Applied Mathematics: 1/39 The Gaussian Kernel, Regularization.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Signal- und Bildverarbeitung, 323
Limitation of Pulse Basis/Delta Testing Discretization: TE-Wave EFIE difficulties lie in the behavior of fields produced by the pulse expansion functions.
Image Segmentation some examples Zhiqiang wang
Lecture 4 Edge Detection
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
1 Image filtering Hybrid Images, Oliva et al.,
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Diffusion Filters S. Derin Babacan Department of Electrical and Computer Engineering Northwestern University March 7, 2006 ECE 463 Term Project.
Segmentation (Section 10.2)
1 Image filtering
EE565 Advanced Image Processing Copyright Xin Li Different Frameworks for Image Processing Statistical/Stochastic Models: Wiener’s MMSE estimation.
Guo-Wei. Wei 1 Department of Mathematics, Michigan State University, East Lansing, MI 48824, US High Order Geometric and Potential Driving PDEs for Image.
Numerical Methods for Partial Differential Equations
Differential Equations and Boundary Value Problems
Motivation from Real-World Applications EE565 Advanced Image Processing Copyright Xin Li Noisy Photos Noisy ultrasound data.
Spatial Filtering: Basics
Deformable Models Segmentation methods until now (no knowledge of shape: Thresholding Edge based Region based Deformable models Knowledge of the shape.
PDE-based Methods for Image and Shape Processing Applications Alexander Belyaev School of Engineering & Physical Sciences Heriot-Watt University, Edinburgh.
7.1. Mean Shift Segmentation Idea of mean shift:
Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
From Pixels to Features: Review of Part 1 COMP 4900C Winter 2008.
Extrapolation Models for Convergence Acceleration and Function ’ s Extension David Levin Tel-Aviv University MAIA Erice 2013.
PATTERN RECOGNITION AND MACHINE LEARNING CHAPTER 3: LINEAR MODELS FOR REGRESSION.
Image Processing Jitendra Malik. Different kinds of images Radiance images, where a pixel value corresponds to the radiance from some point in the scene.
The complex exponential function REVIEW. Hyperbolic functions.
7. Introduction to the numerical integration of PDE. As an example, we consider the following PDE with one variable; Finite difference method is one of.
Introduction to Level Set Methods: Part II
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
1 Markov random field: A brief introduction (2) Tzu-Cheng Jen Institute of Electronics, NCTU
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.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 27.
Boundary-Value Problems in Rectangular Coordinates
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Course 5 Edge Detection. Image Features: local, meaningful, detectable parts of an image. edge corner texture … Edges: Edges points, or simply edges,
Scale-Space and Edge Detection Using Anisotropic Diffusion Presented By:Deepika Madupu Reference: Pietro Perona & Jitendra Malik.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Instructor: Mircea Nicolescu Lecture 7
Digital Image Processing CSC331
A Probabilistic Appraoch to Nonlinear Diffusion: Feature-Driven Filtering Hamid Krim ECE Dept. NCSU, Raleigh, NC
Using Neumann Series to Solve Inverse Problems in Imaging Christopher Kumar Anand.
Introduction to Medical Imaging Week 6: Introduction to Medical Imaging Week 6: Denoising (part II) – Variational Methods and Evolutions Guy Gilboa Course.
Level set method and image segmentation
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Miguel Tavares Coimbra
Digital Image Processing
PDE Methods for Image Restoration
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Image gradients and edges
Digital Image Processing
Partial Differential Equations for Data Compression and Encryption
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Chapter 27.
Feature Detection .
Presentation transcript:

L ECTURE 3 PDE Methods for Image Restoration

O VERVIEW Generic 2 nd order nonlinear evolution PDE Classification: Forward parabolic (smoothing): heat equation Backward parabolic (smoothing-enhancing): TV flow Hyperbolic (enhancing): shock-filtering Initial degraded image Artificial time (scales)

S MOOTHING PDE S

H EAT E QUATION PDE Extend initial value from to Define space be the extended functions that are integrable on C

H EAT E QUATION Solution

H EAT E QUATION Fourier transform: Convolution theorem

H EAT E QUATION Convolution in Fourier (frequency) domain Fourier TransformAttenuating high frequency

H EAT E QUATION Convolution in Fourier (frequency) domain Fourier TransformAttenuating high frequency

H EAT E QUATION Convolution in Fourier (frequency) domain Fourier TransformAttenuating high frequency

H EAT E QUATION Isotropy. For any two orthogonal directions, we have The isotropy means that the diffusion is equivalent in the two directions. In particular

H EAT E QUATION Derivation: Let Then Finally, use the fact that D is unitary

H EAT E QUATION

Properties: let, then

H EAT E QUATION Properties – continued All desirable properties for image analysis. However, edges are smeared out.

N ONLINEAR D IFFUSION Introducing nonlinearity hoping for better balance between smoothness and sharpness. Consider How to choose the function c(x)? We want: Smoothing where the norm of gradient is small. No/Minor smoothing where the norm of gradient is large.

N ONLINEAR D IFFUSION Decomposition in normal and tangent direction Let, then We impose, which is equivalent to For example: when s is large

N ONLINEAR D IFFUSION Well-posed? The PDE is parabolic if It reduces to where

N ONLINEAR D IFFUSION Good nonlinear diffusion of the form if Example: or

T HE A LVAREZ –G UICHARD –L IONS –M OREL S CALE S PACE T HEORY Define a multiscale analysis as a family of operators with The operator generated by heat equation satisfies a list of axioms that are required for image analysis. Question: is the converse also true, i.e. if a list of axioms are satisfied, the operator will generate solutions of (nonlinear) PDEs. More interestingly, can we obtain new PDEs?

T HE A LVAREZ –G UICHARD –L IONS –M OREL S CALE S PACE T HEORY Assume the following list of axioms are satisfied

T HE A LVAREZ –G UICHARD –L IONS –M OREL S CALE S PACE T HEORY

curvature

W EICKERT ’ S A PPROACH Motivation: take into account local variations of the gradient orientation. Observation: is maximal when d is in the same direction as gradient and minimal when its orthogonal to gradient. Equivalently consider matrix It has eigenvalues. Eigenvectors are in the direction of normal and tangent direction.

W EICKERT ’ S A PPROACH Define positive semidefinite matrix where and is a Gaussian kernel. Eigenvalues Classification of structures Isotropic structures: Line-like structures: Corner structures:

W EICKERT ’ S A PPROACH Nonlinear PDE Choosing the diffusion tensor D(J): let D(J) have the same eigenvectors as J. Then, Edge-enhancing anisotropic diffusion Coherence-enhancing anisotropic diffusion

W EICKERT ’ S A PPROACH Edge-enhancing OriginalProcessed

W EICKERT ’ S A PPROACH Coherence-enhancing OriginalProcessed

S MOOTHING -E NHANCING PDE S Perona-Malik Equation

T HE P ERONA AND M ALIK PDE Back to general 2 nd order nonlinear diffusion Objective: sharpen edge in the normal direction Question: how?

T HE P ERONA AND M ALIK PDE Idea: backward heat equation. Recall heat equation and solution Warning: backward heat equation is ill-posed! BackwardForward

T HE P ERONA AND M ALIK PDE 1D example showing ill-posedness No classical nor weak solution unless is infinitely differentiable.

T HE P ERONA AND M ALIK PDE PM equation Backward diffusion at edge Isotropic diffusion at homogeneous regions Example of such function c(s) Warning: theoretically solution may not exist.

T HE P ERONA AND M ALIK PDE

Catt′e et al.’s modification

E NHANCING PDE S Nonlinear Hyperbolic PDEs (Shock Filters)

T HE O SHER AND R UDIN S HOCK F ILTERS A perfect edge Challenge: go from smooth to discontinuous Objective: find with edge-sharpening effects

T HE O SHER AND R UDIN S HOCK F ILTERS Design of the sharpening PDE (1D): start from

T HE O SHER AND R UDIN S HOCK F ILTERS Transport equation (1D constant coefficients) Variable coefficient transport equation Example: Solution:

T HE O SHER AND R UDIN S HOCK F ILTERS 1D design (Osher and Rudin, 1990) Can we be more precise?

M ETHOD OF C HARACTERISTICS Consider a general 1 st order PDE Idea: given an x in U and suppose u is a solution of the above PDE, we would like to compute u(x) by finding some curve lying within U connecting x with a point on Γ and along which we can compute u. Suppose the curve is parameterized as

M ETHOD OF C HARACTERISTICS Define: Differentiating the second equation of (*) w.r.t. s Differentiating the original PDE w.r.t. Evaluating the above equation at x(s) (*)

M ETHOD OF C HARACTERISTICS Letting Then Differentiating the first equation of (*) w.r.t. s Finally Characteristic ODEs

T HE O SHER AND R UDIN S HOCK F ILTERS Consider the simplified PDE with Convert to the general formulation

T HE O SHER AND R UDIN S HOCK F ILTERS First case:. Then and Thus For s=0, we have and. Thus

T HE O SHER AND R UDIN S HOCK F ILTERS Determine : o Since o Using the PDE we have Thus, we obtain the characteristic curve and solution Constant alone characteristic curve

T HE O SHER AND R UDIN S HOCK F ILTERS Characteristic curves and solution for case I

T HE O SHER AND R UDIN S HOCK F ILTERS Characteristic curves and solution for case II

T HE O SHER AND R UDIN S HOCK F ILTERS Observe o Discontinuity (shock) alone the vertical line at o Solution not defined in the gray areas o To not introduce further discontinuities, we set their values to 1 and -1 respectively Final solution

T HE O SHER AND R UDIN S HOCK F ILTERS Extension to 2D Examples of F(s) o Classical o Better 2 nd order differentiation in normal direction

T HE O SHER AND R UDIN S HOCK F ILTERS Numerical simulations

T HE O SHER AND R UDIN S HOCK F ILTERS Numerical simulations

T HE O SHER AND R UDIN S HOCK F ILTERS Drawbacks: o Results obtained are not realistic from a perceptual point of view. Textures will be destroyed. o Noise will be enhanced as well. Improved version: combining shock filter with anisotropic diffusion

N UMERICAL S OLUTIONS OF PDE S Finite Difference Approximation

F INITE D IFFERENCE S CHEMES Discretization of computation domain (1D) Basic discretizations of first order derivatives

F INITE D IFFERENCE S CHEMES Heat equation Standard discretization Boundary condition: If the value of a pixel (vertex) that is outside the domain is needed, we use the value of the pixel that is symmetric with respect to the boundaries.

F INITE D IFFERENCE S CHEMES For anisotropic diffusions (e.g. Perona-Malik and Weickert’s equation), we need to approximate Standard discretization Not symmetric!

F INITE D IFFERENCE S CHEMES For anisotropic diffusions (e.g. Perona-Malik and Weickert’s equation), we need to approximate More symmetric discretization where

F INITE D IFFERENCE S CHEMES Shock filters Discrete approximation o Approximate L using central differencing o Approximating the term using minmod operator Control Oscillation

H OMEWORK (D UE A PRIL 13 TH 11:59 PM ) Implement heat equation, Perona-Malik equation and shock filters in 2D. Image restoration problems o Denoising: heat equation and Perona-Malik o Deblurring: shock filters Observe: o Denoising effects of heat and Perona-Malike, how termination time T affect the results. o How does noise affect deblurring results of shock filters. Compare the two choices of operator L. Observe long term solution.