extractframes.m
来自「Video IO toolbox for matlab. 用directsho」· M 代码 · 共 17 行
M
17 行
% Script to create the frames/ subdirectory. The data in that directory is
% used to test the 'load' and 'imread' plugins.
%
% Normal users will likely have no need to directly call this function.
N = 100;
if ~exist('frames','dir') || length(dir('frames')) < N
ienter;
mkdir('frames');
for i=0:N-1,
frame = genTestFrame(320,240,i,N);
imwrite(frame, sprintf('frames/numbers.%04d.png', i));
save(sprintf('frames/numbers.%04d.mat', i), 'frame');
end
iexit;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?