YUVtoRGB RGB to YUV color convert formulas - ITU 601
来源:互联网 发布:js unselectable 编辑:程序博客网 时间:2024/05/17 21:38
1. for computer system, the YUV and RGB range are [0~255] using 8bit to show.
int clip_int ( int value ) { return (value > 255) ? 255 : (value <0) ? 0 : value; }
RGB to YUV:
int y = clip_int(y);
int u = clip_int(u);
int v = clip_int(v);
using the float , the RGB to YUV convert formula :
iy = (65.738 * r + 129.057*g + 25.064*b) / 256 + 16;
iu = (-37.945*r - 74.494*g + 112.439*b) / 256 + 128;
iv = (112.439*r - 94.154*g - 18.285*b) / 256 + 128;
or
y = (0.2568*r + 0.5041*g + 0.0979*b) + 16;
u = (-0.1482*r - 0.2910*g + 0.4392*b) + 128;
v = (0.4392*r -0.3678*g - 0.0714*b) + 128;
计算机中可以使用
2. YUV to RGB
r = 1.1644*y + 1.5960*v - 16;
g = 1.1644*y - 0.3918*u - 0.8130*v - 128;
b = 1.1644*y + 2.0172*u - 128;
- YUVtoRGB RGB to YUV color convert formulas - ITU 601
- Convert jQuery RGB output to Hex Color
- Android OpenGL es GPUImage convert YUV to RGB
- Csharp: Winform 顏色選擇器 Color convert RGB and RGB convert Color
- Csharp: Winform 顏色選擇器 Color convert RGB and RGB convert Color
- RGB TO YUV (ZT)
- YUV to RGB Conversion
- YUV to RGB optimization
- yuv to rgb
- YUV to RGB Conversion
- convert RGB to HLS
- Convert RGB to L*a*b* (Lab Color space) in OpenCV
- rgb to yuv 互相转化
- RGB "Bayer" Color and MicroLenses, convertion between RGB and YUV
- RGB HSL Conversion formulas
- 【Compute Vision】【Color】图像RGB与YUV转换优化
- YUVtoRGB
- YUV to RGB convertion by fragment shader
- HDU3939 Sticks and Right Triangle 毕达哥拉斯三元组+容斥原理
- Merge k Sorted Lists 合并多个链表 归并 vector/copy
- 在myeclipse中用maven进行项目的打包时出现内存泄露问题
- 最常用的SAT数学题解答方法分享
- 通用顶部自定义控件 可在XML自定义属性
- YUVtoRGB RGB to YUV color convert formulas - ITU 601
- linux 命令之tcpdump
- Java Clob类型转String类型
- 如何使用Python 打开exel等各种文件或者应用,就用:os.startfile
- 第十六周项目1-平方根中的异常
- Audio Streaming mit UDP in C
- Eclipse 中设置JVM 内存及JVM监控调优
- android listview 异步加载图片并防止错位
- 微软100题(94)找出数组中长度最长的等差数列