• 大小:
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-12
  • 语言: Matlab
  • 标签: matlab  

资源简介

Jianchao Yang 的基于稀疏表示的单幅图像重建的原始代码,先将高低训练图像分块,再将块训练成高低字典,将测试图像映射到低字典上,得到系数,再乘以高子典就得到最后的图像。对学习超分辨率同学的参考作用很大

资源截图

代码片段和文件信息

function [im_h] = backprojection(im_h im_l maxIter)

[row_l col_l] = size(im_l);
[row_h col_h] = size(im_h);

p = fspecial(‘gaussian‘ 5 1);
p = p.^2;
p = p./sum(p(:));

im_l = double(im_l);
im_h = double(im_h);

for ii = 1:maxIter
    im_l_s = imresize(im_h [row_l col_l] ‘bicubic‘);
    im_diff = im_l - im_l_s;
    
    im_diff = imresize(im_diff [row_h col_h] ‘bicubic‘);
    im_h = im_h + conv2(im_diff p ‘same‘);
end
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-04-02 08:59  ScSR\
     目录           0  2011-03-07 13:45  ScSR\Data\
     目录           0  2013-04-02 08:59  ScSR\Data\Testing\
     文件      196662  2011-01-10 21:54  ScSR\Data\Testing\gnd.bmp
     文件       49206  2011-01-18 13:51  ScSR\Data\Testing\input.bmp
     文件      196662  2011-01-28 23:07  ScSR\Data\Testing\result.bmp
     目录           0  2013-04-02 08:59  ScSR\Data\Training\
     文件      104246  2007-10-14 17:36  ScSR\Data\Training\t1.bmp
     文件      118614  2007-10-14 20:44  ScSR\Data\Training\t11.bmp
     文件       40990  2007-10-14 20:45  ScSR\Data\Training\t12.bmp
     文件      101010  2007-10-14 20:45  ScSR\Data\Training\t13.bmp
     文件       76990  2007-10-14 20:46  ScSR\Data\Training\t14.bmp
     文件       83894  2007-10-14 20:47  ScSR\Data\Training\t16.bmp
     文件       69786  2007-10-14 20:47  ScSR\Data\Training\t17.bmp
     文件       55782  2007-10-14 20:48  ScSR\Data\Training\t18.bmp
     文件       96174  2007-10-14 20:48  ScSR\Data\Training\t19.bmp
     文件       92418  2007-10-14 17:37  ScSR\Data\Training\t2.bmp
     文件       18462  2007-10-14 20:48  ScSR\Data\Training\t20.bmp
     文件       41346  2007-10-14 20:49  ScSR\Data\Training\t21.bmp
     文件       59718  2007-10-14 20:49  ScSR\Data\Training\t22.bmp
     文件       46902  2007-10-14 20:49  ScSR\Data\Training\t23.bmp
     文件       37290  2007-10-14 20:50  ScSR\Data\Training\t24.bmp
     文件      125190  2007-10-14 20:50  ScSR\Data\Training\t25.bmp
     文件       58742  2007-10-14 20:51  ScSR\Data\Training\t26.bmp
     文件      126030  2007-10-14 20:51  ScSR\Data\Training\t27.bmp
     文件       92550  2007-10-14 20:52  ScSR\Data\Training\t28.bmp
     文件       89334  2007-10-14 17:38  ScSR\Data\Training\t3.bmp
     文件       61662  2007-10-14 20:52  ScSR\Data\Training\t30.bmp
     文件      101670  2007-11-09 22:17  ScSR\Data\Training\t31.bmp
     文件       86646  2007-11-09 22:17  ScSR\Data\Training\t32.bmp
     文件       66362  2007-11-09 22:19  ScSR\Data\Training\t34.bmp
............此处省略141个文件信息

评论

共有 条评论