资源简介
稀疏表示中用来训练字典的ksvd算法,有demo
代码片段和文件信息
% KSVD running file
% in this file a synthetic test of the K-SVD algorithm is performed. First
% a random dictionary with normalized columns is being generated and then
% a set of data signals each as a linear combination of 3 dictionary
% element is created with noise level of 20SNR. this set is given as input
% to the K-SVD algorithm.
% a different mode for activating the K-SVD algorithm is until a fixed
% error is reached in the Sparse coding stage instead until a fixed number of coefficients is found
% (it was used by us for the
% denoising experiments). in order to switch between those two modes just
% change the param.errorFlag (0 - for fixed number of coefficients 1 -
% until a certain error is reached).
param.L = 3; % number of elements in each linear combination.
param.K = 50; % number of dictionary elements
param.numIteration = 50; % number of iteration to execute the K-SVD algorithm.
param.errorFlag = 0; % decompose signals until a certain error is reached. do not use fix number of coefficients.
%param.errorGoal = sigma;
param.preserveDCAtom = 0;
%%%%%%% creating the data to train on %%%%%%%%
N = 1500; % number of signals to generate
n = 20; % dimension of each data
SNRdB = 20; % level of noise to be added
[param.TrueDictionary D x] = gererateSyntheticDictionaryAndData(N param.L n param.K SNRdB);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%% initial dictionary: Dictionary elements %%%%%%%%
param.InitializationMethod = ‘DataElements‘;
param.displayProgress = 1;
disp(‘Starting to train the dictionary‘);
[Dictionaryoutput] = KSVD(Dparam);
disp([‘The KSVD algorithm retrived ‘num2str(output.ratio(end))‘ atoms from the original dictionary‘]);
[Dictionaryoutput] = MOD(Dparam);
disp([‘The MOD algorithm retrived ‘num2str(output.ratio(end))‘ atoms from the original dictionary‘]);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 185727 2005-09-11 15:43 KSVD_Matlab_ToolBox\barbara.png
文件 177762 2005-09-11 15:44 KSVD_Matlab_ToolBox\boat.png
文件 1907 2009-09-03 10:54 KSVD_Matlab_ToolBox\demo1.m
文件 3561 2006-12-12 09:13 KSVD_Matlab_ToolBox\demo2.m
文件 8504 2006-12-28 13:57 KSVD_Matlab_ToolBox\demo3.m
文件 5426 2007-01-24 07:53 KSVD_Matlab_ToolBox\denoiseImageDCT.m
文件 6046 2006-12-12 09:18 KSVD_Matlab_ToolBox\denoiseImageGlobal.m
文件 9088 2007-01-24 07:53 KSVD_Matlab_ToolBox\denoiseImageKSVD.m
文件 3246 2007-01-25 08:39 KSVD_Matlab_ToolBox\displayDictionaryElementsAsImage.asv
文件 3224 2007-01-25 08:39 KSVD_Matlab_ToolBox\displayDictionaryElementsAsImage.m
文件 1896 2006-12-11 14:25 KSVD_Matlab_ToolBox\gererateSyntheticDictionaryAndData.m
文件 5749450 2005-09-21 08:35 KSVD_Matlab_ToolBox\globalTrainedDictionary.mat
文件 34985 2005-09-11 15:44 KSVD_Matlab_ToolBox\house.png
文件 12292 2009-09-03 10:54 KSVD_Matlab_ToolBox\KSVD.m
文件 11585 2006-12-28 14:02 KSVD_Matlab_ToolBox\KSVD_NN.m
文件 151199 2005-09-11 15:44 KSVD_Matlab_ToolBox\lena.png
文件 8053 2006-12-12 08:35 KSVD_Matlab_ToolBox\MOD.m
文件 631 2006-12-11 09:56 KSVD_Matlab_ToolBox\my_im2col.m
文件 1105 2006-12-24 16:00 KSVD_Matlab_ToolBox\NN_BP.m
文件 954 2007-04-29 10:17 KSVD_Matlab_ToolBox\OMP.m
文件 1083 2006-12-11 15:08 KSVD_Matlab_ToolBox\OMPerr.m
文件 40181 2002-08-29 17:48 KSVD_Matlab_ToolBox\peppers256.png
文件 4802 2006-12-28 14:11 KSVD_Matlab_ToolBox\README.txt
目录 0 2010-09-30 21:34 KSVD_Matlab_ToolBox
----------- --------- ---------- ----- ----
6422707 24
相关资源
- 传感器网络节点定位算法matlab代码.
- 路径规划算法MATLAB仿真合集
- GPS基本原理及其Matlab仿真235516
- Canny边缘检测Matlab代码
- Kalman Filtering - Theory and Practice Using M
- 基于adaboost算法的目标检测MATLAB代码
- 基于matlab的人脸识别源代码235297
- 数字信号处理MATLAB版第三版
- Random Walks 标准程序,MATLAB程序,调试
- 车牌识别matlab程序235178
- MIMOOFDM 极化码 MATLAB
- 数字信号处理及其Matlab实现 陈怀琛
- Modelling.the.Wireless.Propagation.Channel.A.s
- MATLAB编程菜鸟入门教材
- 基于MATLAB的超声波声场模拟及可视化
- matlab 模特卡罗计算节点可靠度
- RBMCDAbox - Matlab Toolbox of Rao-Blackwellize
- matlab 基于点云的三维重建 附带 点云
- 凸优化matlab算法包
- Gabor滤波后的GIST特征提取matlab代码
- lte链路层 matlab仿真4
- Experiments with MATLAB
- MACHINE_LEARNING_with_NEURAL_NETWORKS_using_MA
- 最佳接收机的实现与仿真,matlab仿真
- 永磁同步电机FOC控制MATLAB仿真模型
- 现代数字图像处理技术提高及应用案
- 涡格法MATLAB程序
- S-ICP算法MATLAB程序
- 蜂窝小区同频干扰的Matlab仿真
- gbvs算法的matlab代码
评论
共有 条评论