in reply to Re^3: Perl Image Analysis
in thread Perl Image Analysis

If you have the RGB-values you can easily convert them to grayscale through the formula on Wikipedia where Y (luminance) is the grayscale intensity:

Y = 0.299 * R + 0.587 * G + 0.114 * B

Here is the link:
http://en.wikipedia.org/wiki/YUV

Anders, Norway