movie resolution using getframe
古いコメントを表示
hello.
I have a problem for generate a HD resolution movie (1920x1200) but as the computer monitor do not have HD resolution i cant using getframe function because each frame is the size of window plot (max resolution of computer monitor (1680x1050) and not as defined. for exemplo:
scrsz = get(0,'ScreenSize'); %getting the screensize of the 1 screen
figure('Position',[1 0 1920 1200],'MenuBar','none','ToolBar','none','resize','off') % fullscreen
% Prepare the new file.
vidObj = VideoWriter('peaks.avi');
open(vidObj);
% Create an animation.
Z = peaks; image(Z);
axis tight
set(gca, 'CLim',[0,1],'position',[0 0 1 1],'Visible','off')
for k = 1:20
imagesc(sin(2*pi*k/20)*Z),colormap jet
% Write each frame to the file.
currFrame = getframe;
writeVideo(vidObj,currFrame);
end
% Close the file.
close(vidObj);
So, the generated movie peaks.avi have a resolution of computer monitor and not (1920x1200).
what i do? exist other way to generate a movie without need plot a figure (using getframe)?
thank...
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!