Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at 1/49 Signal- und Bildverarbeitung, 323.014 silently converted to:

Slides:



Advertisements
Similar presentations
Signal- und Bildverarbeitung, 323
Advertisements

Ter Haar Romeny, EMBS Berder 2004 Deblurring with a scale-space approach.
Ter Haar Romeny, EMBS Berder 2004 Gaussian derivative kernels The algebraic expressions for the first 4 orders:
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.
Johann Radon Institute for Computational and Applied Mathematics: 1/35 Signal- und Bildverarbeitung, Image Analysis and Processing.
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Ter Haar Romeny, Computer Vision 2014 Geometry-driven diffusion: nonlinear scale-space – adaptive scale-space.
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.
Computer vision: models, learning and inference Chapter 13 Image preprocessing and feature extraction.
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.
ECE 472/572 - Digital Image Processing Lecture 8 - Image Restoration – Linear, Position-Invariant Degradations 10/10/11.
BMME 560 & BME 590I Medical Imaging: X-ray, CT, and Nuclear Methods Tomography Part 3.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Midterm Review CS485/685 Computer Vision Prof. Bebis.
1 Image filtering Hybrid Images, Oliva et al.,
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
Segmentation (Section 10.2)
1 Image filtering
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
Linear Filtering About modifying pixels based on neighborhood. Local methods simplest. Linear means linear combination of neighbors. Linear methods simplest.
Multiscale transforms : wavelets, ridgelets, curvelets, etc.
Basic Image Processing January 26, 30 and February 1.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Johann Radon Institute for Computational and Applied Mathematics: Summary and outlook.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Today – part 2 The differential structure of images
Image Representation Gaussian pyramids Laplacian Pyramids
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
Johann Radon Institute for Computational and Applied Mathematics: 1/48 Mathematische Grundlagen in Vision & Grafik ( ) more.
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
CSC508 What You Should Be Doing Code, code, code –Programming Gaussian Convolution Sobel Edge Operator.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
Digital Image Processing Lecture 10: Image Restoration
Astronomical Data Analysis I
CSC508 Convolution Operators. CSC508 Convolution Arguably the most fundamental operation of computer vision It’s a neighborhood operator –Similar to the.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
Chapter 11 Filter Design 11.1 Introduction 11.2 Lowpass Filters
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.
1 Methods in Image Analysis – Lecture 3 Fourier CMU Robotics Institute U. Pitt Bioengineering 2630 Spring Term, 2004 George Stetten, M.D., Ph.D.
Fourier Transform.
Deblurring with a scale-space approach. Gaussian degradation occurs in a large number of situations. the point-spread-function of the human lens e.g.
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Computer vision. Applications and Algorithms in CV Tutorial 3: Multi scale signal representation Pyramids DFT - Discrete Fourier transform.
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
Projects Project 1a due this Friday Project 1b will go out on Friday to be done in pairs start looking for a partner now.
Miguel Tavares Coimbra
Linear Filters and Edges Chapters 7 and 8
- photometric aspects of image formation gray level images
Correlation and Convolution They replace the value of an image pixel with a combination of its neighbors Basic operations in images Shift Invariant Linear.
Linear Filters and Edges Chapters 7 and 8
Degradation/Restoration Model
Image Enhancement in the
Image Analysis Image Restoration.
Outline Linear Shift-invariant system Linear filters
Outline Linear Shift-invariant system Linear filters
Linear filtering.
Basic Image Processing
Edge Detection Today’s readings Cipolla and Gee Watt,
Chapter 7 Finite Impulse Response(FIR) Filter Design
Presentation transcript:

Johann Radon Institute for Computational and Applied Mathematics: 1/49 Signal- und Bildverarbeitung, silently converted to: 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/49 Summary of the previous week The Gaussian kernel... –is normalized –can be cascaded –can be made dimensionless using 'natural coordinates'. –is the 'blurred version' of the Dirac Delta function. –is the results of the central limit theorem –is anisotropic if the scales are different for the different dimensions. –acts as a low-pass filter in Fourier space. –is described by the diffusion equation Many functions can not be differentiated. –The solution, due to Schwartz, is to regularize the data by convolving them with a smooth test function. –Taking the derivative of this 'observed' function is then equivalent to convolving with the derivative of the test function. A well know variational form of regularization is given by the so- called Tikhonov regularization. –A functional is minimized in sense with the constraint of well behaving derivatives. –Tikhonov regularization with inclusion of the proper behavior of all derivatives is essentially equivalent to Gaussian blurring.

Johann Radon Institute for Computational and Applied Mathematics: 3/49 Today Gaussian derivatives Natural limits on observations Deblurring Gaussian blur Multiscale derivatives: implementations

Johann Radon Institute for Computational and Applied Mathematics: 4/49 Gaussian derivatives Shape and algebraic structure Gaussian derivatives in the Fourier domain Zero crossings of Gaussian derivative functions The correlation between Gaussian derivatives Discrete Gaussian kernels Other families of kernels Taken from B. M. ter Haar Romeny, Front-End Vision and Multi-scale Image Analysis, Dordrecht, Kluwer Academic Publishers, Chapter 4

Johann Radon Institute for Computational and Applied Mathematics: 5/49 Shape and algebraic structure When we take derivatives to x (spatial derivatives) of the Gaussian function repetitively, we see a pattern emerging of a polynomial of increasing order, multiplied with the original (normalized) Gaussian function again.

Johann Radon Institute for Computational and Applied Mathematics: 6/49 Hermite polynomials The Gaussian function itself is a common element of all higher order derivatives. These polynomials are closely related to the Hermite polynomials:

Johann Radon Institute for Computational and Applied Mathematics: 7/49 Gaussian envelope The amplitude of the Hermite polynomials explodes for large x, but the Gaussian envelope suppresses any polynomial function.

Johann Radon Institute for Computational and Applied Mathematics: 8/49 Gaussian envelope Due to the limiting extent of the Gaussian window function, the amplitude of the Gaussian derivative function can be negligible at the location of the larger zeros. NB: The Gaussian derivatives are not normalized.

Johann Radon Institute for Computational and Applied Mathematics: 9/49 Orthogonal functions The Hermite polynomials belong to the family of orthogonal functions on R w.r.t. their weight function For n, m 0…3: This does not hold for the Gaussian derivatives:

Johann Radon Institute for Computational and Applied Mathematics: 10/49 Fourier domain The Fourier transform of the derivative of a function is (-  ) times the Fourier transform of the function.

Johann Radon Institute for Computational and Applied Mathematics: 11/49 Zero crossings of Gaussian derivative functions We can define the 'width' of a Gaussian derivative function as the distance to the outermost zero- crossing. Only an estimation of the exact analytic solution can be given.

Johann Radon Institute for Computational and Applied Mathematics: 12/49 The correlation between Gaussian derivatives Higher order Gaussian derivative kernels tend to become more and more similar. the correlation coefficient r between two Gaussian derivatives of order n and m:

Johann Radon Institute for Computational and Applied Mathematics: 13/49 Correlation How does it look like:

Johann Radon Institute for Computational and Applied Mathematics: 14/49 Correlation For n,m 0…4 in Fourier space: The correlation is unity when n=m, as expected, is negative when n-m=2, and is positive when n-m=4, and is complex otherwise. Recall:

Johann Radon Institute for Computational and Applied Mathematics: 15/49 Correlation The correlation coefficient between a Gaussian derivative function and its even neighbour up quite quickly tends to unity for high differential order: (taking the absolute value) Gaussian derivatives are not suitable as a basis.

Johann Radon Institute for Computational and Applied Mathematics: 16/49 Discrete Gaussian kernels The optimal kernel for the discretized Gaussian kernel is " normalized modified Bessel function of the first kind". This function is almost equal to the Gaussian kernel for  >1.

Johann Radon Institute for Computational and Applied Mathematics: 17/49 Other families of kernels: Gabor Add constraints: specific frequency: This gives the Gabor family of receptive fields In real space:

Johann Radon Institute for Computational and Applied Mathematics: 18/49 Other constraints:  scale space Relax the seperability constraint (the power 2 in Fourier space) filter PDE: Taken from the PhD thesis of R. Duits  ¡ 1 ( e ¡ k  k 2  )  ¡ 1 ( e ¡ k  k  )  ¡ 1 ( e ¡ k  k 2 ®  )

Johann Radon Institute for Computational and Applied Mathematics: 19/49 Poisson scale space A comparison for  = ½ (Poission kernel) and  = 1 (Gaussian kernel): Taken from the PhD thesis of R. Duits

Johann Radon Institute for Computational and Applied Mathematics: 20/49  scale space A comparison for  = ½, ¾, 1: Taken from the PhD thesis of R. Duits

Johann Radon Institute for Computational and Applied Mathematics: 21/49 Summary The Gaussian derivatives are characterized by the product of a polynomial function, the Hermite polynomial, and a Gaussian kernel. The order of the Hermite polynomial is the same as the differential order of the Gaussian derivative. Gaussian derivatives are not orthogonal kernels. The Gaussian kernel is a special case of the Gabor kernels. The Gaussian scale space is a special case of the  scale spaces.

Johann Radon Institute for Computational and Applied Mathematics: 22/ : Gaussian derivatives, Natural limits on observations, deblurring, implementations Taken from B. M. ter Haar Romeny, Front-End Vision and Multi-scale Image Analysis, Dordrecht, Kluwer Academic Publishers, Chapter 7

Johann Radon Institute for Computational and Applied Mathematics: 23/49 Scale limit For a given order of differentiation there is a limiting scale-size below which the results are no longer exact. The value of the derivative starts to deviate for scales smaller than  = 0.6.

Johann Radon Institute for Computational and Applied Mathematics: 24/49 Scale In the Fourier domain leakage (aliasing) occurs

Johann Radon Institute for Computational and Applied Mathematics: 25/49 Leakage Leakage occurs for small scales: Error measure:

Johann Radon Institute for Computational and Applied Mathematics: 26/49 Accuracy & order Relation between scale , order of differentiation n, and accepted error (left: 5%, right 1, 5, and 10%):

Johann Radon Institute for Computational and Applied Mathematics: 27/49 Limits Data: There is a limit to the order of differentiation for a given scale of operator and required accuracy. The limit is due to the no longer 'fitting' of the Gaussian derivative kernel in its Gaussian envelop, known as aliasing.

Johann Radon Institute for Computational and Applied Mathematics: 28/ : Gaussian derivatives, limits, deblurring, implementations

Johann Radon Institute for Computational and Applied Mathematics: 29/49 Deblurring Gaussian blur Modeling Wiener Filter Deblurring with a scale-space approach Taken from A. Kuijper, Image Restoration in Forensic Research using Minimal Total Variation and Maximum Entropy, M.Sc. Thesis, B. M. ter Haar Romeny, Front-End Vision and Multi-scale Image Analysis, Dordrecht, Kluwer Academic Publishers, Chapter 16

Johann Radon Institute for Computational and Applied Mathematics: 30/49 Model Suppose we know our obtained image is blurred by some convolution: g = a(f) Reconstruction is easy: (especially in Fourier Space) isn’t it? No F = A ¡ 1 G

Johann Radon Institute for Computational and Applied Mathematics: 31/49 Noise Problem 1: The blurring kernel can become infinitesimally small, so we get division by zero Solution 1: Use the complex conjugacy: F = 1 A G F = A ¤ A ¤ A G = A ¤ j A j 2 G

Johann Radon Institute for Computational and Applied Mathematics: 32/49 Wiener Filter Problem 2: Actually, there is always noise: Solution 2: regularize the filter: This is the Wiener filter, R = signal-to-noise ratio. Max at “A=R” Demo g = a ( f ) + n F = A ¤ j A j 2 + R 2 G

Johann Radon Institute for Computational and Applied Mathematics: 33/49 Why regularizing? Recall last week:

Johann Radon Institute for Computational and Applied Mathematics: 34/49 Deblurring with a scale-space approach We create a Taylor series expansion of the scale-space L(x,y,t) to third order around the point t=0: Use the diffusion equation

Johann Radon Institute for Computational and Applied Mathematics: 35/49 Choosing the right scale For deblurring, a negative time is taken. The estimated blur is  est. The kernel size is  operator. The total deblurring distance is Note: It is a well known fact in image processing that subtraction of the Laplacian (times some constant depending on the blur) sharpens the image. This is the first order Taylor approximation!

Johann Radon Institute for Computational and Applied Mathematics: 36/49 Result

Johann Radon Institute for Computational and Applied Mathematics: 37/49 With noise:

Johann Radon Institute for Computational and Applied Mathematics: 38/49 Summary With a model of the blur (and noise), one can try to deblur images. Deblurring is instable, and can only be carried out analytically when no data is lost, for example through finite intensity representation (8 bit), noise of other pixel errors. The Wiener Filter traditionally does a good job, but requires estimation of a parameter. Deblurring can also be done by expanding the scale space of a blurred image into the negative scale direction by means of a Taylor expansion. It avoids Fourier transforms.

Johann Radon Institute for Computational and Applied Mathematics: 39/ : Gaussian derivatives, limits, deblurring, implementations

Johann Radon Institute for Computational and Applied Mathematics: 40/49 Implementations Implementation in the spatial domain Separable implementation Implementation in the Fourier domain Boundaries Taken from B. M. ter Haar Romeny, Front-End Vision and Multi-scale Image Analysis, Dordrecht, Kluwer Academic Publishers, Chapter 5

Johann Radon Institute for Computational and Applied Mathematics: 41/49 Implementation in the spatial domain In the spatial domain, the Gaussian is to be sampled. A sample range from +/- 4  suffices. The larger scale is chosen, the larger this kernel becomes. Truncation order is O(10 -5 ). The higher the order of differentiation, the higher the error becomes. Beware of the convolution rules your programming language uses!

Johann Radon Institute for Computational and Applied Mathematics: 42/49 Separable implementation The fastest implementation exploits the separability of the Gaussian kernel. –Apply convolution an the matrix representing the image –Transpose the matrix –Apply convolution again –Transpose again.

Johann Radon Institute for Computational and Applied Mathematics: 43/49 Orders of differentiation

Johann Radon Institute for Computational and Applied Mathematics: 44/49 Implementation in the Fourier domain The spatial convolutions are not exact. The Gaussian kernel is truncated. A convolution of two functions in the spatial domain is a multiplication of the Fourier transforms of the functions in the Fourier domain, and take the inverse Fourier transform to come back to the spatial domain. The filter is computed with the same size as the image. Beware of the rules of your programming language for built-in Fourier transforms!

Johann Radon Institute for Computational and Applied Mathematics: 45/49 Boundaries What is a boundary?

Johann Radon Institute for Computational and Applied Mathematics: 46/49 Boundary effect due to periodicity in the Fourier space:

Johann Radon Institute for Computational and Applied Mathematics: 47/49 What to choose? Tilling or mirrored tilling? Padding with zero’s? Rule of thumb: tilling & ignore things that are at a distance  of the boundary.

Johann Radon Institute for Computational and Applied Mathematics: 48/49 In three weeks The differential structure of images –Differential image structure –Isophotes and flowlines –Coordinate systems and transformations –Directional derivatives –First order gauge coordinates –Gauge coordinate invariants: examples Ridge detection Isophote and flowline curvature in gauge coordinates Affine invariant corner detection –A curvature illusion –Second order structure The Hessian matrix and principal curvatures The shape index Principal directions Gaussian and mean curvature Minimal surfaces, zero Gaussian curvature surfaces –Third order image structure: T-junction detection –Fourth order image structure: junction detection –Scale invariance and natural coordinates –Irreducible invariants Tensor notation

Johann Radon Institute for Computational and Applied Mathematics: 49/49 For those of my generation