Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
den1.m
Package: wavelet_denoise.zip [view]
Upload User: lcj80317
Upload Date: 2007-01-26
Package Size: 625k
Code Size: 1k
Category:
Wavelet
Development Platform:
Matlab
- 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) < thr1) + prod(S(1, :)); %小于thr1的系数
- C(ind) = 0; % 直接置零
- ind = find( abs(dcoef) >= thr1 & abs(dcoef) < thr )...
- + prod(S(1, :)); %大于thr1小于thr的系数
- C(ind) = sign(C(ind)) .* ...
- ( (thr / (thr - thr1)) * (abs(C(ind)) - thr1) );
- % ind = find( abs(dcoef) >= thr ) + prod(S(1, :)); %大于thr的系数
- % C(ind) = sign(C(ind)) .* ( abs(C(ind)) - alpha * thr );
- X = waverec2(C, S, wname); %重构图像