1 function y=PSNR_RGB(X,Y)
\r
4 % Computes the Peak Signal to Noise Ratio for two RGB images
\r
5 % Class input : double [0,1] ,
\r
12 error('The images must have the same size');
\r
15 %if ~isa(X,'double')
\r
16 % X=double(X)./255.00;
\r
18 %if ~isa(Y,'double')
\r
19 % Y=double(Y)./255.00;
\r
26 sigma=mean2((X-Y).^2);
\r
28 y=10*log((d.^2)./sigma);