View Single Post
Old 4th November 2006, 16:04   #14  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
linear mask

I see your problem, and a simple formula may work for you, however it would be ideal to use a perceptually normalized colorspace like L*a*b* or L*u*v*. The theory is that, the colors you are selecting by eye, are using the eye's model of nearby colors, so if you want the program to linearly select the nearby colors, you have to use the eye's model.
So, convert everything to L*u*v*, then use your simple formulas on that colorspace, and you will be ok.
Since it's an absolute reference, converting is not easy, you have to know what numbers to use for the primary (I would say D65), and to really work right your monitor has to be calibrated (you can assume all modern monitors are rec.709 and d65, and also sRGB).
jmac698 is offline   Reply With Quote