View Single Post
  #3   Spotlight this post!  
Unread 03-05-2013, 21:10
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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