How to compute three values of PSNR one for each channel, using RGB image?
2 views (last 30 days)
Image Analyst on 19 Dec 2017
Split the image up into different color channels and use psnr() on each channel:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% Extract also for watermarked image, then compute PSNR:
psnrRed = pnr(redChannel, redChannelWatermarked);
psnrGreen = pnr(greenChannel , greenChannelWatermarked);
psnrBlue = pnr(blueChannel , blueChannelWatermarked);