poster
2019-12-10, 20:48
如何获得给定的yuv文件的宽度和高度?后续的影片/矩阵处理需要这些尺寸。
回答:
在VIDEOREADER (http://www.mathworks.com/help/techdoc/ref/videoreaderclass.html)的帮助下
%# 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 (http://www.mathworks.com/help/techdoc/ref/aviinfo.html)来查询电影的属性。
更多&回答... (https://stackoverflow.com/questions/3887649)
回答:
在VIDEOREADER (http://www.mathworks.com/help/techdoc/ref/videoreaderclass.html)的帮助下
%# 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 (http://www.mathworks.com/help/techdoc/ref/aviinfo.html)来查询电影的属性。
更多&回答... (https://stackoverflow.com/questions/3887649)