필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by