How to compute three values of PSNR one for each channel, using RGB image?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aniket Paranjpe
el 19 de Dic. de 2017
Comentada: Aniket Paranjpe
el 11 de En. de 2018
I want to compute PSNR of a watermarked RGB image and original RGB Image. Please help it's for my project.
0 comentarios
Respuesta aceptada
Image Analyst
el 19 de Dic. de 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);
4 comentarios
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!