averaging pixel values above a threshold


Last Updated: 2013-06-23 03:29:32
  1. irradiation

    irradiation Member

    I have had a mental block (again).

    I am after a way to average the greyscale pixel values above a set threshold. I am not interested in getting an image, and already have the conversion to greyscale (relevant tidbit of code below):

    What I need now is how to determine the average Grey value above a set threshold. The part I am having difficulty with is counting how many pixels are left over above the threshold, and adding the values of these pixels. ​

    Advertisement

Share This Page