Adjust hue/angle without affecting luminance of YUV image

可紊 提交于 2019-12-11 05:47:44

问题


I am writing a VirtualDub plug-in where there's a requirement to change hue/chroma of image without affecting luminance.

Here's some code:

Pixel32 *dst= fa->dst.data;

int U= (*dst>>16) & 0xff;
int Y= (*dst>> 8) & 0xff;
int V= (*dst    ) & 0xff;

Before converting to RGB, I need to adjust the hue of UV by x angle. UV range is between -0.5 and +0.5. Is there a conversion table/formula/already-written-function to adjust, say, hue, by -45 degrees in the colour space?

来源:https://stackoverflow.com/questions/49916622/adjust-hue-angle-without-affecting-luminance-of-yuv-image

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