List Info

Thread: Convert to HLS or HSV?




Convert to HLS or HSV?
user name
2006-10-17 23:36:31
 Mike Russell twisted the bytes to say:

 >> I'm having trouble converting to the HLS or HSV
color space.  Does anyone
 >> know what output profile I should be using for
either of these color 
 >> spaces?

 >> I was hoping there would be a generic profile
built-in, similar to
 >> cmsCreateXYZProfile...

 Mike> HSL and HSV are geometric color spaces, direct
mathmatical translations of 
 Mike> RGB that are not profile based.  For example,
RGB(255,0,0) is always zero 
 Mike> hue, 100 percent saturation, and 100 percent
value.

 Mike> Here's a great article discussing this in more
detail:
 Mike> http://e
n.wikipedia.org/wiki/HSV_color_space
 Mike> ---
 Mike> Mike Russell
 Mike> www.curvemeister.com/forum/

I recently added routines to translate from RGB to HSV (and
back) to
panotools. Checkout the latest version of libpano from its
subversion
repository (http://panotools.so
urceforge.net/)

The functions are panoColourRGBtoHSV and panoColourHSVtoRGB
in ColourBrightness.c

dmg




--
Daniel M. German                  "To read is to travel
without all the hassles of luggage."
                                   Emilio Salgari
http://turingmachine.org/
http://silvernegative.com/

dmg (at) uvic (dot) ca
replace (at) with  and (dot) with .

 

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )