fbpx
Wikipedia

Richardson–Lucy deconvolution

The Richardson–Lucy algorithm, also known as Lucy–Richardson deconvolution, is an iterative procedure for recovering an underlying image that has been blurred by a known point spread function. It was named after William Richardson and Leon Lucy, who described it independently.[1][2]

Description

When an image is produced using an optical system and detected using photographic film or a charge-coupled device, for instance, it is inevitably blurred, with an ideal point source not appearing as a point but being spread out into what is known as the point spread function. Extended sources can be decomposed into the sum of many individual point sources, thus the observed image can be represented in terms of a transition matrix p operating on an underlying image:

 

where   is the intensity of the underlying image at pixel   and   is the detected intensity at pixel  . In general, a matrix whose elements are   describes the portion of light from source pixel j that is detected in pixel i. In most good optical systems (or in general, linear systems that are described as shift invariant) the transfer function p can be expressed simply in terms of the spatial offset between the source pixel j and the observation pixel i:

 

where   is called a point spread function. In that case the above equation becomes a convolution. This has been written for one spatial dimension, but of course most imaging systems are two dimensional, with the source, detected image, and point spread function all having two indices. So a two dimensional detected image is a convolution of the underlying image with a two dimensional point spread function   plus added detection noise.

In order to estimate   given the observed   and a known  , the following iterative procedure is employed in which the estimate of   (called  ) for iteration number t is updated as follows:

 

where

 

It has been shown empirically that if this iteration converges, it converges to the maximum likelihood solution for  .[3]

Writing this more generally for two (or more) dimensions in terms of convolution with a point spread function P:

 

where the division and multiplication are element wise,   indicates a 2D convolution, and   is the flipped point spread function.

In problems where the point spread function   is not known a priori, a modification of the Richardson–Lucy algorithm has been proposed, in order to accomplish blind deconvolution.[4]

Derivation

In the context of fluorescence microscopy, the probability of measuring a set of number of photons (or digitalization counts proportional to detected light)   for expected values   for a detector with   pixels is given by

 

it is convenient to work with   since in the context of maximum likelihood estimation we want to find the position of the maximum of the likelihood function and we are not interested in its absolute value.

 

Again since   is a constant, it will not give any additional information regarding the position of the maximum, so let's consider

 

where   is something that shares the same maximum position as  . Now let's consider that   comes from a ground truth   and a measurement   which we assume to be linear. Then

 

where a matrix multiplication is implied. We can also write this in the form

 

where we can see how  , mixes or blurs the ground truth.

It can also be shown that the derivative of an element of  ,   with respect to some other element of   can be written as:

 

 

 

 

 

(1)

Tip: it's easy to see this by writing a matrix   of say (5 x 5) and two arrays   and   of 5 elements and check it. This last equation can interpreted as how much one element of  , say element   influences the other elements   (and of course the case   is also taken into account). For example in a typical case an element of the ground truth   will influence nearby elements in   but not the very distant ones (a value of   is expected on those matrix elements).

Now, the key and arbitrary step: we don't know   but we want to estimate it with  , let's call   and   the estimated ground truths while we are using the RL algorithm, where the hat symbol is used to distinguish ground truth from estimator of the ground truth

 

 

 

 

 

(2)

Where   stands for a  -dimensional gradient. If we work on the derivative of   we get

 

and if we now use (1) we get

 

But we can also note that   by definition of transpose matrix. And hence

 

 

 

 

 

(3)

Then if we consider   spanning all the elements from   to   this equation can be rewritten in its vectorial form

 

where   is a matrix and  ,   and   are vectors. Let's now propose the following arbitrary and key step

 

 

 

 

 

(4)

where   is a vector of ones of size   (same as  ,   and  ) and the division is element-wise. Using (3) and (4) we can rewrite (2) as

 

which yields

 

 

 

 

 

(5)

Where division refers to element-wise matrix division and   operates as a matrix but the division and the product (implicit after  ) are element-wise. Also,   can be calculated because we assume

- The initial guess   is known (and is typically set to be the experimental data)

- The measurement function   is known

On the other hand   is the experimental data. Therefore, equation (5) applied successively, provides an algorithm to estimate our ground truth   by ascending (since it moves in the direction of the gradient of the likelihood) in the likelihood landscape. It has not been demonstrated in this derivation that it converges and no dependence on the initial choice is shown. Note that equation (2) provides a way of following the direction that increases the likelihood but the choice of the log-derivative is arbitrary. On the other hand equation (4) introduces a way of weighting the movement from the previous step in the iteration. Note that if this term was not present in (5) then the algorithm would output a movement in the estimation even if  . It's worth noting that the only strategy used here is to maximize the likelihood at all cost, so artifacts on the image can be introduced. It is worth noting that no prior knowledge on the shape of the ground truth   is used in this derivation.

Software

See also

References

  1. ^ Richardson, William Hadley (1972). "Bayesian-Based Iterative Method of Image Restoration". JOSA. 62 (1): 55–59. Bibcode:1972JOSA...62...55R. doi:10.1364/JOSA.62.000055.
  2. ^ Lucy, L. B. (1974). "An iterative technique for the rectification of observed distributions". Astronomical Journal. 79 (6): 745–754. Bibcode:1974AJ.....79..745L. doi:10.1086/111605.
  3. ^ Shepp, L. A.; Vardi, Y. (1982), "Maximum Likelihood Reconstruction for Emission Tomography", IEEE Transactions on Medical Imaging, 1 (2): 113–22, doi:10.1109/TMI.1982.4307558, PMID 18238264
  4. ^ Fish D. A.; Brinicombe A. M.; Pike E. R.; Walker J. G. (1995), (PDF), Journal of the Optical Society of America A, 12 (1): 58–65, Bibcode:1995JOSAA..12...58F, doi:10.1364/JOSAA.12.000058, S2CID 42733042, archived from the original (PDF) on 2019-01-10

richardson, lucy, deconvolution, this, extensive, tone, style, reflect, encyclopedic, tone, used, wikipedia, wikipedia, guide, writing, better, articles, suggestions, july, 2021, learn, when, remove, this, template, message, confused, with, modified, richardso. This extensive use of we s tone or style may not reflect the encyclopedic tone used on Wikipedia See Wikipedia s guide to writing better articles for suggestions July 2021 Learn how and when to remove this template message Not to be confused with Modified Richardson iteration The Richardson Lucy algorithm also known as Lucy Richardson deconvolution is an iterative procedure for recovering an underlying image that has been blurred by a known point spread function It was named after William Richardson and Leon Lucy who described it independently 1 2 Contents 1 Description 2 Derivation 3 Software 4 See also 5 ReferencesDescription EditWhen an image is produced using an optical system and detected using photographic film or a charge coupled device for instance it is inevitably blurred with an ideal point source not appearing as a point but being spread out into what is known as the point spread function Extended sources can be decomposed into the sum of many individual point sources thus the observed image can be represented in terms of a transition matrix p operating on an underlying image d i j p i j u j displaystyle d i sum j p i j u j where u j displaystyle u j is the intensity of the underlying image at pixel j displaystyle j and d i displaystyle d i is the detected intensity at pixel i displaystyle i In general a matrix whose elements are p i j displaystyle p i j describes the portion of light from source pixel j that is detected in pixel i In most good optical systems or in general linear systems that are described as shift invariant the transfer function p can be expressed simply in terms of the spatial offset between the source pixel j and the observation pixel i p i j P i j displaystyle p i j P i j where P D i displaystyle P Delta i is called a point spread function In that case the above equation becomes a convolution This has been written for one spatial dimension but of course most imaging systems are two dimensional with the source detected image and point spread function all having two indices So a two dimensional detected image is a convolution of the underlying image with a two dimensional point spread function P D x D y displaystyle P Delta x Delta y plus added detection noise In order to estimate u j displaystyle u j given the observed d i displaystyle d i and a known P D i x D j y displaystyle P Delta i x Delta j y the following iterative procedure is employed in which the estimate of u j displaystyle u j called u j t displaystyle hat u j t for iteration number t is updated as follows u j t 1 u j t i d i c i p i j displaystyle hat u j t 1 hat u j t sum i frac d i c i p ij where c i j p i j u j t displaystyle c i sum j p ij hat u j t It has been shown empirically that if this iteration converges it converges to the maximum likelihood solution for u j displaystyle u j 3 Writing this more generally for two or more dimensions in terms of convolution with a point spread function P u t 1 u t d u t P P displaystyle hat u t 1 hat u t cdot left frac d hat u t otimes P otimes P right where the division and multiplication are element wise displaystyle otimes indicates a 2D convolution and P displaystyle P is the flipped point spread function In problems where the point spread function p i j displaystyle p ij is not known a priori a modification of the Richardson Lucy algorithm has been proposed in order to accomplish blind deconvolution 4 Derivation EditIn the context of fluorescence microscopy the probability of measuring a set of number of photons or digitalization counts proportional to detected light m m 0 m K displaystyle mathbf m m 0 m K for expected values E E 0 E K displaystyle mathbf E E 0 E K for a detector with K 1 displaystyle K 1 pixels is given by P m E i K P o i s s o n E i i K E i m i e E i m i displaystyle P mathbf m vert mathbf E prod i K mathrm Poisson E i prod i K frac E i m i e E i m i it is convenient to work with ln P displaystyle ln P since in the context of maximum likelihood estimation we want to find the position of the maximum of the likelihood function and we are not interested in its absolute value ln P m E i K m i ln E i E i ln m i displaystyle ln P m vert E sum i K left m i ln E i E i ln m i right Again since ln m i displaystyle ln m i is a constant it will not give any additional information regarding the position of the maximum so let s consider a m E i K m i ln E i E i displaystyle alpha m vert E sum i K left m i ln E i E i right where a displaystyle alpha is something that shares the same maximum position as P m E displaystyle P m vert E Now let s consider that E displaystyle E comes from a ground truth x displaystyle x and a measurement H displaystyle mathbf H which we assume to be linear Then E H x displaystyle mathbf E mathbf H mathbf x where a matrix multiplication is implied We can also write this in the form E m n K H m n x n displaystyle E m sum n K H mn x n where we can see how H displaystyle H mixes or blurs the ground truth It can also be shown that the derivative of an element of E displaystyle mathbf E E i displaystyle E i with respect to some other element of x displaystyle x can be written as E i x j H i j displaystyle frac partial E i partial x j H ij 1 dd Tip it s easy to see this by writing a matrix H displaystyle mathbf H of say 5 x 5 and two arrays E displaystyle mathbf E and x displaystyle mathbf x of 5 elements and check it This last equation can interpreted as how much one element of x displaystyle mathbf x say element i displaystyle i influences the other elements j i displaystyle j neq i and of course the case i j displaystyle i j is also taken into account For example in a typical case an element of the ground truth x displaystyle mathbf x will influence nearby elements in E displaystyle mathbf E but not the very distant ones a value of 0 displaystyle 0 is expected on those matrix elements Now the key and arbitrary step we don t know x displaystyle x but we want to estimate it with x displaystyle hat mathbf x let s call x o l d displaystyle hat mathbf x old and x n e w displaystyle hat mathbf x new the estimated ground truths while we are using the RL algorithm where the hat symbol is used to distinguish ground truth from estimator of the ground truth x n e w x o l d l a m E x x x o l d displaystyle hat x new hat x old lambda frac partial alpha m vert E x partial x hat x old 2 dd Where x displaystyle frac partial partial x stands for a K displaystyle K dimensional gradient If we work on the derivative of a m E x displaystyle alpha m vert E x we get a m E x x j x j i K m i ln E i E i i K m i E i x j E i x j E i i K E i x j m i E i 1 displaystyle frac partial alpha m vert E x partial x j frac partial partial x j sum i K left m i ln E i E i right sum i K left frac m i E i frac partial partial x j E i frac partial partial x j E i right sum i K frac partial E i partial x j left frac m i E i 1 right and if we now use 1 we get a m E x x j i K H i j m i E i 1 displaystyle frac partial alpha m vert E x partial x j sum i K H ij left frac m i E i 1 right But we can also note that H j i T H i j displaystyle H ji T H ij by definition of transpose matrix And hence a m E x x j i K H j i T m i E i 1 displaystyle frac partial alpha m vert E x partial x j sum i K H ji T left frac m i E i 1 right 3 dd Then if we consider j displaystyle j spanning all the elements from 1 displaystyle 1 to K displaystyle K this equation can be rewritten in its vectorial form a m E x x H T m E 1 displaystyle frac partial alpha m vert mathbf E x partial x mathbf H T left frac mathbf m mathbf E mathbf 1 right where H T displaystyle mathbf H T is a matrix and m displaystyle m E displaystyle E and 1 displaystyle mathbf 1 are vectors Let s now propose the following arbitrary and key step l x o l d H T 1 displaystyle lambda frac hat mathbf x old mathbf H T mathbf 1 4 dd where 1 displaystyle mathbf 1 is a vector of ones of size K displaystyle K same as m displaystyle m E displaystyle E and x displaystyle x and the division is element wise Using 3 and 4 we can rewrite 2 as x n e w x o l d l a m E x x x o l d x o l d H T 1 H T m E 1 x o l d x o l d H T 1 H T m E x o l d displaystyle hat mathbf x new hat mathbf x old lambda frac partial alpha mathbf m vert mathbf E x partial x hat mathbf x old frac hat mathbf x old mathbf H T mathbf 1 mathbf H T left frac mathbf m mathbf E mathbf 1 right hat mathbf x old frac hat mathbf x old mathbf H T mathbf 1 mathbf H T frac mathbf m mathbf E hat mathbf x old which yields x n e w x o l d H T m E H T 1 displaystyle hat mathbf x new hat mathbf x old mathbf H T left frac mathbf m mathbf E right mathbf H T mathbf 1 5 dd Where division refers to element wise matrix division and H T displaystyle mathbf H T operates as a matrix but the division and the product implicit after x o l d displaystyle hat mathbf x old are element wise Also E E x o l d H x o l d displaystyle mathbf E E hat mathbf x old mathbf H hat x old can be calculated because we assume The initial guess x 0 displaystyle hat mathbf x 0 is known and is typically set to be the experimental data The measurement function H displaystyle mathbf H is knownOn the other hand m displaystyle mathbf m is the experimental data Therefore equation 5 applied successively provides an algorithm to estimate our ground truth x n e w displaystyle mathbf x new by ascending since it moves in the direction of the gradient of the likelihood in the likelihood landscape It has not been demonstrated in this derivation that it converges and no dependence on the initial choice is shown Note that equation 2 provides a way of following the direction that increases the likelihood but the choice of the log derivative is arbitrary On the other hand equation 4 introduces a way of weighting the movement from the previous step in the iteration Note that if this term was not present in 5 then the algorithm would output a movement in the estimation even if m E x o l d displaystyle mathbf m E hat mathbf x old It s worth noting that the only strategy used here is to maximize the likelihood at all cost so artifacts on the image can be introduced It is worth noting that no prior knowledge on the shape of the ground truth x displaystyle mathbf x is used in this derivation Software EditRawTherapee since v 2 3 See also EditDeconvolution Wiener filter deconvolution in the presence of additive noise References Edit Richardson William Hadley 1972 Bayesian Based Iterative Method of Image Restoration JOSA 62 1 55 59 Bibcode 1972JOSA 62 55R doi 10 1364 JOSA 62 000055 Lucy L B 1974 An iterative technique for the rectification of observed distributions Astronomical Journal 79 6 745 754 Bibcode 1974AJ 79 745L doi 10 1086 111605 Shepp L A Vardi Y 1982 Maximum Likelihood Reconstruction for Emission Tomography IEEE Transactions on Medical Imaging 1 2 113 22 doi 10 1109 TMI 1982 4307558 PMID 18238264 Fish D A Brinicombe A M Pike E R Walker J G 1995 Blind deconvolution by means of the Richardson Lucy algorithm PDF Journal of the Optical Society of America A 12 1 58 65 Bibcode 1995JOSAA 12 58F doi 10 1364 JOSAA 12 000058 S2CID 42733042 archived from the original PDF on 2019 01 10 Retrieved from https en wikipedia org w index php title Richardson Lucy deconvolution amp oldid 1120318727, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.