Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Image RGB values
Posted:
Aug 27, 2014 11:09 PM


I was wondering how I would go about calculating the average amount of red, green and blue in a given image? I want to write a function for this. My function takes as an input a 3D array containing and RGB image and returns three scalar outputs detailing the average amount of red green and blue. Thanks for any hints!



