260 likes | 442 Views
ECE 463 Term Project. Diffusion Filters. S. Derin Babacan Department of Electrical and Computer Engineering Northwestern University March 7 , 200 6. Introduction. Filters for enhancement, restoration, smoothing and feature extraction Varying for each data entry based on local features
E N D
ECE 463 Term Project Diffusion Filters S. Derin Babacan Department of Electrical and Computer Engineering Northwestern University March7, 2006
Introduction • Filters for enhancement, restoration, smoothing and feature extraction • Varying for each data entry based on local features • u = [u(0),u(1),..,u(n-1),u(n)] • w = [w0 , w1 , .. , wn-1 , wn ] • wi = [wi(0), wi(1), .. , wi(m-1), wi(m) ] • Mean-value preserving
Physics of Diffusion Flux Diffusion Tensor • Fick’s Law • Continuity • Diffusion Equation • Gradient : (ux , uy) • Divergence : div Ψ = Ψx + Ψy • Concentration replaced by data values Concentration Gradient
Diffusion Filters • D : a scalar (flux and gradient are parallel) • Isotropic diffusion • D spatially invariant (fixed): Homogeneous linear • D = g(·): Inhomogeneous (linear/nonlinear) • D : a matrix (rotation and/or scaling), flux and gradient are generally not parallel • Anisotropic diffusion • Eigenvectors of D determine the diffusion direction
Linear Diffusion Filters • Homogeneous case D = 1 • Initial condition u(x,0) = f(x) • Unique solution:
Linear Diffusion Filters HL IHL →
Linear Diffusion Filters • Inhomogeneous case • Decrease blurring of the important features • Spatial adaptation → Reduce diffusion at the edges • D = g(·), monotonically decrease with increasing parameter • Gradient of f as the fuzzy edge detector Result
Nonlinear Isotropic Filters • Incorporate adaptation based on the current filtered image instead of the initial image • Spatial and temporal adaptation • D = g(·) • g : a function of u • High contrast region : low diffusion • Low contrast region : high diffusion
Nonlinear Isotropic Filters • Charbonnier • Perona-Malik • λ : contrast parameter to discriminate noise from edges
Nonlinear Isotropic Filters • High noise in gradient • Instability, suppresion of important image features • Unnecessary suppression of diffusion (noise remains) • Regularization : Smooth the gradient before adaptation
Nonlinear Isotropic Filters → R-PM t = 0 t = 40 t = 400 t = 1500 EE R-PM Original PM
Nonlinear Isotropic Filters Original PM Canny PM
Nonlinear Anisotropic Filters • So far, adaptation is only done spatially and/or temporally, but diffusion direction is fixed • Adaptation of the diffusion orientation • D is chosen as a matrix (scaling and/or rotation) • Varying the diffusion direction over the image can preserve/enhance local/semilocal features • Intraregion smoothing instead of interregion smoothing
Edge Enhancing Filter • Change the orientation and the strength of the diffusion at an edge • Smooth along the edge boundary • Diffusion along the edges • Reduce/Stop diffusion across the edge (e.g. Orthogonal to the edge) • Intraregion smoothing
Edge Enhancing Filter • Create a positive semidefinite diffusion tensor D • Orthonormal eigenvectors of D : υ1 ,υ2 • Eigenvalues control the diffusion strength • 1) • 2)
t = 0 t = 40 t = 400 t = 1500 Edge Enhancing Filter R-PM EE t = 0 t = 250 t = 875 t = 3000 ←
Coherence Enhancing Filter • Interrupted lines, flows in addition to noise • Need to process line or coherent flow-like structures, complete gaps
Coherence Enhancing Filter • Orientations instead of directions (invariance to sign changes in gradient) • Orientation feature: Structure tensor • Create diffusion tensor as a function of structure tensor instead of the gradient
Coherence Enhancing Filter • Jρpositive semidefinite → orthonormal eigenvectors υ1 ,υ2 ; eigenvalues μ1≥ μ2 ≥ 0 • υ1 : orientation of the highest grey value fluctuation • υ2 : preferred local orientation (lowest fluctuation) • (μ1 - μ2)2 : a measure of local coherence • Suppress diffusion along υ1 • Smooth along the direction of υ2
Coherence Enhancing Filter • Choose the same set of eigenvectors for D • Set eigenvalues λ1, λ2 as: • (μ1 - μ2 )2 large : λ2 ≈ 1 • (μ1 - μ2 )2 small : λ2 ≈ ά
Coherence Enhancing Filter Original PM CE
Conclusions • Fast and stable filters • Highly flexible • Varying the parameters of the diffusion tensor (orientation, rotation, strength) • Incorporation of new features (texture, color etc.) • Separate filters for each data entry • High performance
Thank you Questions ?