开发者

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?

开发者 https://www.devze.com 2023-01-19 00:19 出处:网络
How to get the wid开发者_Go百科th and height of a given yuv file? The dimensions are needed for subsequent movie/matrix processing. From the help of VIDEOREADER

How to get the wid开发者_Go百科th and height of a given yuv file? The dimensions are needed for subsequent movie/matrix processing.


From the help of VIDEOREADER

%# create reader object (does not load file yet)
xyloObj = VideoReader('xylophone.mpg');

%# query dimensions
nFrames = xyloObj.NumberOfFrames;
vidHeight = xyloObj.Height;
vidWidth = xyloObj.Width;

EDIT

For older versions of Matlab, you can use AVIINFO to query the properties of a movie.

0

精彩评论

暂无评论...
验证码 换一张
取 消