Sign in

username or email:

password:



Not a member?
Forgot your password?

Search code



Search tips


See Also

Embedded SystemsFPGA

DSP Code Sharing > Image denoising -Bayeshrink threshold calculation

Image denoising -Bayeshrink threshold calculation

Language: Matlab

Processor: Not Relevant

Submitted by Senthilkumar R on Jul 30 2011

Licensed under a Creative Commons Attribution 3.0 Unported License

Image denoising -Bayeshrink threshold calculation


 

This function used to calculate the threshold used for bayesoft image denoising method

 
function T = bayeshrink(CD,CV)
[m,n] = size(CD);
sigma  = (median(median(abs(CD))))/0.6745; %Standard deviation
var_sig = std_sig^2;            % Variance
mean_sig = mean(mean(CH));      %mean value
sigmax = var_sig-(mean_sig^2);
sigmas = sqrt(max((sigmax-(sigma^2)),0));
%Calculation of threshold
if sigmas ~=0
    T = ((sigma)^2)/(sigmas);
elseif sigmas == 0
    T = max(max(abs(CV)));
end
 
Rate this code snippet:
0
Rating: 0 | Votes: 0
 
   
 
posted by Senthilkumar R



Comments


 

lyxahu wrote:

8/12/2011
 
oke
 

minkalpatel wrote:

1/24/2012
 
first of all thank you for your very useful code

but i have a difficulty in below statement

var_sig = std_sig^2;


here i can understand the how to get value of std_sig  .please help me in this

Add a Comment
You need to login before you can post a comment (best way to prevent spam). ( Not a member? )