how to adjust image saturation in YUV color space

一曲冷凌霜 提交于 2020-01-23 09:55:39

问题


I want to know how to adjust image saturation in YUV color space, specially, the U component and the V component?


回答1:


you probably want to scale the U and V components (using a center point of 128)

ex:

U = (U - 128) * Scale_factor) + 128;

V = (V - 128) * Scale_factor) + 128;

(and remember to clamp the values back to a valid range)



来源:https://stackoverflow.com/questions/8427786/how-to-adjust-image-saturation-in-yuv-color-space

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!