SNR IN and SNR OUT

5 次查看(过去 30 天)
Soum
Soum 2013-7-11
Hi;
In order to compare the noisy and the De-noised image i should calculate the SNR IN and The SNR OUT
SNR IN :the SNR between the original image I and the noisy In
SNR OUT:the SNR between the De-noised image Id and the original I
For this purpose,I have written a code for calculate the SNR but I'm not sure if it correct because the values i've got they are negatives :/
es=sum(sum(abs(I).^2));
en=sum(sum(abs(In).^2));
SNRIN=10*log10(es/en);
es=sum(sum(abs(I).^2));
en=sum(sum(abs(Id).^2));
SNROUT=10*log10(es/en);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Denoising and Compression 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by