Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at 1/33 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing.

Slides:



Advertisements
Similar presentations
Signal- und Bildverarbeitung, 323
Advertisements

Johann Radon Institute for Computational and Applied Mathematics: 1/25 Signal- und Bildverarbeitung, Image Analysis and Processing.
Ter Haar Romeny, FEV 2005 Curve Evolution Rein van den Boomgaard, Bart ter Haar Romeny Univ. van Amsterdam, Eindhoven University of technology.
Ter Haar Romeny, FEV Geometry-driven diffusion: nonlinear scale-space – adaptive scale-space.
Ter Haar Romeny, ICPR 2010 Introduction to Scale-Space and Deep Structure.
Johann Radon Institute for Computational and Applied Mathematics: 1/38 Mathematische Grundlagen in Vision & Grafik ( ) more.
Various Regularization Methods in Computer Vision Min-Gyu Park Computer Vision Lab. School of Information and Communications GIST.
Johann Radon Institute for Computational and Applied Mathematics: 1/35 Signal- und Bildverarbeitung, Image Analysis and Processing.
Computational Modeling for Engineering MECN 6040
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
Ter Haar Romeny, Computer Vision 2014 Geometry-driven diffusion: nonlinear scale-space – adaptive scale-space.
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.
Signal- und Bildverarbeitung, 323
Johann Radon Institute for Computational and Applied Mathematics: 1/28 Signal- und Bildverarbeitung, Image Analysis and Processing.
Uncertainty Representation. Gaussian Distribution variance Standard deviation.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Lecture 4 Edge Detection
x – independent variable (input)
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.
Curve-Fitting Regression
Course Website: Computer Graphics 11: 3D Object Representations – Octrees & Fractals.
Edge Detection Today’s reading Forsyth, chapters 8, 15.1
Segmentation (Section 10.2)
Scale Invariant Feature Transform (SIFT)
CS 376b Introduction to Computer Vision 03 / 04 / 2008 Instructor: Michael Eckmann.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
EE565 Advanced Image Processing Copyright Xin Li Different Frameworks for Image Processing Statistical/Stochastic Models: Wiener’s MMSE estimation.
1 Level Sets for Inverse Problems and Optimization I Martin Burger Johannes Kepler University Linz SFB Numerical-Symbolic-Geometric Scientific Computing.
Retinex by Two Bilateral Filters Michael Elad The CS Department The Technion – Israel Institute of technology Haifa 32000, Israel Scale-Space 2005 The.
PHY 042: Electricity and Magnetism
Johann Radon Institute for Computational and Applied Mathematics: Summary and outlook.
Johann Radon Institute for Computational and Applied Mathematics: 1/49 Signal- und Bildverarbeitung, silently converted to:
Today – part 2 The differential structure of images
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.
Johann Radon Institute for Computational and Applied Mathematics: 1/48 Mathematische Grundlagen in Vision & Grafik ( ) more.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Computer vision.
AN ITERATIVE METHOD FOR MODEL PARAMETER IDENTIFICATION 4. DIFFERENTIAL EQUATION MODELS E.Dimitrova, Chr. Boyadjiev E.Dimitrova, Chr. Boyadjiev BULGARIAN.
CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008.
Deformable Models Segmentation methods until now (no knowledge of shape: Thresholding Edge based Region based Deformable models Knowledge of the shape.
Techniques for Estimating Layers from Polar Radar Imagery Jerome E. Mitchell, Geoffrey C. Fox, and David J. Crandall :: CReSIS NSF Site Visit :: School.
Edges. Edge detection schemes can be grouped in three classes: –Gradient operators: Robert, Sobel, Prewitt, and Laplacian (3x3 and 5x5 masks) –Surface.
EDGE DETECTION IN COMPUTER VISION SYSTEMS PRESENTATION BY : ATUL CHOPRA JUNE EE-6358 COMPUTER VISION UNIVERSITY OF TEXAS AT ARLINGTON.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
1 Markov random field: A brief introduction (2) Tzu-Cheng Jen Institute of Electronics, NCTU
Distinctive Image Features from Scale-Invariant Keypoints David Lowe Presented by Tony X. Han March 11, 2008.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
A Tutorial on using SIFT Presented by Jimmy Huff (Slightly modified by Josiah Yoder for Winter )
Filtering Objective –improve SNR and CNR Challenges – blurs object boundaries and smears out important structures.
Scale-Space and Edge Detection Using Anisotropic Diffusion Presented By:Deepika Madupu Reference: Pietro Perona & Jitendra Malik.
Introduction to Scale Space and Deep Structure. Importance of Scale Painting by Dali Objects exist at certain ranges of scale. It is not known a priory.
Instructor: Mircea Nicolescu Lecture 7
A Probabilistic Appraoch to Nonlinear Diffusion: Feature-Driven Filtering Hamid Krim ECE Dept. NCSU, Raleigh, NC
Introduction to Symmetry Analysis Brian Cantwell Department of Aeronautics and Astronautics Stanford University Chapter 1 - Introduction to Symmetry.
L ECTURE 3 PDE Methods for Image Restoration. O VERVIEW Generic 2 nd order nonlinear evolution PDE Classification: Forward parabolic (smoothing): heat.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
Digital Image Processing
PDE Methods for Image Restoration
Distinctive Image Features from Scale-Invariant Keypoints
Linear Filters and Edges Chapters 7 and 8
Jeremy Bolton, PhD Assistant Teaching Professor
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Edge Detection Today’s readings Cipolla and Gee Watt,
Presented by Xu Miao April 20, 2005
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

Johann Radon Institute for Computational and Applied Mathematics: 1/33 Signal- und Bildverarbeitung, Image Analysis and Processing Arjan Kuijper Johann Radon Institute for Computational and Applied Mathematics (RICAM) Austrian Academy of Sciences Altenbergerstraße 56 A-4040 Linz, Austria

Johann Radon Institute for Computational and Applied Mathematics: 2/33 Summary of the previous weeks Invariant differential feature detectors are special (mostly) polynomial combinations of image derivatives, which exhibit invariance under some chosen group of transformations. The derivatives are easily calculated from the image through the multi-scale Gaussian derivative kernels. The notion of invariance is crucial for geometric relevance. Non-invariant properties have no value in general feature detection tasks. A convenient paradigm to calculate features invariant under Euclidean coordinate transformations is the notion of gauge coordinates (v,w). Any combination of derivatives with respect to v and w is invariant under Euclidean tranformations.

Johann Radon Institute for Computational and Applied Mathematics: 3/33 Today The differential structure of images –Third order image structure: T-junction detection –Fourth order image structure: junction detection –Scale invariance and natural coordinates –Irreducible invariants Geometry-driven diffusion –Adaptive smoothing and image evolution –Nonlinear diffusion equations –The Perona & Malik Equation –Scale-space implementation of the P&M equation –The P&M equation is ill-posed Taken from B. M. ter Haar Romeny, Front-End Vision and Multi-scale Image Analysis, Dordrecht, Kluwer Academic Publishers, Chapter 6/21

Johann Radon Institute for Computational and Applied Mathematics: 4/33 Gauge coordinates Remind: Do the trick: And w = L x + L y p L 2 x + L 2 y = ( L x p L 2 x + L 2 y ; L y p L 2 x + L 2 y ) ¢ v = L x ¡ L y p L 2 x + L 2 y = ( L y p L 2 x + L 2 y ; ¡ L x p L 2 x + L 2 y ) ¢ r cos Á = L x p L 2 x + L 2 y s i n Á = L y p L 2 x + L 2 v = ( s i n Á ; ¡ cos Á ) ¢ w = ( cos Á ; s i n Á ) ¢ r

Johann Radon Institute for Computational and Applied Mathematics: 5/33 Third order image structure: T-junction detection T-junctions in the intensity landscape of natural images occur typically at occlusion points. Occlusion points are those points where a contour ends or emerges because there is another object in front of the contour.

Johann Radon Institute for Computational and Applied Mathematics: 6/33 Third order image structure: T-junction detection When we zoom in on the T-junction of an observed image and inspect locally the isophote structure at a T- junction, we see that at a T-junction the derivative of the isophote curvature k in the direction perpendicular to the isophotes is high.

Johann Radon Institute for Computational and Applied Mathematics: 7/33 Third order image structure: T-junction detection When we study the curvature of the isophotes in the middle of the image, at the location of the T-junction, we see the isophote 'sweep' from highly curved to almost straight for decreasing intensity. So the geometric reasoning is the "the isophote curvature changes a lot when we traverse the image in the w direction". It seems to make sense to study ¢¢¢ = ¡ L vvw L w + L vv L ww L 2 w + 2 L 2 vw L 2 w

Johann Radon Institute for Computational and Applied Mathematics: 8/33 Third order image structure: T-junction detection To avoid singularities at vanishing gradients through the division by we use as our T-junction detector:

Johann Radon Institute for Computational and Applied Mathematics: 9/33 Fourth order image structure: junction detection Yet another order higher: Find in a checkerboard the crossings where 4 edges meet. When we study the fourth order local image structure, we consider the fourth order polynomial terms from the local Taylor expansion. The main theorem of algebra states that a polynomial is fully described by its roots. How well all roots coincide, given by the discriminant, is a particular invariant condition. The discriminant of second order image structure is just the determinant of the Hessian matrix, i.e. the Gaussian curvature.

Johann Radon Institute for Computational and Applied Mathematics: 10/33 Fourth order image structure: junction detection The forth order discriminant is slightly more complicated:

Johann Radon Institute for Computational and Applied Mathematics: 11/33 Scale invariance and natural coordinates The dimensionless coordinate is termed the natural coordinate. This implies that the derivative operator in natural coordinates has a scaling factor: Compare Lw and the natural Lw:

Johann Radon Institute for Computational and Applied Mathematics: 12/33 Irreducible invariants It has been shown by Hilbert that any invariant of finite order can be expressed as a polynomial function of a set of irreducible invariants. For e.g. scalar images these invariants form the fundamental set of image primitives in which all local intrinsic properties can be described. There are only a small number of irreducible invariants for low order. E.g. for 2D images up to second order there are only 5 of such irreducibles. One mechanism to find the irreducible set are gauge coordinates:

Johann Radon Institute for Computational and Applied Mathematics: 13/33 Tensors There are many ways to set up an irreducible basis. In tensor notation, tensor indices denote partial derivatives and run over the dimensions so = and = When indices come in pairs, summation over the dimensions is implied (the so-called Einstein summation convention, or contraction)

Johann Radon Institute for Computational and Applied Mathematics: 14/33 Tensors Each of these irreducible invariants cannot be expressed in the others. Any invariant property to some finite order can be expressed as a combination of these irreducibles. Isophote curvature, a second order local invariant feature, is expressed as These irreducibles form a basis for the differential invariant structure. The set of 5 irreducible grayvalue invariants in 2D images has been exploited to classify local image structure for statistical object recognition.

Johann Radon Institute for Computational and Applied Mathematics: 15/33 Geometry-driven diffusion

Johann Radon Institute for Computational and Applied Mathematics: 16/33 Adaptive Smoothing and Image Evolution Calculate edges and other differential invariants at a range of scales. –Select a fine or a coarse scale? –Larger scale: improved reduction of noise, the appearance of more prominent structure, localization accuracy. –Linear, isotropic diffusion cannot preserve the position of the differential invariant features over scale. Make the diffusion (blurring) locally adaptive to the structure of the image. –preserve edges –reducing the noise

Johann Radon Institute for Computational and Applied Mathematics: 17/33 Adaptive Smoothing and Image Evolution This adaptive filtering process is possible by three classes of (all nonlinear) mathematical approaches, which are in essence equivalent: 1.Nonlinear partial differential equations (PDE's), i.e. nonlinear diffusion equations which evolve the luminance function as some function of a flow. This general approach is known as the 'nonlinear PDE approach'; 2.Curve evolution of the isophotes (curves in 2D, surfaces in 3D) in the image. This is known as the 'curve evolution approach'. 3.Variational methods that minimize some energy functional on the image. This is known as the 'energy minimization approach' or 'variational approach'.

Johann Radon Institute for Computational and Applied Mathematics: 18/33 geometric reasoning The word 'nonlinear' implies the inclusion of a nonlinearity in the algorithm. This can be done in an infinite variety, and it takes geometric reasoning to come up with the right nonlinearity for the task. We can include knowledge about –a preferred direction of diffusion, –or that we like the diffusion to be reduced at edges –or at points of high curvature –etc.

Johann Radon Institute for Computational and Applied Mathematics: 19/33 Nonlinear Diffusion Equations The introduction of a conductivity coefficient (c) in the diffusion equation makes it possible to make the diffusion adaptive to local image structure: where the function is a function of local image differential structure, i.e. depends on local partial derivatives. The change of luminance with increasing scale is a divergence (  ) of some flow (c  L) or flux.

Johann Radon Institute for Computational and Applied Mathematics: 20/33 The Perona & Malik Equation Perona and Malik [1990] proposed to make c a function of the gradient magnitude in order to reduce the diffusion at the location of edges: with two possible choices for c:

Johann Radon Institute for Computational and Applied Mathematics: 21/33 Example The conductivity coefficient in the Perona & Malik equation as a function of the parameter k. Gradient scale: s = 2 pixels, image resolution 256x256. For higher k, larger gradients are taken into account only:

Johann Radon Institute for Computational and Applied Mathematics: 22/33 PDE formulation Complete PDE: c1: c2:

Johann Radon Institute for Computational and Applied Mathematics: 23/33 PDE formulation Using gauge coordinates: They arise from minimizing the functionals The limit for k->  yields the heat equation. L t = k 2 ¢ k 2 ¢L + L 2 w ( L vv ¡ L ww ) ( k 2 + L 2 w ) 2 L t = 1 k 2 e ¡ j r L j 2 k 2 ( k 2 ¢L ¡ 2 L 2 w L ww ) E PM 1 ( L ) = R ­ 1 2 k 2 e ¡ j r L j 2 k 2 d ­ E PM 2 ( L ) = R ­ 1 2 k 2 l og ( k 2 + L 2 w ) d ­

Johann Radon Institute for Computational and Applied Mathematics: 24/33 Scale space implementation of the P&M equation There are no analytical solution for these PDEs, –rely on numerical methods to approximate the solution. There are many efficient and stable numerical schemes for the time-evolution of an image governed by this type of divergence of a flow-type PDE's. –The most straightforward numerical approximation of is the forward-Euler approximation where d L is the increment in L and d s is the (typically small) step size in scale: the evolution step size. Through iteration we can calculate the image at the required level of evolution, i.e. at the required level of adaptive blurring. (scale 1)

Johann Radon Institute for Computational and Applied Mathematics: 25/33 Scale space implementation of the P&M equation Obviously, the derivative is computed by convolution with Gaussian derivatives. (scale 2) A rule for the choice of k is difficult to give. –It depends on the choice of which edges have to be enhanced, and which have to be canceled. –The histogram of gradient values (at s=1) may give some clue to how much 'relative edge strength' is present in the image:

Johann Radon Institute for Computational and Applied Mathematics: 26/33 Scale space implementation of the P&M equation k determines the 'turnover' point of edge reduction versus enhancement. Four examples with operator scale s=.8 pixels, time step d s=0.1, number of iterations = 10. From left to right: org, k=5, k=25, k=75, k=150.

Johann Radon Institute for Computational and Applied Mathematics: 27/33 Scale space implementation of the P&M equation We can define a contrast-to-noise ratio (CNR) for this particular image by taking two square (16x16) areas, one in the middle of the black disk and one in the lower left corner in the background. The CNR is defined as the difference of Signal-to-Noise ratios (the mean, divided by the variances of the intensity values) of two representative areas:

Johann Radon Institute for Computational and Applied Mathematics: 28/33 Don’t run it too long Clearly, the signal-to-noise ratio increases substantially during the evolution. But this cannot continue, of course, for physical reasons. When we continue the evolution until t=20 (in units of iterations), we see that the gain is lost again We need a stopping time!

Johann Radon Institute for Computational and Applied Mathematics: 29/33 The P&M equation is ill-posed It is instructive to study the P&M equation in somewhat more detail. Let us look how the diffusion process depends on the gradient strength, so we consider (in 1D for simplicity): Suppose that the flow (or flux function) is decreasing with respect to L x at some point x 0, then with a>0: ->

Johann Radon Institute for Computational and Applied Mathematics: 30/33 Deblurring Locally we have an inverse heat equation which is well known to be ill-posed. This heat equation locally blurs or deblurs, dependent on the condition of c. The function decreases for and decreases for. This implies that with k we can adjust the turnover point in the gradient strength, below which we have blurring, and above which we have deblurring.

Johann Radon Institute for Computational and Applied Mathematics: 31/33 Deblurring the graphs of the flux and of for both c's with k=2: Note: The original formulation by Perona and Malik employed nearest neighbor differences in 4 directions to calculate the local gradient strength. This introduces artifacts because there is a bias for direction. We now understand that the Gaussian derivative kernel is the appropriate regularized differential operator, which does not introduce a bias for direction. This was introduced first by Catté, Lions, Morel and Coll [1992].

Johann Radon Institute for Computational and Applied Mathematics: 32/33 Summary The diffusion can be made locally adaptive to image structure. Three mathematical approaches are discussed: 1.PDE-based nonlinear diffusion, where the luminance function evolves as the divergence of some flow. 2.Evolution of the isophotes as an example of curve-evolution; 3.Variational methods, minimizing an energy functional defined on the image. The nonlinear PDE's involve local image derivatives, and cannot be solved analytically. Adaptive smoothing requires geometric reasoning to define the influence on the diffusivity coefficient. The simplest equation is the equation proposed by Perona & Malik, where the variable conduction is a function of the local edge strength. Strong gradient magnitudes prevent the blurring locally, the effect is edge preserving smoothing. The Perona & Malik equation leads to deblurring (enhancing edges) for edges larger than the turnover point k, and blurs smaller edges.

Johann Radon Institute for Computational and Applied Mathematics: 33/33 Next week Non-linear diffusion: Total Variation –Rudin – Osher (- Fatemi) Model –Denoising –Edge preserving –Energy minimizing –Bounded variation