how can i write psnr coding for denoised image
    조회 수: 9 (최근 30일)
  
       이전 댓글 표시
    
i need to find the matlab coding psnr value for the denoised image by comparing it with the original image only not with the text.
댓글 수: 0
답변 (3개)
  chitresh
      
 2014년 2월 19일
        conver input image and noise image to gray scale image by using rgb2gray(image)
[rows columns] = size(input_gray_image);
squared_error_image = (double(input_gray_image)-double(noise_gray_image)).^2;
mse = sum(sum(squared_error_image))/(rows*columns);
psnr = 10*log10(255^2/mse);
댓글 수: 0
  dian_pratama
 2015년 3월 4일
        You can use this code:
%========= PSNR ============
H = vision.PSNR;
psnr = step(H, denoised_img, original_img);
psnr
댓글 수: 0
  Image Analyst
      
      
 2015년 3월 4일
        Use the psnr function in the Image Processing Toolbox
thePsnr = psnr(image1, image2);
Or see my attached function if you don't have that toolbox.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



