码迷,mamicode.com
首页 > 其他好文 > 详细

Adjust color space Constrast,Brightness,Hue,Saturation in YCbCr format.

时间:2015-07-24 20:44:38      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:

The formula is :

  Y   = (y - 128) * C /128   + (B - 128)                        + 128. //About add 128 is ture or error ?

  Cb = [ (Cb - 128)*cos(H) + (Cr - 128)*sin(H)] * S/64 + 128.

      Cr = [-(Cb - 128)*sin(H)  + (Cr - 128)*cos(H)]* S/64 + 128.

 

  If you have any question,you can leave a message for me.I will ask you at the first time.

Adjust color space Constrast,Brightness,Hue,Saturation in YCbCr format.

标签:

原文地址:http://www.cnblogs.com/artestlove/p/4674345.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!