资源简介

机器视觉之模糊图像复原,实现inverse Filter, Wiener Filter, Lucy-richardson 算法,里面包括PPT,代码和报告。非常有价值,值得参考!

资源截图

代码片段和文件信息

function [absdiff snr psnr imfid mse] = compare(originalimg restoredimg)

md = originalimg - restoredimg;
mdsize = size(md);
summation = 0;
for i = 1:mdsize(1);
    for j = 1:mdsize(2);
        summation = summation + abs(md(ij));
    end
end

absdiff = summation/(mdsize(1)*mdsize(2));
%}


%Signal to Noise Ratio (SNR)
%{
md = (originalimg - restoredimg).^2;
mdsize = size(md);
summation = 0;
sumsq=0;
for  i = 1:mdsize(1);
    for j = 1:mdsize(2);
        summation = summation + abs(md(ij));
        sumsq = sumsq + (originalimg(ij)^2);
    end
end

snr = sumsq/summation;
snr = 10 * log10(snr);
%}


%Peak Signal to Noise Ratio (PSNR)
%{
md = (originalimg - restoredimg).^2;
mdsize = size(md);
summation = 0;
sumsq=0;
for  i = 1:mdsize(1);
    for

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1413  2010-01-22 01:03  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Compare.m

     文件       1243  2010-01-22 01:04  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Degrade.m

     文件      82672  2010-01-21 18:54  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\GUICompare.fig

     文件      28978  2010-01-22 01:33  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\GUICompare.m

     文件      58136  2010-01-21 16:13  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\GUIDegrade.fig

     文件      20484  2010-01-22 01:33  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\GUIDegrade.m

     文件      54104  2010-01-21 18:43  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\GUIRestore.fig

     文件      26928  2010-01-22 01:38  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\GUIRestore.m

     文件      29152  2010-01-22 16:25  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\GUIWelcome.fig

     文件       6913  2010-01-22 16:27  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\GUIWelcome.m

     文件        795  2010-01-22 01:04  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Inverse.m

     文件       1356  2010-01-22 01:29  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Lucy.m

     文件        384  2010-01-21 01:06  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\my_closereq.m

     文件      65240  1997-02-22 07:28  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Testing Image\cameraman.bmp

     文件      66614  2008-01-25 00:30  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Testing Image\Flower.bmp

     文件      66616  2006-11-05 14:04  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Testing Image\lena.bmp

    ..A.SH.     33280  2010-01-22 01:51  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Testing Image\Thumbs.db

     文件       1095  2010-01-22 01:05  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Wiener.m

     文件    1066415  2010-01-22 17:33  图像复原(Wiener+Inverse+Lucy)\Image Restoration Report.pdf

     文件    2189312  2010-01-22 13:46  图像复原(Wiener+Inverse+Lucy)\Image Restoration.ppt

     文件      65240  1997-02-22 07:28  图像复原(Wiener+Inverse+Lucy)\Testing Image\cameraman.bmp

     文件      66614  2008-01-25 00:30  图像复原(Wiener+Inverse+Lucy)\Testing Image\Flower.bmp

     文件      66616  2006-11-05 14:04  图像复原(Wiener+Inverse+Lucy)\Testing Image\lena.bmp

    ..A.SH.     33280  2010-01-22 01:51  图像复原(Wiener+Inverse+Lucy)\Testing Image\Thumbs.db

     文件         44  2010-01-22 17:36  图像复原(Wiener+Inverse+Lucy)\操作说明.txt

     目录          0  2012-05-31 12:50  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code\Testing Image

     目录          0  2012-05-31 12:50  图像复原(Wiener+Inverse+Lucy)\Image Restoration Code

     目录          0  2012-05-31 12:50  图像复原(Wiener+Inverse+Lucy)\Testing Image

     目录          0  2012-05-31 12:50  图像复原(Wiener+Inverse+Lucy)

----------- ---------  ---------- -----  ----

............此处省略4个文件信息

评论

共有 条评论