フィルターのクリア

How to compute three values of PSNR one for each channel, using RGB image?

2 ビュー (過去 30 日間)
Aniket Paranjpe
Aniket Paranjpe 2017 年 12 月 19 日
コメント済み: Aniket Paranjpe 2018 年 1 月 11 日
I want to compute PSNR of a watermarked RGB image and original RGB Image. Please help it's for my project.

採用された回答

Image Analyst
Image Analyst 2017 年 12 月 19 日
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 件のコメント
Image Analyst
Image Analyst 2018 年 1 月 7 日
Why not just average them?
Aniket Paranjpe
Aniket Paranjpe 2018 年 1 月 11 日
thankyou so much @ImageAnalyst

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by