9

I would like to measure the quality of a color image, possibly as a difference to another image, but if possible, on its own too.

This question comes from the fact that we have a vision application, and improve lighting conditions, calbirations, and similar surrounding conditions. We want to measure the improvement of the quality of the image, such as:

  • Amount of detail
  • Contrast
  • Other things that describe the quality of an image or the amount of information in an image

Do you have ideas for this? Maybe histogram comparisons, or an advanced distance measure on the histogram? I'd love to hear some good ideas!

EDIT:

Of course the results of the vision application are a measure of the quality of the images. But:

  • it is not intended as a measurement for the quality, it is a measurement of something else
  • there are more parameters that influence the results of the application (for example the image itself), therefore it is only a rough measure of the quality of the image

I could use human evaluation, but I really want an objective measure, especially because the human eyes are not objective (our mind plays tricks, the monitor we watch it on influences the image, etc.).

FINAL EDIT:

After a discussion about what quality in an image is, I'll leave this question as is. My own ideas (and of my coworkers) are the following:

  • The range of the RGB channels (is it using all the colors possible)
  • The mean of the Sobel amplitude (the amount of detail or a rough measure of focus, also see this question about detail)
  • The amount of pixels that are clipped or 0 (no information in these pixels)
  • Also the mean of the RGB channels and the YCbCr channels (after conversion), to be able to see if the average color has changed (may lead to investigating light from other sources, or after changing our own lighting)

By combining these statistics we can get an impression of the quality from a more objective point of view, instead of just looking at the images. It also leads to pointers where the changes might come from.

Geerten
  • 1,371
  • 1
  • 9
  • 17

2 Answers2

3

It all depends on what you mean by "quality". If it is visual quality as perceived by people, then the best thing to do is to ask multiple people to compare pairs of images to see which ones they like better.

Since you have mentioned a vision application, then it must have some performance metrics for whatever it does, which would be its measure of quality.

If by quality you mean how blurry or noisy the image is, then you might compute the Fourier transform to see whether the image contains high frequency components to see how blurry it is, or compute its entropy to see how noisy it is.

Dima
  • 5,101
  • 22
  • 28
  • I addressed your points in my edit in the question, I will look into the Fourier transform and entropy if they describe the difference. – Geerten Feb 17 '12 at 07:51
  • @Geerten, in that case, what quality means depends on what your application is trying to do. And until you tell us what it is trying to do, it is difficult to help you. – Dima Feb 17 '12 at 23:00
  • but I'm not looking for specific measures, I'm looking for generic measures. Just one step of evaluation of the images béfore I use them in the vision application. – Geerten Feb 18 '12 at 09:24
  • I get it, you wish to know how well your algorithm works on "good" images compared to "bad" ones, right? The problem is that in this case "good" and "bad" are indeed relative. – Dima Feb 19 '12 at 03:35
  • That would be interesting too, but what I'm most after is the effect of changing conditions (such as lighting, calibration of camera, etc) to the quality of images. So I change a condition, and I want to measure if it increases the quality of the image. – Geerten Feb 20 '12 at 08:44
  • @Geerten, once again, it all depends on how you define quality. As you said, an image that looks good to a person, and an image for which a feature extraction algorithm works well may be very different. When you change lighting, you can measure dynamic range. When you calibrate to remove radial distortion, you can measure how well you are able to do that. Whether or not that measures the quality of the image depends on what it is you are ultimately trying to do. – Dima Feb 21 '12 at 02:02
  • I see your point. I still think there is a generic approach for this. Would it be better if I call it the amount of information instead of 'quality'? – Geerten Feb 21 '12 at 09:31
  • @Geerten, The amount of information can be defined as the entropy. But if anything, that is the inverse measure of quality, because entropy increases with noise. A purely random image has the highest information content, from the point of view of information theory. – Dima Feb 21 '12 at 16:24
  • But if you know you have low noise images, you can still use it as a measure. But I'll leave it at this, I added some things we came up with here. I'll investigate the entropy further, and except this answer as the answer to my question. – Geerten Feb 22 '12 at 16:10
2

There are very specific metrics for Quality measurement that are used for Image/Video compression. However, i don't think you are looking for that here.

Quality here is concerned with ability to apply vision algorithms and hence ability to extract key features in the right way. If this is the case, it all depends on which features you are extracting.

Tell use something more about your application.

Dipan Mehta
  • 5,587
  • 2
  • 30
  • 53
  • See my edit for more info, and the difference is subtle, so the extraction of key features works for both images, therefore it's not a good to use measure.. – Geerten Feb 17 '12 at 07:50
  • Any reason you deleted your previous answer? It was pretty exhaustive and informative. I'd love to see it back on here. – Phonon Feb 19 '12 at 04:33
  • I wish someone will ask that question ans i will paste that answer there. I just compiled all aspects of Quality evaluation- but then i realized that OP was asking about Vision specific quality which this answer wasn't targetting. May be you should ask question about Image/Video quality measurement i will post this answer. (I almost spent a whole night compiling my past references - but just realized it is off the tangent!) – Dipan Mehta Feb 19 '12 at 04:41