• 大小: 16.31MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-25
  • 语言: Matlab
  • 标签: matlab  

资源简介

通过稀疏分解法实时获得图像对应的像素补丁patch,之后将补丁为该图像进行超分辨率的结果一部分,最后拼接

资源截图

代码片段和文件信息

function demo_fast_sc(opt_choice)
% opt_choice = 1: use epslion-L1 penalty
% opt_choice = 2: use L1 penalty

if ~exist(‘opt_choice‘ ‘var‘)
    opt_choice = 1; 
end

% natural image data
load ../data/IMAGES.mat
X = getdata_imagearray(IMAGES 14 10000);

% sparse coding parameters
num_bases = 128;
beta = 0.4;
batch_size = 1000;
num_iters = 100;
if opt_choice==1
    sparsity_func= ‘epsL1‘;
    epsilon = 0.01;
elseif opt_choice==2
    sparsity_func= ‘L1‘;
    epsilon = [];
end

Binit = [];
fname_save = sprintf(‘../results/sc_%s_b%d_beta%g_%s‘ sparsity_func num_bases beta datestr(now 30));

% run fast sparse coding
[B S stat] = sparse_coding(X num_bases beta sparsity_func epsilon num_iters batch_size fname_save Binit);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-12 12:56  superResolution_sparseRepresentation-master\
     目录           0  2018-05-12 12:56  superResolution_sparseRepresentation-master\data\
     文件       30690  2015-04-18 09:53  superResolution_sparseRepresentation-master\data\Child_input.png
     文件       22070  2015-04-18 09:53  superResolution_sparseRepresentation-master\data\Girl_input.bmp
     文件       94172  2015-04-18 09:53  superResolution_sparseRepresentation-master\data\Oldman_input.png
     目录           0  2018-05-12 12:56  superResolution_sparseRepresentation-master\dictionary\
     文件     1766587  2015-04-18 09:53  superResolution_sparseRepresentation-master\dictionary\dictionary_3.mat
     文件        1077  2015-04-18 09:53  superResolution_sparseRepresentation-master\LICENSE
     文件        1356  2015-04-18 09:53  superResolution_sparseRepresentation-master\README.md
     文件         682  2015-04-18 09:53  superResolution_sparseRepresentation-master\README.md~
     目录           0  2018-05-12 12:56  superResolution_sparseRepresentation-master\results\
     文件      229154  2015-04-18 09:53  superResolution_sparseRepresentation-master\results\res_Child_output.png
     文件       95141  2015-04-18 09:53  superResolution_sparseRepresentation-master\results\res_girl_output.png
     文件      694673  2015-04-18 09:53  superResolution_sparseRepresentation-master\results\res_Oldman_output.png
     目录           0  2018-05-12 12:56  superResolution_sparseRepresentation-master\solver_sparseCoding\
     文件         770  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\demo_fast_sc.m
     文件         895  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\display_figures.m
     文件         965  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\display_network_nonsquare2.m
     文件        1024  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\getdata_imagearray.m
     文件        7403  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\l1ls_featuresign.m
     文件        2371  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\l2ls_learn_basis_dual.m
     文件         678  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\save_figures.m
     目录           0  2018-05-12 12:56  superResolution_sparseRepresentation-master\solver_sparseCoding\sc2\
     文件        3844  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\sc2\cgf_fitS_sc2.m
     文件       10303  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\sc2\cgf_sc.c
     文件       28672  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\sc2\cgf_sc2.dll
     文件       26507  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\sc2\cgf_sc2.mexa64
     文件       20889  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\sc2\cgf_sc2.mexglx
     文件        1241  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\sc2\getobjective2.m
     文件         140  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\sc2\makefile.linux
     文件         183  2015-04-18 09:53  superResolution_sparseRepresentation-master\solver_sparseCoding\sc2\makefile.win32
............此处省略119个文件信息

评论

共有 条评论