YUY2 to RGB converter

版本 1.1.0.0 (1.2 KB) 作者: Gabi Teodoru
Converts the YUY2 input from my Logitech camera to RGB. Might be same the as YUV to RGB converter.
3.7K 次下载
更新时间 2010/2/12

查看许可证

Converts the YUY2 input from my Logitech camera to RGB. Might be same the as YUV to RGB converter.

If you need this file for processing video input from your camera, here's an alternate way (which I haven't tested). Quoting Lautaro Camona (http://www.mathworks.com/matlabcentral/newsreader/view_thread/263490#716245):

"I recently had the same problem, my webcam takes only the YUY2 format...
I solved this problem doing this:

%1st you set the camera to use.
%'camera' is the DeviceID of your camera.

vinfo = imaqhwinfo('winvideo',camera);

%Then you set the video object 'vid', where 'camera' is the DeviceID of your camera.
%'format' is the index which specifies one of the YUY2 formats of your camera.

vid = videoinput('winvideo',camera,vinfo.SupportedFormats{format});

%Finally, you set the ReturnedColorSpace as RGB!

set(vid,'ReturnedColorSpace','rgb'); %<----- This is the command!!!!"

引用格式

Gabi Teodoru (2024). YUY2 to RGB converter (https://www.mathworks.com/matlabcentral/fileexchange/26249-yuy2-to-rgb-converter), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Convert Image Type 的更多信息
致谢

启发作品: image effect

Community Treasure Hunt

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

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

Referenced comment from (http://www.mathworks.com/matlabcentral/newsreader/view_thread/263490#716245) about getting in rgb data directly

1.0.0.0