deconvlucy
Deblur image using Lucy-Richardson method
Syntax
Description
restores imageJ
= deconvlucy(I
,psf
)I
that was degraded by convolution with a point-spread function (PSF),psf
, and possibly by additive noise. The algorithm is based on maximizing the likelihood that the resulting imageJ
is an instance of the original imageI
under Poisson statistics.
To improve the restoration,deconvlucy
supports several optional parameters, described below. Use[]
as a placeholder if you do not specify an intermediate parameter.
specifies which pixels in the input imageJ
= deconvlucy(I
,psf
,iter
,dampar
,weight
)I
are considered in the restoration. The value of an element in theweight
数组决定多少pixel at the corresponding position in the input image is considered. For example, to exclude a pixel from consideration, assign it a value of0
in theweight
array. You can adjust the weight value assigned to each pixel according to the amount of flat-field correction.
Examples
Input Arguments
Output Arguments
Tips
You can use
deconvlucy
to perform a deconvolution that starts where a previous deconvolution stopped. To use this feature, pass the input imageI
as a cell array,{I}
. When you do, thedeconvlucy
function returns the output imageJ
as a cell array, which you can then pass as the input array into the nextdeconvlucy
call. The output cell arrayJ
contains four elements:J{1}
containsI
, the original image.J{2}
contains the result of the last iteration.J{3}
contains the result of the next-to-last iteration.J{4}
is an array generated by the iterative algorithm.The output image
J
could exhibit ringing introduced by the discrete Fourier transform used in the algorithm. To reduce the ringing, useI = edgetaper(I,psf)
before callingdeconvlucy
.deconvlucy
converts the PSF todouble
without normalization.deconvlucy
may return values in the output image that are beyond the range of the input image.
References
[1] D.S.C. Biggs and M. Andrews,Acceleration of iterative image restoration algorithms, Applied Optics, Vol. 36, No. 8, 1997.
[2] R.J. Hanisch, R.L. White, and R.L. Gilliland,Deconvolutions of Hubble Space Telescope Images and Spectra, Deconvolution of Images and Spectra, Ed. P.A. Jansson, 2nd ed., Academic Press, CA, 1997.