资源简介
做实验时找到的K-SVD算法的Matlab代码,很好用。

代码片段和文件信息
function [Dictionaryoutput] = KSVD(...
Data... % an nXN matrix that contins N signals (Y) each of dimension n.
param)
% =========================================================================
% K-SVD algorithm
% =========================================================================
% The K-SVD algorithm finds a dictionary for linear representation of
% signals. Given a set of signals it searches for the best dictionary that
% can sparsely represent each signal. Detailed discussion on the algorithm
% and possible applications can be found in “The K-SVD: An Algorithm for
% Designing of Overcomplete Dictionaries for Sparse Representation“ written
% by M. Aharon M. Elad and A.M. Bruckstein and appeared in the IEEE Trans.
% On Signal Processing Vol. 54 no. 11 pp. 4311-4322 November 2006.
% =========================================================================
% INPUT ARGUMENTS:
% Data an nXN matrix that contins N signals (Y) each of dimension n.
% param structure that includes all required
% parameters for the K-SVD execution.
% Required fields are:
% K ... the number of dictionary elements to train
% numIteration... number of iterations to perform.
% errorFlag... if =0 a fix number of coefficients is
% used for representation of each signal. If so param.L must be
% specified as the number of representing atom. if =1 arbitrary number
% of atoms represent each signal until a specific representation error
% is reached. If so param.errorGoal must be specified as the allowed
% error.
% preserveDCAtom... if =1 then the first atom in the dictionary
% is set to be constant and does not ever change. This
% might be useful for working with natural
% images (in this case only param.K-1
% atoms are trained).
% (optional see errorFlag) L... % maximum coefficients to use in OMP coefficient calculations.
% (optional see errorFlag) errorGoal ... % allowed representation error in representing each signal.
% InitializationMethod... mehtod to initialize the dictionary can
% be one of the following arguments:
% * ‘DataElements‘ (initialization by the signals themselves) or:
% * ‘GivenMatrix‘ (initialization by a given matrix param.initialDictionary).
% (optional see InitializationMethod) initialDictionary... % if the initialization method
%
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 12292 2013-02-11 14:03 KSVD.m
文件 954 2013-02-11 14:03 OMP.m
文件 1083 2013-02-11 14:03 OMPerr.m
相关资源
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 《MATLAB 智能算法超级学习手册》-程序
- 读取txt文件内容matlab代码实现
- 算术编码解码matlab源代码
- OFDM系统MATLAB仿真代码
- 图像小波变换MatLab源代码
- 细胞图像分割matlab代码
- 基于MP的时频分析MATLAB代码
- 工程优化问题的Matlab实现代码
- WCDMA matlab代码
- 数字图像处理radon matlab变换算法代码
- 数字信号处理 理论算法与实现 胡广书
- 激光谐振腔课程设计(matlab)exe及源
- 基于harris算法的角点检测matlab原代码
- 北邮Matlab实验报告和代码
- 图像降噪Matlab代码
- matlab人脸识别和特征提取
- 圣诞树(matlab代码)
- 心音信号处理分析(附matlab代码)
- Pattern Recognition and Machine Learning(高清
- 均值滤波和FFT频谱分析Matlab代码
- 《MATLAB扩展编程》代码
- 多目标跟踪 论文+代码
- 欧拉放大论文及matlab代码
- 蚁群算法论文+源代码
- GPS信号的码捕获matlab代码.7z
- 一维光子晶体MATLAB仿真代码吸收率折
- matlab读取SP3文件
- 手把手教你学DSP--基于TMS320C55x光盘 含
评论
共有 条评论