Code

Image denoising - Bishrink threshold calculation

Senthilkumar July 30, 2011 Coded in Matlab

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

function [w1] = bishrink1(y1,y2,T)
% Bivariate Shrinkage Function
%      y1 - a noisy coefficient value
%      y2 - the corresponding parent value
%      T  - threshold value
%      w1 - the denoised coefficient

R  = sqrt(abs(y1).^2 + abs(y2).^2);
R = R - T;
R  = R .* (R > 0);
w1 = y1 .* R./(R+T);