1 Reply Latest reply: Apr 16, 2012 8:16 AM by tschodt RSS

    calculate mean or average intensity of an image

    obinna
      hi, in my java program, i have methods that extract 2 dimensional arrays of the red, green, blue and alpha values of each pixel. i also have a method that returns the rgb of each pixel in a 2d array.

      how can i calculate the average intensity of the image from these arrays?

      thanks
        • 1. Re: calculate mean or average intensity of an image
          tschodt
          obinna wrote:
          ... 2 dimensional arrays of the red, green, blue and alpha values of each pixel. i also have a method that returns the rgb of each pixel in a 2d array.

          how can i calculate the average intensity of the image from these arrays?
          Depends.
          Google ([url http://www.google.com/#q=rgb+image+intensity]rgb+image+intensity ) gave me
          http://stackoverflow.com/questions/596216/formula-to-determine-brightness-of-rgb-color