如何在YUV颜色空间中调整图像饱和度 [英] how to adjust image saturation in YUV color space

查看:659
本文介绍了如何在YUV颜色空间中调整图像饱和度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何调整YUV色彩空间中的图像饱和度,特别是U分量和V分量?

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

推荐答案

您可能想缩放U和V分量(使用128的中心点)

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

例如:

U =(U-128)*比例因子)+ 128;

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

V =(V-128)*比例因子)+ 128;

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

(请记住将值限制在有效范围内)

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

这篇关于如何在YUV颜色空间中调整图像饱和度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆