I want to find out PSNR and SNR values of two images A and B of same dimension in Matlab.I used the following code
[peaksnr, snr] = psnr(A,B)
and getting an error
Undefined function 'psnr' for input arguments of type 'uint8'.
Then I converted both the images into double as follows
A = double(A);
B = double(B);
and again PSNR is calculated.Now I'm getting an error
Undefined function 'psnr' for input arguments of type 'double'.
Why this is happening?Please help me to troubleshoot the error.