calculation of PSNR cetween two images

1 回表示 (過去 30 日間)
tina jain
tina jain 2015 年 4 月 29 日
回答済み: Guillaume 2015 年 4 月 29 日
If I am calculating PSNR of a image then should I use
PSNR=psnrtest(Original_image,reconstructed_image)
OR
Original_doubled_image=double(Original_image);
PSNR=psnrtest(Original_doubled_image,reconstructed_image)

回答 (1 件)

Guillaume
Guillaume 2015 年 4 月 29 日
As far as I know there's no psnrtest function in matlab or its toolboxes. The image processing toolbox has a psnr function however.
For psnr, both images must be of the same type and class. So if the reconstructed_image is double, then the original image should be double as well.Make sure that the intensity range of both images matches as well. double images usually have a range between 0 and 1.

Community Treasure Hunt

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

Start Hunting!

Translated by