function v = SNR(diffimage)
%signal/noise ratio in dB


v = 10*log(255^2/variance(diffimage))/log(10);

