資源簡介
壓縮感知去噪代碼,一種用于去噪的CS的有效代碼,簡單適用
)
代碼片段和文件信息
function?ResIm?=?Image_Denoising_Global_Denoising(Im??trueIm)
%?Denoise?image?by?denoising?its?patches?using?a?pre-determined?dictionary.
%?Patches?are?denoised?WITHOUT?overlap.
%
%?Inputs?:?
%?Im??????:?image?to?denoise?double?[0?255]
%?trueIm??:?This?is?used?(unfairly)?to?optimize?the?parameters?for?the?algorithm
%
%?Outputs?:
%?ResIm???:?Result?Image?for?the?best?parameter
%%?Parameters
imLen?=?numel(Im);
%%?Create?the?dictionary?-?Haar
[HaarDict??atomNorms]?=?Generate_Haar_Matrix(size(Im)??2);
atomNorms?=?atomNorms(:);
invAtomNorms?=?1?./?atomNorms;
%?Show_Haar_Dict(HaarDict??size(Im));
nAtoms?=?size(HaarDict??2);?%?=?1?+?3?*?nLevels
%%?Prepare?the?projections?of?the?image?onto?the?dictionary
projs?=?HaarDict‘?*?Im(:);
absProjs?=?abs(projs);
%%?Test
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4939??2011-06-16?08:57??壓縮感知去噪代碼.m
-----------?---------??----------?-----??----
?????????????????4939????????????????????1
評論
共有 條評論