Sign in

username or email:

password:



Not a member?
Forgot your password?

Search code



Search tips

Ads

See Also

Embedded SystemsFPGA

DSP Code Sharing > Image denoising: Peak signal to Noise ratio calculation

Image denoising: Peak signal to Noise ratio calculation

Language: Matlab

Processor: Not Relevant

Submitted by Senthilkumar R on Jul 30 2011

Licensed under a Creative Commons Attribution 3.0 Unported License

Image denoising: Peak signal to Noise ratio calculation


 

This function used to calculate the peak signal to noise ratio for denoised image

 
function A = PSNR(G,H)
%G = original image
%H =  denoised image
  error = G - H;
  decibels = 20*log10((255*255)/(sqrt(mean(mean(error.^2)))));
  disp(sprintf('PSNR = %5.2f db',decibels))
  A = decibels;
 
Rate this code snippet:
0
Rating: 0 | Votes: 0
 
   
 
posted by Senthilkumar R



Comments


No comments yet for this code


Add a Comment
You need to login before you can post a comment (best way to prevent spam). ( Not a member? )