資源簡介
適用于數字圖像含噪處理,是居于小波變換半軟閾值的圖像去噪。
代碼片段和文件信息
function?X?=?den1(x?wname?n?thr)
%?半軟閾值去噪方法
thr1?=?0.5?*?thr;
[C?S]?=?wavedec2(x?n?wname);?????????????????????%對圖像進行小波分解
dcoef?=?C(?prod(S(1?:))?+?1?:?end);????????????????%高頻部分系數
ind?=?find(?abs(dcoef)?C(ind)?=?0;?????????????????????????????????????????%???直接置零
ind?=?find(?abs(dcoef)?>=?thr1?&?a
評論
共有 條評論