This discussion is archived
1 Reply Latest reply: Apr 16, 2012 6:16 AM by tschodt RSS

calculate mean or average intensity of an image

obinna Newbie
Currently Being Moderated
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 Pro
    Currently Being Moderated
    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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points