how to mesure PSNR in binary image???

5 views (last 30 days)
Tran Loc
Tran Loc on 7 Jan 2013
Answered: Paras khandelwal on 16 Apr 2019
hi everybody. I have an original binary image (A) and an binary image with Watermark (A+W). Please help me how to calculate PSNR of these binary images. thanks a lot. Best regards.

Answers (1)

Paras khandelwal
Paras khandelwal on 16 Apr 2019
PSNR is calculated according to the formula given in MathWorks - PSNR. The formula given on that page and also in the wikipedia is same Peak signa-to-noise ratio. It says that the formula is for monochrome/binary image. So the actual formula you have seen everywhere and in above links need not to be changed for binary/monochrome images. But to do calculation for color image, in MSE add the square of difference of each pixel in for every color space (e.g., difference of value of Red, Green and Blue), and then divide the MSE by three and the total number of pixels.

Tags

Community Treasure Hunt

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

Start Hunting!