dxVideo
所属分类:matlab编程
开发工具:matlab
文件大小:17KB
下载次数:31
上传日期:2009-11-05 17:17:06
上 传 者:
marwaz_18
说明: This library contains helper functions to read image frames into matlab from Video
file using DirectShow. This library has borrowed codes from Ashwin Thangali s
"DirectShow (DirectX) based AVI file reader", and it can read multiple video formats besides avi.
Features:
a) can read frames from rmvb, avi, etc.
b) handles most codecs installed on the system
d) its implementation is only based on the IMediaDet interface
-- Depending on your Matlab version, the .mexw32 files may need to be renamed as .dll
-- The library usage is as follows,
[avi_hdl, avi_inf] = dxVideoOpen(avi_filename)
pixmap = dxVideoReadMex(avi_hdl, frame_num)
img = reshape(pixmap,[avi_inf.Height,avi_inf.Width,3])
dxVideoCloseMex(avi_hdl)
-- recompile the library
I have compiled the code with the DirectShow lib in Microsoft DirectX 9.0 SDK Update (December 2004)
-- known limitation
a)only works for windows :(
b)may be slow for big image frames and some codecs.
文件列表:
dxVideoCloseMex.cpp (282, 2007-08-07)
dxVideoCloseMex.mexw32 (6656, 2007-08-08)
dxVideoHelper.h (2849, 2007-08-08)
dxVideoOpen.m (185, 2007-08-07)
dxVideoOpenMex.cpp (907, 2007-08-07)
dxVideoOpenMex.mexw32 (10752, 2007-08-08)
This library contains helper functions to read image frames into matlab from Video
file using DirectShow. This library has borrowed codes from Ashwin Thangali's
"DirectShow (DirectX) based AVI file reader", and it can read multiple video formats besides avi.
Features:
a) can read frames from rmvb, avi, etc.
b) handles most codecs installed on the system
d) its implementation is only based on the IMediaDet interface
-- Depending on your Matlab version, the .mexw32 files may need to be renamed as .dll
-- The library usage is as follows,
[avi_hdl, avi_inf] = dxVideoOpen(avi_filename);
pixmap = dxVideoReadMex(avi_hdl, frame_num);
img = reshape(pixmap,[avi_inf.Height,avi_inf.Width,3]);
dxVideoCloseMex(avi_hdl);
-- recompile the library
I have compiled the code with the DirectShow lib in Microsoft DirectX 9.0 SDK Update (December 2004)
-- known limitation
a)only works for windows :(
b)may be slow for big image frames and some codecs.
Have Fun!
Wang Lei -- Aug 2007
wanglei.stone@gmail.com
近期下载者:
相关文件:
收藏者: