|
Re: HSV/HSL Algorithm
I implemented this a few years ago and used an algorithm from Foley and van Dam. I found it by googling, but don't remember exactly which site I found it at.
It is O(n) time and can be done either inplace or into another buffer of the same size.
The NIVision algorithms strive for accuracy and I don't believe they use the approximation algorithm I mention above. I was told that the HSV is faster but less accurate than the HSL, but I haven't verified this.
Greg McKaskle
|