資源簡介
用于壓縮感知圖像處理的matlab代碼 包括CoSaMP,GBP,IHT,OMP,BP,SP等算法的代碼
代碼片段和文件信息
function?Demo_CS_CoSaMP()
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%?the?DCT?basis?is?selected?as?the?sparse?representation?dictionary
%?instead?of?seting?the?whole?image?as?a?vector?I?process?the?image?in?the
%?fashion?of?column-by-column?so?as?to?reduce?the?complexity.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%------------?read?in?the?image?--------------
img=imread(‘lena.bmp‘);?????%?testing?image
img=double(img);
[heightwidth]=size(img);
%------------?form?the?measurement?matrix?and?base?matrix?---------------
Phi=randn(floor(height/3)width);??%?only?keep?one?third?of?the?original?data??
Phi?=?Phi./repmat(sqrt(sum(Phi.^21))[floor(height/3)1]);?%?normalize?each?column
mat_dct_1d=zeros(256
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3209??2012-11-21?15:21??software\Demo_CS_CoSaMP.m
?????文件???????8278??2010-07-15?10:02??software\Demo_CS_GBP.m
?????文件???????2898??2012-11-15?14:31??software\Demo_CS_IHT.m
?????文件???????2877??2012-11-15?14:31??software\Demo_CS_IRLS.m
?????文件???????3340??2010-07-16?14:47??software\Demo_CS_OMP.m
?????文件???????3434??2010-07-15?10:03??software\Demo_CS_SP.m
?????文件??????66614??2010-05-11?20:29??software\lena.bmp
?????目錄??????????0??2012-01-08?12:32??software
-----------?---------??----------?-----??----
????????????????90650????????????????????8
評論
共有 條評論