I want to take an input factor, such as a mask or pass, and get the average value of the pixels within it. How can this be done?


Blender has a levels node that return:

  • Mean (Average).
  • Standard Deviation.

enter image description here

  • $\begingroup$ Is it possible to use this with Alpha, or somehow limit it? If I have an image that is mostly black and then has a colored object, I want to get the levels of that colored object. But the levels node does not seem to recognize Alpha, so I always end up with the background color being factored in too, making it useless. $\endgroup$
    – Ascalon
    Sep 24 '16 at 9:32
  • $\begingroup$ @Drudge I just tested it with alpha, Alpha does not seem to be calculated in the mean. Can you share your setup? $\endgroup$
    – Omar Emara
    Sep 24 '16 at 10:35
  • $\begingroup$ Doh, you are correct. I chose a poor image to test it with. Well that's good news at least! $\endgroup$
    – Ascalon
    Sep 24 '16 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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