?? read_video.m
字號:
function [Y,U,V]=read_video(filename,height,width,length)
fid=fopen(filename,'r');
e=fread(fid);
fclose(fid);
t=1;
for k=1:1:length
for i=1:1:height
for j=1:1:width
Y(i,j,k)=e(t);
t=t+1;
end
end
for i=1:1:(height/2)
for j=1:1:(width/2)
U(i,j,k)=e(t);
t=t+1;
end
end
for i=1:1:(height/2)
for j=1:1:(width/2)
V(i,j,k)=e(t);
t=t+1;
end
end
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -