Image Restoration by Deconvolution: Concepts and Applications Chong - - PowerPoint PPT Presentation

image restoration by deconvolution concepts and
SMART_READER_LITE
LIVE PREVIEW

Image Restoration by Deconvolution: Concepts and Applications Chong - - PowerPoint PPT Presentation

Leica - CNIC 1st Practical School in Super-Resolution Microscopy, Centro Nacional de Investigaciones Cardiovasculares Carlos III (CNIC) Image Restoration by Deconvolution: Concepts and Applications Chong Zhang SIMBioSys, Depertment of


slide-1
SLIDE 1

Image Restoration by Deconvolution: Concepts and Applications

Chong Zhang

SIMBioSys, Depertment of Information and Communication Technologies Universitat Pompeu Fabra

15th March, 2016

Leica - CNIC 1st Practical School in Super-Resolution Microscopy, Centro Nacional de Investigaciones Cardiovasculares Carlos III (CNIC)

slide-2
SLIDE 2

Convolution Deconvolution Point Spread Function Noise Fourier Transform Spatial resolution Pixel size Rayleigh Criterion Airy disk Numerial Aperture Refractive Index Wavelength

How do you perform deconvolution? What is deconvolution in your mind?

Fiji plugins Huygens Professional MC AutoquantX …

slide-3
SLIDE 3

What is deconvolution (in microscopy)?

Deconvolution is a computational technique allowing to partly compensate for the image distortion caused by a microscope. The betterment can be signifjcant both in terms of attenuation of the out of focus light and increase of the spatial resolution. It was fjrst devised at the MIT for seismology (Robinson, Wiener, early 50’), then applied to astronomy and fjnally found its way to 3D optical fmuorescence microscopy (Agard 1984). It should not be seen as a “black box” to enhance image quality since it can introduce artifacts or further degrade low quality images. It is compatible with quantitative measurements (should even improve). It works best for thin (<50 um), optically transparent, fjxed, bright samples. Challenging for live microscopy: short exposure (limit motion blur), objective adapted to medium (limit spherical aberrations).

Courtesy of S. Tosi

slide-4
SLIDE 4

Specimen Objective Image Ideal ¡ case ¡ Detector

Courtesy of P. Bankhead

Ideal case

slide-5
SLIDE 5

Image

  • Blurred

More ¡ realis-c ¡

Courtesy of P. Bankhead

Specimen Objective Detector

Reality

slide-6
SLIDE 6

Image

  • Blurred
  • Noisy

More ¡ realis-c ¡

Courtesy of P. Bankhead

Specimen Objective Detector

Reality

slide-7
SLIDE 7

Noises along the optical train in digital microscopy

Courtesy of S. Tosi

slide-8
SLIDE 8

“stamping” the kernel on each pixel of the image the kernel is scaled (multiplied) by the intensity of the central pixel Accumulated (summed) in the output image. Filter kernel

Original image Filtered image Original image Filtered image

Convolution

Courtesy of S. Tosi

Convolution consists of replacing each point in the original object with its blurred image in all dimensions and summing together overlapping contributions from adjacent points to generate the resulting image

slide-9
SLIDE 9

Convolution

=

A 3D kernel is a stack holding the fjlter coefficients

=

Courtesy of S. Tosi

Convolution consists of replacing each point in the original object with its blurred image in all dimensions and summing together overlapping contributions from adjacent points to generate the resulting image

slide-10
SLIDE 10

Fourier Transform (FT) vs convolution

If we take the FT of the equation, the is replaced by multiplication, thus image restoration might be achievable by: dividing the FT of the image by the FT of the kernel and then taking the inverse Fourier transform.

X

Spatial Domain Fourier Domain

= =

Courtesy of S. Tosi

slide-11
SLIDE 11

Widefjeld PSF

Cannell 2006 Bankhead 2014

Point Spread Function (PSF)

A record of how much the image created by a microscope spreads/blurs an object of a single point (thus determines the way in which images of objects blur into each other in the fjnal image).

slide-12
SLIDE 12

Theoretical PSF vs Measured PSF

Courtesy of S. Tosi Bankhead 2014

Measured PSF (experimental PSF) Theoretical PSF

Parton 2006

Measured PSF: an image resulting from a single small spherical fmuorescent bead (smaller than the optical resolution, thus forms effectively a point source of light) Theoretical PSF: generated by a computer program, after input of values describing the optical system – the magnifjcation, NA of the objective, the illuminating and emitted wavelengths, and the refractive index of the objective lens immersion medium. It gives an indication of the best possible resolution for a given objective but these limits are not achievable. Real PSFs are typically >20% bigger than calculated versions.

slide-13
SLIDE 13

Gated ¡ STED ¡ <50 ¡ 560 ¡ 70 ¡ /GSD 70 ¡ 3D ¡ STED ¡ <130 ¡ <130 ¡

Courtesy of N. Garin

slide-14
SLIDE 14

PSF in the focal plane (where most things are measured)

λ : fmuorophore emission wavelength NA : objective numerical aperture n : refractive index of the objective lens immersion medium NA can never exceed n, which itself has fjxed values (e.g. 1.0 for air, 1.33 for water,

  • r 1.52 for oil)

NA = n sinθ

Notes:

  • 1. Rayleigh criterion has not taken

into account the effects of: brightness, pixel size, noise

  • 2. High NAs are possible when the

immersion refractive index is high Rayleigh criterion

Widefjeld PSF: 100nm beads, excitation 520nm, emission 617nm

Parton 2006 Bankhead 2014

Spatial resolution: radius of the smallest point source in the image, i.e. fjrst minimum of Airy disk

Bankhead 2014

Airy disk ¡

slide-15
SLIDE 15

What else does measured PSF tell us?

Asymmetry radial (x-y): commonly misalignment of optical components about the z-axis, either as tilt or decentration along the optical axis (z-axis): commonly due to spherical aberration, which may result from refractive index mismatches between the objective, immersion medium, and sample or tube length/coverslip thickness errors.

Notes:

  • 1. The immersion refractive index should match the refractive index of the medium surrounding the sample, to

avoid spherical aberration

  • 2. Item 1 is often strongly preferable to using the highest NA objective available, as it is usually better to have a

larger PSF than a highly irregular one.

Pawley 2006

slide-16
SLIDE 16

Deconvolution principle

The deconvolution fjlter F should “undo” the effect of the microscope PSF H by processing the sampled image R, ideally D = S.

Object (sample) Microscope PSF Noise Digital fjlter Deconvolved image

Courtesy of S. Tosi

= R = D

slide-17
SLIDE 17

Deconvolution principle

The deconvolution fjlter F should “undo” the effect of the microscope PSF H by processing the sampled image R, ideally D = S.

Object (sample) Microscope PSF Noise Digital fjlter Deconvolved image

Courtesy of S. Tosi

= R = D

slide-18
SLIDE 18

Classifjcation of deconvolution methods

Linear inverse Constrained iterative Regularized inverse Deblurring subtractive

Nearest neighbors No neighbors Richardson-Lucy Adaptive blind Fast Software available 2D only No need PSF Not for quantitative intensity measures Tikhonov-Miller fjlter Wiener fjlter Jansson van Cittert Fast Software available 3D Needs PSF Do not count for noise Not for super resolution Trade-off between sharpness & noise Slow Good 3D results 3D Needs PSF Also for super resolution 3D Estimates PSF May not be always quantitative Use noise models

Lifting the Fog: Image Restoration by Deconvolution, Parton 2006

slide-19
SLIDE 19

Linear deconvolution: inverse fjlter deconvolution

Courtesy of S. Tosi

A very simple model for the PSF H (Gaussian std = 1 pixel) 1 ¡ 4,1·√10-­‑8 ¡ 1 ¡ 2,4·√107 ¡ H power spectrum (log display)

  • verlaid with raw values

H-1 power spectrum (log display)

  • verlaid with raw values

But in practice… Noise enhancement ruins our efforts! For example, assuming H known, F linear (convolution) and no noise (N = 0) leads to:

slide-20
SLIDE 20

Inverse fjlter deconvolution

H +N H-1

Original image S H is a Gaussian with std = 2 pixels Noise std = 10-4 Noise std = 10-12 S after convolution by H No noise

Courtesy of S. Tosi

slide-21
SLIDE 21

Second try: regularized inverse

Courtesy of S. Tosi

A very simple model for the PSF H (Gaussian std = 1 pixel) 1 ¡ 4,1·√10-­‑8 ¡ H power spectrum (log display)

  • verlaid with raw values

(H-1)reg (1% clipping) power spectrum (log display)

  • verlaid with raw values

1 ¡ 2,4·√107 ¡ 1 ¡ 100 ¡

slide-22
SLIDE 22

Regularized Inverse Filter Deconvolution

Courtesy of S. Tosi

H +N (H-1)trunc

Original image S S after convolution by H Noise std = 10-4

slide-23
SLIDE 23

Third Try: Wiener Filter The Golden Linear Deconvolution Trade-off

Courtesy of S. Tosi

Minimizing the expectation of ||E|| over all possible noise realizations assuming a white Gaussian noise: Coming back to: Bands free of noise: |N(u,v)| = 0 F(u,v) = H(u,v)-1 (inverse fjlter) Strong noise bands: |N(u,v)| ∞ F(u,v) 0 (cut-off) Intermediate bands: best trade-off

Wiener fjlter

As ¡noise ¡at ¡certain ¡frequencies ¡increases, ¡the ¡signal-­‑to-­‑noise ¡ra-o ¡drops, ¡so ¡F ¡also ¡

  • drops. ¡This ¡means ¡that ¡the ¡Wiener fjlter attenuates frequencies dependent on their

signal-to-noise ratio.

slide-24
SLIDE 24

Wiener Deconvolution

Courtesy of S. Tosi

Regularized inverse fjlter result Noise std = 10-4 Wiener fjlter result Noise std = 10-4

slide-25
SLIDE 25

Non-Linear Deconvolution

Courtesy of S. Tosi

The best deconvolution algorithms for 3D microscopy are typically non-linear. Principle of Maximum A Priori algorithms (MAP): The second equality comes from Bayes theorem. In the optimization S is usually constrained to be positive and somehow spatially smooth (TV regularization term) Pr(S). The statistical distribution of the noise has to be known to derive the maximum likelihood term Pr(R|S) the algorithm is tuned to a particular noise (e.g. Poisson or Gaussian noise). There is usually no known analytical solution to the problem, the algorithms proceeds by iterations (candidate Si at iteration i) to refjne the estimate of the data at each iteration. The Richardson-Lucy algorithm is among the most well known MAP deconvolution algorithm. Some algorithms also simultaneously estimate the PSF from the sampled image (blind deconvolution).

slide-26
SLIDE 26

Quantifjcation after deconvolution

Ideally: relocate signal to the point of origin in 3D, thus conserve the sum of fmuorescence signal. It improves quantifjcation! In practice: different algorithms have more or less compromises

Quantitative intensity measurements, e.g. intensity ratio: controls, also report on un-deconvolved data for comparison Quantitative positional or structural analysis, e.g. centroid, tracking, volume analysis, (object based) colocalisation, etc: relatively less critical the choice For all analysis:

Deconvolution process comparable between datasets Compare with control/un-deconvolved data Understand algorithm used and choose most suitable Report possible artifacts and confjrm it, if possible

slide-27
SLIDE 27

Deconvolution tools

Diffraction PSF 3D PSF generator Parallel iterative deconvolution (http://imagej.net/Parallel_Iterative_Deconvolution): 4 deconvolution algorithms Parallel spectral deconvolution (http://imagej.net/Parallel_Spectral_Deconvolution): not iterative, no constraint e.g. non- negativity Iterative Deconvolve 3D (http://imagej.net/Iterative_Deconvolve_3D): non-negative, iterative, similar to WPL algorithm. The execution is way slower on modern (multicore) computers but the memory requirement is less stringent DeconvolutionLab (http://bigwww.epfm.ch/algorithms/deconvolutionlab/): different algorithms including a custom version

  • f the thresholded Landweber algorithm

Squassh (http://imagej.net/Squassh): joint deconvolution-segmentation procedure

Commercial software

  • SVI Huygens
  • MC AutoquantX

Fiji plugins

slide-28
SLIDE 28

Examples

Original AutoquantX (30IT, bead PSF) Huygens (50IT, bead distilled PSF) PID (WPL, Wiener Gamma 0.1, 50IT, bead PSF) Original PID (WPL, 50IT, true PSF) AutoquantX (30IT, true PSF) Huygens (50IT, distilled true PSF) Original AutoquantX (30IT, bead PSF) Huygens (50IT, bead distilled PSF) PID (WPL, 50IT, bead PSF)

+ ¡Microscope ¡specific ¡ PSF ¡ ¡ + ¡depth-­‑varying ¡PSF ¡ + ¡supports ¡spinning ¡ disk ¡M. ¡ + ¡Visually ¡appealing ¡ results ¡

  • ­‑ ¡Expensive ¡& ¡Closed ¡

source ¡ + ¡Free ¡& ¡Open ¡source ¡ & ¡full ¡control ¡ ¡ + ¡Reasonably ¡fast ¡ + ¡Support ¡for ¡ spatially-­‑variant ¡ PSF ¡(un-­‑tested) ¡

  • ­‑ ¡High ¡memory ¡usage ¡
  • ­‑ ¡Visually ¡less ¡

crispy ¡ + ¡Fast ¡convergence ¡ ¡ + ¡Robust ¡algorithms ¡ + ¡Very ¡simple ¡to ¡use ¡ + ¡Visually ¡appealing ¡ results ¡ + ¡2D ¡mode ¡for ¡thin ¡ samples ¡

  • ­‑ ¡Expensive ¡& ¡Closed ¡

source ¡

Courtesy of S. Tosi

slide-29
SLIDE 29

Summary

Deconvolution is a computational technique allowing to (partly) compensate for the image distortion created by an optical system Correct deconvolution should improve: attenuation of the out of focus light quantitative measurements the spatial resolution Incorrect deconvolution could: Introduce (more) artifacts -> reduce image quality It works best for thin (<50 um), optically transparent, fjxed, bright samples. Challenging for live microscopy: short exposure (limit motion blur),

  • bjective adapted to medium (limit spherical aberrations).
slide-30
SLIDE 30

References

Reviews (overviews): 1. Waters, Accuracy and precision in quantitative fmuorescence microscopy, JCB 2009 2. Parton et al., Lifting the fog: Image restoration by deconvolution, Cell biology 2006 3. Pawley, Chapter 25: “Image enhancement by deconvolution” , Handbook of biological confocal microscopy, 2006 4. McNally et al., Three-Dimensional Imaging by Deconvolution Microscopy, Methods 1999 Technical articles: 1. Zanella et al., Towards real-time image deconvolution: application to confocal and STED microscopy, Scientifjc Reports 2013 2. Bertero et al., Image deconvolution, Proc. NATO A.S.I. 2004 3. Thiébaut, Introduction to image reconstruction and inverse problems, Proc. NATO A.S.I. 2002 Websites: 1. Olympus microscopy center (overview): http://www.olympusmicro.com/primer/digitalimaging/deconvolution/deconvolutionhome.html 2. Textbook: http://blogs.qub.ac.uk/ccbg/fmuorescence-image-analysis-intro 3. http://fjji.sc/Deconvolution_tips

slide-31
SLIDE 31

Thank You!

Slides courtesy:

Sébastien Tosi IRB Barcelona

Pete Bankhead Queen’s University Belfast