Nick Lamb <[EMAIL PROTECTED]> writes:

> On Thu, Feb 08, 2001 at 01:36:10PM +0100, Roel Schroeven wrote:
> > The value in the gimp histogram is calculated as the maximum of the red,
> > green and blue channels now. Wouldn't it be better to use the average of the
> > three color channels?
> We discussed this when I was fixing the histogram for 1.2.x BRANCH (btw,
> did that fix go into 1.2.1, or did it just rot? Maybe I should look for
> myself) and I can't remember what the arguments were for leaving it as
> it is, but that's what we decided to do in 1.2 at least.

Well, max (r,g,b) is the correct formula for calculating the value of a 
color (assuming that value corresponds to the V in HSV). The average of the 
three channels is a somewhat useless number, but it might make sense to add 
intensity (mostly defined as 0.3 r + 0.59 g + 0.11 b) as an option.

Salut, Sven

Reply via email to