#HSI to RGB to HSI
4 messages in this thread
I have some code to do conversion from RGB to HSV and back written in Pascal.
It also uses REALs. I also tried to convert it to use integer math, but it
never worked correctly. Let me take a look at it, it's been more than a year
since I've played with that, maybe I'll find the problem this time around.
You must be my guardian angel! How is it you ALWAYS come to my rescue! I
appreciate the effort. If you succeed without REALs I'd be mighty grateful!
Well I looked and looked, and I think I threw the source code away on one of my
"cleaning" bindges… I have the non-working M2 integer math code, but no
longer have the original Pascal source. It came out of a book from a University
course in computer graphics… If I can remember which book, I can dig it out
at the library…
There is code (using reals, of course) for converting various color models in
"Fundementals of Computer Graphics" by Foley and Vam Dam (Addison Wesley,
1982). Try a college library or bookstore ($45.95 when I took graphics, so try
the library FIRST 😉