Above code if very simplistic, however, You may visit my webpage in researchgate where I have a despeckle filtering toolbox as well as an image quality evalution toolbox in MATLAB to download. There are a lot functions available including psnr.
Above code if very simplistic, however, You may visit my webpage in researchgate where I have a despeckle filtering toolbox as well as an image quality evalution toolbox in MATLAB to download. There are a lot functions available including psnr.
Will there be any difference in programming, while calculating the PSNR of a gray image with one band and a multispectral image with three or more bands?
peaksnr = psnr(A,ref) calculates the peak signal-to-noise ratio for the image A, with the image ref as the reference. A and ref must be of the same size and class.