loadvideomat.m

来自「a matlab code on duper resolution」· M 代码 · 共 11 行

M
11
字号
% Loads the given MAT file which contains a video file
% If the video is a color image, then it is converted to gray
function M=LoadVideoMat(filename)

s=load(filename);
s=struct2cell(s);
M=double(s{1});

if (length(size(M))==4)
  M=squeeze(M(:,:,1,:));
end

⌨️ 快捷键说明

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