TSL is a color space that is based on Tint, Saturation, and Luminance. The transformation from RGB to TSL is: <math>S = \sqrt{\frac{9}{5}\left( r'^2 + g'^2 \right)}</math> <math>T = \begin{cases} \frac{1}{2\pi} \arctan{\frac{r'}{g'}} + \frac{1}{4}, & \mbox{if}~g'>0 \\ \frac{1}{2\pi} \arctan{\frac{r'}{g'}} + \frac{3}{4}, & \mbox{if}~g'<0 \\ \frac{1}{2}, & \mbox{if}~g'=0 \\ \end{cases} </math> <math>L = 0.299R + 0.587G + 0.114B</math> where: <math>r' = r - \tfrac{1}{3}</math> <math>g' = g - \tfrac{1}{3}</math> <math>r = \tfrac{R}{R+G+B}</math> <math>g = \tfrac{G}{R+G+B}</math> [1]
References
- ^ Terrillon, Jean-Christophe; Shigeru Akamatsu (2000). "Comparative Performance of Different Chrominance Spaces for Color Segmentation". International Conf on Face and Gesture Recognition: 54-61. Retrieved on 2007-07-31.


