Re: [OT] a good color distance function

2010-10-16 Thread Jérôme M. Berger
Justin Johansson wrote: > Can anyone please suggest a decent algorithm for > determining a "color distance" metric between > two colors? The requirement is to come up with > a good algorithm for contrasting a computed color > from another color. > > Should this algorithm (function) be dependent u

Re: [OT] a good color distance function

2010-10-15 Thread Justin Johansson
On 15/10/2010 2:54 AM, ponce wrote: Somehow me thinks that (in say an RGB model) a Pythagorean square-root of the the sum of the squares of the respective RGB axis deltas is, whilst mathematically pleasing, not best practice for contemporary ideals/political correctness for addressing accessibil

Re: [OT] a good color distance function

2010-10-15 Thread Justin Johansson
On 15/10/2010 1:16 AM, BCS wrote: Hello Justin, I'd work in HSV. convert the hue channel to an absolute difference and then combine with a weighted sum. You might also take a look at some graphics design ideas about the color wheel (e.g. make the f(H) have peeks for complementary colors) and you

Re: [OT] a good color distance function

2010-10-14 Thread ponce
> > Somehow me thinks that (in say an RGB model) a > Pythagorean square-root of the the sum of the squares > of the respective RGB axis deltas is, whilst > mathematically pleasing, not best practice for > contemporary ideals/political correctness for addressing > accessibility/visual impairment is

Re: [OT] a good color distance function

2010-10-14 Thread BCS
Hello Justin, Can anyone please suggest a decent algorithm for determining a "color distance" metric between two colors? The requirement is to come up with a good algorithm for contrasting a computed color from another color. I'd work in HSV. convert the hue channel to an absolute difference

[OT] a good color distance function

2010-10-14 Thread Justin Johansson
Can anyone please suggest a decent algorithm for determining a "color distance" metric between two colors? The requirement is to come up with a good algorithm for contrasting a computed color from another color. Should this algorithm (function) be dependent upon whether the color model be additi