Code covered by the BSD License  

Highlights from
Image Quality Measures

4.16667

4.2 | 12 ratings Rate this file 85 Downloads (last 30 days) File Size: 1.02 MB File ID: #25005
image thumbnail

Image Quality Measures

by

 

12 Aug 2009 (Updated )

Image quality measures are calculated for a distorted image with reference to an original image

| Watch this File

File Information
Description

Image / Picture Quality Measures

In this application, different image quality measures are calculated for a distorted image with reference to an original image. To test the application, a set of 20 distorted images is included in this package. The list of Image Quality measures implemented in this package include,

1. Structural Content (SC)
2. Mean Square Error (MSE)
3. Peak Signal to Noise Ratio (PSNR in dB)
4. Normalized Cross-Correlation (NCC)
5. Average Difference (AD)
6. Maximum Difference (MD)
7. Normalized Absolute Error (NAE)

Refer "Reference.png" for the mathematical expressions implemented in this package.

Original images are kept in the folder "OriginalImages".
Distorted images are kept in the folder "DistortedImages".

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (14)
07 Jan 2014 patel Shital  
24 Aug 2013 Sudharsan  
24 Jan 2013 india  
30 Mar 2012 Akshay Bhosale  
01 Nov 2011 Emad Taha

very good work

23 Jun 2011 Adi Navve

Adding to Sean de, I don't know what does "NormalizedCrossCorrelation" compute but it is not normalized cross correlation, not even close. This is wrong and misleading. One should have more responsibility over what he claims in his published code.

07 Jun 2011 Sean de  
07 Jun 2011 Sean de

Don't overwrite the (VERY) important built-in function: error!

Maximum Difference is a pretty much useless measure. You want the maximum absolute difference since you're looking for magnitude.
max(abs(image1(:)-image2(:)))

Assumptions are made in the PSNR calculation that the images have a max of 255 (that for uint8) - this is never alluded to in the documentation.

No error checking.

This suite has potential but the documentation needs to be augmented.

Three stars for now.

25 Mar 2011 Tian  
21 Jul 2010 uitm put

dear sir,

i have tried your algorithm in Image and Picture Quality Measures.
But i could not measure the PSNR using lena (from folder "OriginalImages") and lena (from folder "DistortedImages").
In Matlab occured the message " ??? Error using ==> minus, Matrix dimensions must agree".
Could you please give me any ideas how to solve this problem.

Regards,
Puteri Zirwatul Nadila
Postgraduate Student UITM Malaysia
(puteri.nadila@gmail.com)

23 Jun 2010 RAJKUMAR Palaniappan

hello Sir
can i have your Email id so that i can clarify many more doubts

Thanking you

06 Oct 2009 Deni

Sir, Could you please explain what Does 3 values given by PSNR and MSE for .jpeg extension files means?? (is it because .jpeg consist 3 samples, so it gives 3 values for PSNR and MSE??)

20 Sep 2009 Shrinivas

Good application for quality comparison of two images.
Sir, I would like to know
* To what extent distImg is close to OrigImg ( how much % )

12 Aug 2009 Christopher

Works well

Updates
07 Jun 2011

Author Info Updated

Contact us