Image denoise: denoising using soft threshold
This function used to denoise a noisy image using simple soft threshold method
function y = soft(x,T)
%function used to denoise a noisy image with given soft threshold
%x = noisy image
%T = threshold
y = max(abs(x) - T, 0);
y = y./(y+T) .* x;