![](/img/trans.png)
[英]How to extract frames from yuv 420 video clip and store them as different images, using matlab?
[英]How do I obtain the height and width of a given YUV video clip under Matlab? Is there any reader() function or get() function? Anything else?
如何获得给定的yuv文件的宽度和高度? 后续的影片/矩阵处理需要这些尺寸。
在VIDEOREADER的帮助下
%# create reader object (does not load file yet)
xyloObj = VideoReader('xylophone.mpg');
%# query dimensions
nFrames = xyloObj.NumberOfFrames;
vidHeight = xyloObj.Height;
vidWidth = xyloObj.Width;
编辑
对于较旧的Matlab版本,可以使用AVIINFO来查询电影的属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.