Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Tell me how do I find out gray level variance of the image? Is it any different from the normal variance of the image.

share|improve this question
up vote 2 down vote accepted

I would think that it is indeed the "normal" variance of the image. You look at the distribution of the pixel values (i. e. gray levels), and compute its variance.

share|improve this answer
I mostly agree... but what about for color images? :-) – Peter K. Feb 14 '13 at 16:12
Well, since this is a gray level variance, you would have to convert the image to grayscale first. :) – Dima Feb 14 '13 at 19:53
Yes, I figured that... just wondering whether the type of grayscale conversion matters. – Peter K. Feb 15 '13 at 3:32
@PeterK., depends on what you need this for. And, of course, you can also look at the variance of each color channel, or at the covariance of the joint distribution of the color values. – Dima Feb 15 '13 at 5:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.