⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dofullread.m

📁 Video IO toolbox for matlab. 用directshow做的
💻 M
字号:
function images = doFullRead(varargin)%IMAGES=DOFULLREAD(...)%  Reads in an entire video into a 3D array where only the red channel is %  retained (just to make it easier).%%  Any arguments given are passed directly to the videoReader constructor.%%Examples:%  imgs = doFullRead;%  imgs = doFullRead('ffmpegPopen2');  % linux & similar%  imgs = doFullRead('ffmpegDirect');  % ...if system's gcc is compatible w/ Matlab's%  imgs = doFullRead('DirectShow');    % Windows%%Copyright (c) 2006 Gerald Dalley%See "MIT.txt" in the installation directory for licensing details (especially%when using this library on GNU/Linux). ienter('>>> doFullRead(''%s'',...)', varargin{1});vr = videoReader(varargin{:});info = getinfo(vr);images = uint8(zeros(info.height,info.width,info.numFrames));i=1;while (next(vr))  img = getframe(vr);  images(:,:,i) = img(:,:,1);  %imshow(img); drawnow; pause(0.001);  i = i+1;endvr = close(vr);iexit('<<< doFullRead(''%s'',...)', varargin{1});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -