NONLINEAR DIFFUSION PDES

Similar documents
Erkut Erdem. Hacettepe University February 24 th, Linear Diffusion 1. 2 Appendix - The Calculus of Variations 5.

Nonlinear Diffusion. Journal Club Presentation. Xiaowei Zhou

Nonlinear Diffusion. 1 Introduction: Motivation for non-standard diffusion

NON-LINEAR DIFFUSION FILTERING

Medical Image Analysis

Medical Image Analysis

Linear Diffusion and Image Processing. Outline

Consistent Positive Directional Splitting of Anisotropic Diffusion

ITK Filters. Thresholding Edge Detection Gradients Second Order Derivatives Neighborhood Filters Smoothing Filters Distance Map Image Transforms

Fraunhofer Institute for Computer Graphics Research Interactive Graphics Systems Group, TU Darmstadt Fraunhoferstrasse 5, Darmstadt, Germany

A Four-Pixel Scheme for Singular Differential Equations

Linear Diffusion. E9 242 STIP- R. Venkatesh Babu IISc

Introduction to Nonlinear Image Processing

A BAYESIAN APPROACH TO NONLINEAR DIFFUSION BASED ON A LAPLACIAN PRIOR FOR IDEAL IMAGE GRADIENT

RIGOROUS MATHEMATICAL INVESTIGATION OF A NONLINEAR ANISOTROPIC DIFFUSION-BASED IMAGE RESTORATION MODEL

Image enhancement. Why image enhancement? Why image enhancement? Why image enhancement? Example of artifacts caused by image encoding

Novel integro-differential equations in image processing and its applications

Optimal stopping time formulation of adaptive image filtering

A Nonlocal p-laplacian Equation With Variable Exponent For Image Restoration

Scale Space Analysis by Stabilized Inverse Diffusion Equations

Efficient Beltrami Filtering of Color Images via Vector Extrapolation

A Partial Differential Equation Approach to Image Zoom

T H E S I S. Computer Engineering May Smoothing of Matrix-Valued Data. Thomas Brox

Forward-and-Backward Diffusion Processes for Adaptive Image Enhancement and Denoising

ENERGY METHODS IN IMAGE PROCESSING WITH EDGE ENHANCEMENT

Nonlinear diffusion filtering on extended neighborhood

Partial Differential Equations and Image Processing. Eshed Ohn-Bar

NOISE ENHANCED ANISOTROPIC DIFFUSION FOR SCALAR IMAGE RESTORATION. 6, avenue du Ponceau Cergy-Pontoise, France.

A New Scheme for Anisotropic Diffusion: Performance Evaluation of Rotation Invariance, Dissipativity and Efficiency no author given no address given A

Selection of Optimal Stopping Time for Nonlinear Diffusion Filtering

A NEW PARTIAL DIFFERENTIAL EQUATION-BASED APPROACH FOR 3D DATA DENOISING AND EDGE PRESERVING

PDE-based image restoration, I: Anti-staircasing and anti-diffusion

A Tensor Variational Formulation of Gradient Energy Total Variation

Dimension-Independent likelihood-informed (DILI) MCMC

Nonlinear diffusion filtering of images using the topological gradient approach to edges detection

PDEs in Image Processing, Tutorials

Lecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.

A Discrete Theory and Efficient Algorithms for Forward-and-Backward Diffusion Filtering

Energy-Based Image Simplification with Nonlocal Data and Smoothness Terms

Universität des Saarlandes. Fachrichtung 6.1 Mathematik

Total Variation Theory and Its Applications

A FAMILY OF NONLINEAR DIFFUSIONS CONNECTING PERONA-MALIK TO STANDARD DIFFUSION. Patrick Guidotti

graphics + usability + visualization Edge Aware Anisotropic Diffusion for 3D Scalar Data on Regular Lattices Zahid Hossain MSc.

Edge Detection PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2005

Iterative Methods for Ill-Posed Problems

Integro-Differential Equations Based on (BV, L 1 ) Image Decomposition

Stability of Krylov Subspace Spectral Methods

Image enhancement by non-local reverse heat equation

Edge detection and noise removal by use of a partial differential equation with automatic selection of parameters

A Physical Model for MR-DTI Based Connectivity Map Computation

Edge Detection. Computer Vision P. Schrater Spring 2003

Inverse problem and optimization

PDE Based Image Diffusion and AOS

Introduction LECTURE 1

Lesson 04. KAZE, Non-linear diffusion filtering, ORB, MSER. Ing. Marek Hrúz, Ph.D.

Neighborhood filters and PDE s

Scale Space Smoothing, Image Feature Extraction and Bessel Filters

Mathematical and numerical analysis of a nonlinear diffusion model for image restoration

Introduction to numerical schemes

Laplacian Filters. Sobel Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters

Total Variation Image Edge Detection

Inverse problems Total Variation Regularization Mark van Kraaij Casa seminar 23 May 2007 Technische Universiteit Eindh ove n University of Technology

1 Inner Product and Orthogonality

EE 367 / CS 448I Computational Imaging and Display Notes: Image Deconvolution (lecture 6)

Complex Diffusion Processes for Image Filtering

Lecture 7: Edge Detection

Extract useful building blocks: blobs. the same image like for the corners

IN this chapter, we introduce the Stabilized Inverse Diffusion Equations (SIDEs), as

Conjugate gradient acceleration of non-linear smoothing filters

PROBABILISTIC CONTINUOUS EDGE DETECTION USING LOCAL SYMMETRY

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

SINCE THE elegant formulation of anisotropic diffusion

Mathematical Problems in Image Processing

Seismic Fault Preserving Diffusion

Filtering and Edge Detection

Stability Properties of Perona-Malik Scheme

Locally Monotonic Diffusion

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

Unravel Faults on Seismic Migration Images Using Structure-Oriented, Fault-Preserving and Nonlinear Anisotropic Diffusion Filtering

12 The Heat equation in one spatial dimension: Simple explicit method and Stability analysis

Controlled Diffusions and Hamilton-Jacobi Bellman Equations

Diffusion on the half-line. The Dirichlet problem

TRACKING and DETECTION in COMPUTER VISION Filtering and edge detection

2.2. Methods for Obtaining FD Expressions. There are several methods, and we will look at a few:

Numerical Solutions to Partial Differential Equations

Graph Signal Processing for Image Compression & Restoration (Part II)

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

Numerical explorations of a forward-backward diffusion equation

Introduction to Multigrid Methods

On Mean Curvature Diusion in Nonlinear Image Filtering. Adel I. El-Fallah and Gary E. Ford. University of California, Davis. Davis, CA

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

Restoration of images with rotated shapes

A New Nonlocal Nonlinear Diffusion of Image Processing

An Energy Regularization Method for the Backward Diffusion Problem and its Applications to Image Deblurring

MATH34032 Mid-term Test 10.00am 10.50am, 26th March 2010 Answer all six question [20% of the total mark for this course]

A Generative Model Based Approach to Motion Segmentation

MCMC Sampling for Bayesian Inference using L1-type Priors

Calculus of Variations Summer Term 2014

Medical Images Fusion with Patch Based Structure Tensor

Image preprocessing in spatial domain

Transcription:

NONLINEAR DIFFUSION PDES Erkut Erdem Hacettepe University March 5 th, 0 CONTENTS Perona-Malik Type Nonlinear Diffusion Edge Enhancing Diffusion 5 References 7 PERONA-MALIK TYPE NONLINEAR DIFFUSION The main theory behind nonlinear diffusion models is to use nonlinear PDEs to create a scale space representation that consists of gradually simplified images where some image features such as edges are maintained or even enhanced The earliest nonlinear diffusion model proposed in image processing is the so-called anisotropic diffusion by Perona and Malik [] In their formulation, they replaced the constant diffusion coefficient of linear equation by a smooth nonincreasing diffusivity function g with g(0) =, g(s) 0, and lim s g(s) = 0 As a consequence, the diffusivities become variable in both space and time The Perona-Malik equation is () t = (g( u ) u) with homogeneous Neumann boundary conditions and the initial condition u 0 (x) = f(x), f denoting the input image Perona and Malik suggested two different choices for the diffusivity function: () (3) g(s) = g(s) = e s λ +s /λ, erkut@cshacettepeedutr In fact, Perona-Malik equation is an isotropic nonhomogeneous equation as it uses a scalar-valued diffusivity A true example of anisotropic diffusion model, edge-enhancing diffusion [3], will be summarized in Section

PERONA-MALIK TYPE NONLINEAR DIFFUSION where λ corresponds to a contrast parameter These functions share similar characteristics, and result in similar effects on the diffusivities We review the D physical analysis of the Perona-Malik diffusion below since it clearly demonstrates the role of the contrast parameter λ and the main behavior of the equation [4] For D case, the Perona-Malik equation is as follows: (4) t = x (g( u x )u x ) = Φ (u x )u xx }{{} Φ(u x ) with g( u x ) = or g( u + u x /λ x ) = e ux λ Figure shows the diffusivity functions and the corresponding flux functions for linear diffusion and Perona-Malik type nonlinear diffusion One can easily observe that for linear diffusion the diffusivity is constant (g(s) = ), which results in a linearly increasing flux function As a result, all points, including the discontinuities, are smoothed equally For Perona-Malik, the diffusivity is variable and decreases as u x increases It is evident that the decay in diffusivity is particularly rapid after the contrast parameter λ This leads to two different behaviors in the diffusion process Since t = Φ (u x )u xx, for the points where u x < λ, Φ (u x ) > 0 which corresponds to lost in the material For the points where u x > λ, on the contrary, Φ (u x ) < 0 which generates an enhancement in the material Hence, although the diffusivity is always nonnegative, one can observe both forward and backward diffusions during the smoothing process, and the contrast parameter λ separates the regions of forward diffusion from the regions of backward diffusion diffusivity functions flux functions g(s) 08 06 04 0 0 0 lambda 4 6 8 0 s Φ(s) 6 4 08 06 04 0 0 0 lambda 4 6 8 0 s Figure : Diffusivities and the corresponding flux functions for linear diffusion (plotted in dashed line) and Perona-Malik type nonlinear diffusion (plotted in solid line) For Perona-Malik diffusivity g(s) = +s /λ is used with λ = 3 If we consider the D case, the diffusivities are reduced at the image locations where u is large As u can be interpreted as a measure of edge likelihood, this means that the amount of smoothing is low along image edges In particular, the contrast parameter λ specifies a measure that determines which edge points are to be preserved or blurred during the diffusion process Even edges can be sharpened due to the local backward diffusion behavior as discussed for the D case Since the backward

(a) (b) (c) Figure : The staircasing effect (a) Original noisy image (b) Perona-Malik diffusion (c) Regularized Perona-Malik diffusion diffusion is a well-known ill-posed process, this may cause an instability, the so-called staircasing effect, where a piece-wise smooth region in the original image evolves into many unintuitive piecewise constant regions Figure shows an example where this instability occurs The unintuitive regions such as the one at the woman s face and shoulder are clearly visible in Figure (b) A possible solution to this drawback is to use regularized gradients in diffusivity computations [] (Figure (c)) Replacing the diffusivities g( u ) with the regularized ones g( u σ ) leads to the following equation: (5) t = (g( u σ ) u) where u σ = G σ u represents a Gaussian-smoothed version of the image Taking the equivalence of the Gaussian smoothing and the linear scale space into account, u σ can also be considered as the gradient computed at a specific scale σ > 0 Some example results of regularized Perona-Malik filtering with different diffusion times are shown in Figure3 and Figure 4 It is evident from these images that the corresponding smoothing process diminishes noise while retaining or even enhancing edges since it considers a kind of a priori edge knowledge Numerical Implementation For numerical implementation, we use central differences to approximate the gradient magnitude at a pixel (i, j) in the diffusivity estimation, g i,j = g( u i,j ): (6) ( ) dui,j u i,j = + dx ( dui,j dy ) ( ) ui+,j u ( ) i,j ui,j+ u i,j + The Perona-Malik equation (Equation ) is first discretized wrt spatial variables 3

PERONA-MALIK TYPE NONLINEAR DIFFUSION T = 0 T = 50 T = 00 T = 00 T = 400 T = 800 Figure 3: Reg Perona-Malik results for different diffusion time (λ =, σ = ) T = 0 T = 00 T = 00 T = 400 T = 800 T = 600 Figure 4: Reg Perona-Malik results for different diffusion times (λ =, σ = ) This results in the following space-discrete equation: (7) 4 t du i,j dt = x (g( u )u x)+ ( ) g( u )uy, y = g i+,j (u i+,j u i,j ) gi,j (u i,j u i,j ) + g i,j+ (u i,j+ u i,j ) gi,j (u i,j u i,j )

u i,j u i,j u i+,j g i,j u i,j g i,j u i,j g i+ u,j i+,j g i,j+ u i,j+ u i,j+ u i+,j+ Figure 5: Discretization grid used in (Equation 7) This discretization scheme requires the diffusivities to be estimated at mid-pixel points (Figure 5) They are simply computed by taking averages of the diffusivities over neighboring pixels: (8) g i±,j = g i±,j+g i,j, g i,j± = g i,j±+ g i,j The time derivative in (Equation 7) can be discretized using forward difference This yields an iterative scheme with an explicit time discretization, where homogeneous Neumann boundary condition is imposed along the image boundary (9) u k+ i,j u k i,j t = g k i+,j uk i+,j + gk i,j uk i,j + gk i,j+ u k i,j+ + gk i,j u k i,j ( ) g k i+,j+gk i,j+gk + i,j+ g k i,j u k i,j with t denoting the time step For the Perona-Malik diffusion, the stability requirement is again t 05 EDGE ENHANCING DIFFUSION The nonlinear diffusion model proposed by Perona and Malik employs a scalar-valued diffusivity function to guide the smoothing process as summarized in Section The diffusivities are reduced at the image locations where the magnitude of image gradient u is large, and as a result, the edges are preserved or even enhanced In [3], Weickert suggested an alternative approach that additionally takes direction of the image gradients into account The suggested model is an anisotropic nonlinear diffusion model with better edge enhancing capabilities In general, any anisotropic nonlinear diffusion can be described by the equation (0) t = (D( u) u) where u is the smoothed image that is initialized with the input image f (that is u 0 (x) = f(x)), and D represents a matrix-valued diffusion tensor that describes the 5

EDGE ENHANCING DIFFUSION smoothing directions and the corresponding diffusivities One can easily observe that for linear diffusion the diffusion tensor can be defined as D( u) = I, which results in a constant diffusion coefficient for all image points in all directions Similarly, for Perona-Malik type nonlinear diffusion, D( u) = g( u σ )I Such a choice reduces the amount of smoothing at image edges, but in an equal amount in all directions In actual anisotropic setting, the diffusion tensor D is defined as a function of the structure tensor given by [ ] () J( u) = u u T u = x u x u y u x u y u y The structure tensor J( u) can be interpreted as an image feature describing the local orientation information It has an orthonormal basis of eigenvectors v and v with v u and v u, and the corresponding eigenvalues λ = u and λ = 0 It is important to note that noise significantly affects the tensor estimation Thus the given image u is usually convolved with a Gaussian kernel G σ with a relatively small standard deviation σ as a presmoothing step and the structure tensor is computed accordingly by using u σ = (G σ u) instead of u The main idea behind edge enhancing diffusion is to use the structure tensor as an image/edge descriptor to construct a diffusion tensor that reduces the amount of smoothing across the edges while smoothing is still carried out along the edges In order to perform this, Weickert proposed to utilize same orthonormal basis of eigenvectors v u σ and v u σ estimated from the structure tensor J( u σ ) with the following choice of eigenvalues satisfying λ ( u σ ) λ ( u σ ) 0 for u σ () (3) { if uσ = 0 λ ( u σ ) = ( ) exp 33488 otherwise, ( u σ /λ) 8 λ ( u σ ) = where λ denotes the contrast parameter Such a choice preserves and enhances image edges by reducing the diffusivity λ perpendicular to edges for sufficiently large values of u σ Specifically, the diffusion tensor is given by the formula (4) [ (uσ ) D = x (u σ ) y (u σ ) y (u σ ) x ] [ λ ( u σ ) 0 0 λ ( u σ ) ] [ (uσ ) x (u σ ) y (u σ ) y (u σ ) x ] Figure 6 and Figure 7 illustrate example results of edge enhancing diffusion filter for different diffusion times As it can be clearly seen from these images, the corresponding smoothing process diminishes noise and fine image details while retaining and even enhancing edges as in the Perona-Malik type nonlinear diffusion On the other hand, the corners become more rounded in the anisotropic model compared to the Perona-Malik filter (cf Figure 3 and Figure 4) since edge enhancing diffusion allows smoothing along edges while preventing smoothing across them As discussed in [4], this causes a slight shrinking effect in the image structures, which eliminates 6

T = 0 T = 50 T = 00 T = 00 T = 400 T = 800 Figure 6: Edge enhancing diffusion results for different diffusion times (λ =, σ = ) T = 0 T = 00 T = 00 T = 400 T = 800 T = 600 Figure 7: Edge enhancing diffusion results for different diffusion times (λ = 8, σ = ) fine or thin structures better than the Perona-Malik model Thus, through this process one can capture semantically more correct image regions 7

REFERENCES REFERENCES [] F Catté, P-L Lions, J-M Morel, and T Coll Image selective smoothing and edge detection by nonlinear diffusion SIAM J Numer Anal, 9():8 93, 99 [] P Perona and J Malik Scale-space and edge detection using anisotropic diffusion IEEE Trans Pattern Anal Mach Intell, :69 639, 990 [3] J Weickert Anisotropic diffusion filters for image processing based quality control In Proc Seventh European Conference on Mathematics in Industry, pages 355 36, 994 [4] J Weickert Anisotropic Diffusion in Image Processing Teubner, Stuttgart, 998 8