1. Check out our companion app, Forums for Android! Download from Google Play

averaging pixel values above a threshold

Discussion in 'Application Development' started by irradiation, Jun 22, 2013.

  1. irradiation

    irradiation Member
    Thread Starter
    25

    Oct 7, 2012
    7
    0
    25
    Male
    researcher
    Queensland, Australia
    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...