write frames to a video
来源:互联网 发布:傲世奇侠传java 编辑:程序博客网 时间:2024/05/20 09:44
%# figurefigure, set(gcf, 'Color','white')Z = peaks; surf(Z); axis tightset(gca, 'nextplot','replacechildren', 'Visible','off');[az,el]=view;xl=xlim;yl=ylim;zl=zlim;%# preallocatenFrames = 20;mov(1:nFrames) = struct('cdata',[], 'colormap',[]);%# create moviefor k=1:nFrames view([(az-k*10) el]); xlim(xl);ylim(yl);zlim(zl); drawnow;pause(0.1); mov(k) = getframe(gcf);endclose(gcf)%# save as AVI file, and open it using system video player%writeVideo(mov, 'myPeaks1.avi', 'compression','None', 'fps',10);v = VideoWriter('myPeaks1.avi','Uncompressed AVI');v.FrameRate = 10;open(v);writeVideo(v,mov)close(v);
要设置 video的一些属性请看https://uk.mathworks.com/help/matlab/ref/videowriter.html
Properties
0 0
- write frames to a video
- How to grab video frames directly from QCamera
- use a circular buffer for video frames on iOS
- How to Write a Video Player in Less Than 1000 Lines
- How to Write a Video Player in Less Than 1000 Lines
- Opencv Write Image & Video to File
- To Write A Stack
- An ffmpeg and SDL Tutorial or How to Write a Video Player in Less Than 1000 Lines
- An ffmpeg and SDL Tutorial or How to Write a Video Player in Less Than 1000 Lines
- ios学习--How to capture video frames from the camera as images using AV Foundation
- How to capture video frames from the camera as images using AV Foundation
- How to capture video frames from the camera as images using AV Foundation on iOS
- How to write a Makefile
- How to write a Makefile
- how to write a makefile
- How to Write a Summary?
- How to write a Makefile
- How to write a Makefile
- 儿童应用发展趋势
- zoj3626 Treasure Hunt I 树上DP
- 算法训练 旅行家的预算
- 单例模式
- 领域驱动设计
- write frames to a video
- 哈希表之拉链法
- opencv学习_11 (模板匹配(包括单模板和多模板))
- 简单的单例模式和构造函数
- 如何在Ubuntu上让root帐号可以登录SSH
- POJ 3240 Solution to the n2 − 1 Puzzle 英文少
- mybatis3--2.mybatis入门
- Linux--进程组、会话、守护进程
- 409. Longest Palindrome