资源简介
做实验时找到的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
相关资源
- PRML全部代码
- graph cut matlab 代码 可以运行 能直观看
- matlab实现阻抗圆图源代码
- 精通MATLAB最优化计算源代码
- 克里金及协同克里金插值__matlab代码
- 国外资源 基于PCA的人脸识别matlab代码
- 四阶Runge-Kutta法解常微分方程组实验报
- 利用pts降低papr的matlab代码
- LEACH算法相关代码
- 基于优先规则的MATLAB单机排序代码
- QPSK matlab 调制解调代码
- 简化模糊神经网络MATLAB代码
- mp算法matlab代码
- 在matlab中读取遥感图像BSQ数据代码
- 指纹识别的matlab代码
- 蒙特卡洛模拟代码
- k-means离群点剔除法matlab代码
- floyd最短路径算法MATLAB代码
- matlab代码实现近场MUSIC算法,适用于近
- 基于遗传算法的单目标优化matlab程序
- 点与线段_线段与线段的最短距离,
- MK检验程序代码
- 源代码tdoa
- Drude模型仿真代码
- 网络数据包丢失模型matlab代码 Gilbe
- Q学习matlab代码
- 导弹自适应滑模制导律仿真matlab代码
- 频谱感知-能量检测法代码
- matlab的CT图像重建代码
- k-means聚类matlab代码
评论
共有 条评论