Sign in

username or email:

password:



Not a member?
Forgot your password?

Search code



Search tips

Ads

See Also

Embedded SystemsFPGA

DSP Code Sharing > Image denoising - Threshold calculation for Bishrink method

Image denoising - Threshold calculation for Bishrink method

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 - Threshold calculation for Bishrink method


 

This function used to calculate the threshold for image denoising using bishrink method

 
function T = bishrink2(CD,CY)
sigman = (median(median(abs(CD))))/0.6745;
[m,n] = size(CY);
sigmay = 0;
for i =1:m
    for j = 1:n
        sigmay = sigmay+((CY(i,j))^2);
    end
end
sigmay = sqrt(2)*sigmay/(m*n);
sigma = sqrt(max((((sigmay))-((sigman)^2)),0)); % Variance calculation
if sigma~=0
    T = sqrt(3)*(sigman^2)/sigma;   %Threshold
else
    T = max(max(abs(CY)));
end
 
Rate this code snippet:
0
Rating: 0 | Votes: 0
 
   
 
posted by Senthilkumar R



Comments


No comments yet for this code


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