matlab deconvlucy,Deblur image using Lucy-Richardson method

Read and display a pristine image that does not have blur or noise. This example optionally crops the image to a size of 256-by-256 with the top-left (x,y) coordinate at (2,50).

I = imread('board.tif');

I = imcrop(I,[2 50 255 255]);

imshow(I)

title('Original Image')

9110375b7bdf5fc5c4d8aa603ad9963c.png

Create a PSF that represents a Gaussian blur with standard deviation 5 and filter of size 5-by-5.

PSF = fspecial('gaussian',5,5);

Simulate blur in the image.

blurred = imfilter(I,PSF,'symmetric','conv');

Add simulated zero-mean Gaussian noise.

V = 0.002;

blurred_noisy = imnoise(blurred,'gaussian',0,V);

imshow(blurred_noisy)

title('Blurred and Noisy Image')

ba988350a6c9925c38aa6f2bfc5373e0.png

Use deconvlucy to restore the blurred and noisy image. Specify the PSF used to create the blur and decrease the number of iterations to 5.

luc1 = deconvlucy(blurred_noisy,PSF,5);

imshow(luc1)

title('Restored Image')

a74db433108a3ff3a33caa102a47745a.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值