RGB to YUV format

版本 1.0.0.0 (2.0 KB) 作者: Santhana Raj
Converts an image in RGB to YUV with 4:2:2 chroma sampling
1.1K 次下载
更新时间 2014/9/10

查看许可证

The function rgb2yuv converts the RGB matrix of an image to an YUV format matrix for the image. It plots the images, if Plot Flag is equal to 1.
It uses the RGB conversion formula available in Wikipedia. It gives the YUV format in 4:2:2 chroma sampling
Example
file=('<image file path>');
plotflag=1;
RGB = imread(file);
imshow(RGB);
YUV=rgb2yuv(RGB,plot_flag);

Author:Santhana Raj.A
https://sites.google.com/site/santhanarajarunachalam/

引用格式

Santhana Raj (2024). RGB to YUV format (https://www.mathworks.com/matlabcentral/fileexchange/47786-rgb-to-yuv-format), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Image Filtering and Enhancement 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0