[argyllcms] Re: HSB/HSV and HSL calculation

  • From: tresorjoe email <tresorjoe@xxxxxxxxxxx>
  • To: <argyllcms@xxxxxxxxxxxxx>
  • Date: Fri, 6 Mar 2009 09:12:48 +0000

Peter, Andrew,

Thanks for your replies.

We are currently using a similar calculation, even a little more optimized in 
terms of performance (compared to e.g. easyRGB.com). The problem we have is 
that this conversion takes about 50% of the time needed for the complete color 
engine, especially the calculation of "H". Maybe there's an optimized code that 
does the calculation rather much quicker than the current ones. 

PS: As for integer or floating point, again, the question is performance of the 
conversion...

Regards,
Joe

> From: peterchan.ml@xxxxxxxxx
> To: argyllcms@xxxxxxxxxxxxx
> Subject: [argyllcms] Re: HSB/HSV and HSL calculation
> Date: Fri, 6 Mar 2009 15:53:50 +0800
> 
> On Thu, Mar 5, 2009 at 3:16 AM, tresorjoe email  
> <tresorjoe@xxxxxxxxxxx>wrote:
> > I am looking for a very fast RGB -> HSB/HSV or RGB -> HSL conversion
> > function. Does anybody have some calculations done based on integer  
> > values,
> > "C" language?
> 
> 
> There is C source based on easyrgb.com formulas,
> 
> http://www.tecgraf.puc-rio.br/~mgattass/color/ColorIndex.html
> 
> Integer ? Conversion from floating point should be no problem.
> 
> Peter C.
> 

_________________________________________________________________
http://redirect.gimas.net/?n=M0903xHMMobile_DE
Nie wieder eine Mail verpassen mit Hotmail fürs Handy!

Other related posts: