averaging pixel values above a threshold


Last Updated:

  1. irradiation

    irradiation Member This Topic's Starter

    Joined:
    Oct 7, 2012
    Messages:
    7
    Likes Received:
    0
    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

Loading...