No BSD License  

Highlights from
IMAGE DENOISING USING BAYES THRESHOLDING OF WAVELET COEFFICIENTS

from IMAGE DENOISING USING BAYES THRESHOLDING OF WAVELET COEFFICIENTS by aaa asdfgh
this work is aimed to implement bayes thresholding.

op=sthresh(X,T);
function op=sthresh(X,T);

%A function to perform soft thresholding on a 
%given an input vector X with a given threshold T
% S=sthresh(X,T);

    ind=find(abs(X)<=T);
    ind1=find(abs(X)>T);
    X(ind)=0;
    X(ind1)=sign(X(ind1)).*(abs(X(ind1))-T);
    op=X;
    

Contact us at files@mathworks.com