当前位置: 首页 > news >正文

哪个网站可以做代练做网站域名费一般多少钱

哪个网站可以做代练,做网站域名费一般多少钱,net域名 著名网站,百度投放广告利用MATLAB将视频的每一帧保存成一幅图像#xff0c;并自动命名。本文方法简单#xff0c;容易学习。 首先#xff0c;读入视频。代码如下#xff1a; mov VideoReader(xxxxxx.avi); % 将xxxxxx.avi读入MATLAB中#xff0c;并用名为mov的结构体保存 fnum mov.Numbe…利用MATLAB将视频的每一帧保存成一幅图像并自动命名。本文方法简单容易学习。 首先读入视频。代码如下 mov VideoReader(xxxxxx.avi); % 将xxxxxx.avi读入MATLAB中并用名为mov的结构体保存 fnum mov.NumberOfFrames; % 获取视频帧数接下来我们要写一个循环来将视频的每一帧保存成.png格式的图片。代码如下 % 将第i帧写入到xxx文件夹内img_000x.png图片中 imgOrder0; % 图片按顺序编号 for i 1:3:fnum % i从1到fnum, step3Imgread(mov,i); % 读取第i帧每次读取一帧可防止内存不足imwrite(Img,[xxx/img_,sprintf(%04d,imgOrder),.png]) % 将第i帧写入到xxx文件夹内img_000j.png图片, jimgOrderimgOrderimgOrder1; end程序运行结束后会在xxx文件夹中生成fnum/step张图片每一张图片对应视频中相应的一帧。 如果需要做一些预处理如选取感兴趣区域ROI、下采样等可以通过修改倒数第二句话实现 imwrite(Img,[xxx/img_,sprintf(%04d,imgOrder),.png]); % 假设每一帧的原始大小为1920*1080(宽*高)-- imwrite(Img(51:950,151:1550,:),[xxx/img_,sprintf(%04d,imgOrder),.png]); % 选取ROI保存的图像大小为1400*900 -- imwrite(Img(51:2:950,151:2:1550,:),[xxx/img_,sprintf(%04d,imgOrder),.png]); % 选取ROI并下采样保存的图像大小为700*450 相关文档 基于帧间差分法提取视频前景目标的matlab程序 help VideoReader VIDEOREADER Create a multimedia reader object. OBJ VIDEOREADER(FILENAME) constructs a multimedia reader object, OBJ, that can read in video data from a multimedia file. FILENAME is a string specifying the name of a multimedia file. There are no restrictions on file extensions. By default, MATLAB looks for the file FILENAME on the MATLAB path. If the object cannot be constructed for any reason (for example, if the file cannot be opened or does not exist, or if the file format is not recognized or supported), then MATLAB throws an error. OBJ VIDEOREADER(FILENAME, P1, V1, P2, V2, ...) constructs a multimedia reader object, assigning values V1, V2, etc. to the specified properties P1, P2, etc. If an invalid property name or property value is specified, MATLAB throws an error and the object is not created. Note that the property value pairs can be in any format supported by the SET function, e.g. parameter-value string pairs, structures, or parameter-value cell array pairs. Example: % Construct a multimedia reader object associated with file xylophone.mpg with % user tag set to myreader1. readerobj VideoReader(xylophone.mpg, tag, myreader1);% Read in all video frames. vidFrames read(readerobj); % 此句会消耗大量内存易导致计算机内存不足% Get the number of frames. numFrames get(readerobj, numberOfFrames);% Create a MATLAB movie struct from the video frames. for k 1 : numFramesmov(k).cdata vidFrames(:,:,:,k);mov(k).colormap []; end% Create a figure hf figure; % Resize figure based on the videos width and height set(hf, position, [150 150 readerobj.Width readerobj.Height])% Playback movie once at the videos frame rate movie(hf, mov, 1, readerobj.FrameRate);doc VideoReader Use the VideoReader function with the read method to read video data from a file into the MATLAB workspace. The file formats that VideoReader supports vary by platform, as follows (with no restrictions on file extensions): All Platforms: Motion JPEG 2000 (.mj2) Windows: AVI (.avi), MPEG-1 (.mpg), Windows Media Video (.wmv, .asf, .asx), and any format supported by Microsoft DirectShow. Macintosh: AVI (.avi), MPEG-1 (.mpg), MPEG-4 (.mp4, .m4v), Apple QuickTime Movie (.mov), and any format supported by QuickTime as listed on http://www.apple.com/quicktime/player/specs.html. Linux: Any format supported by your installed plug-ins for GStreamer 0.10 or above, as listed on http://gstreamer.freedesktop.org/documentation/plugins.html, including AVI (.avi) and Ogg Theora (.ogg). For more information, see Supported Video File Formats in the MATLAB Data Import and Export documentation 参考文献 [1] MATLAB将视频保存成图像-百度经验 [2] matlab帮助文档
http://www.pierceye.com/news/693659/

相关文章:

  • 交互式网站开发技术全国企业信用公示信息公示网官网
  • 大连网站设计公司排名班级优化大师的功能有哪些
  • 旅游网站建设的概念ppt模板自己制作
  • 重庆网站建设首选承越网站开发建设方案
  • 创建一个网站的费用网站服务器租用报价
  • 潍坊企化网站建设大型免费网站制作
  • 松原网站制作网页制作的基本步骤流程
  • 太原网站建设制作机构西安网络seo公司
  • 移动网站建设报价表抖音代运营商
  • 镇平县两学一做网站服装网站建设推荐
  • 苏州建网站的公wordpress添加侧栏广告
  • 企业商城网站 .networdpress模板作者怎样去除
  • 强生网站还要怎样做衡水网站推广的网络公司
  • 茂名建站公司南通长城建设集团有限公司网站
  • 网络平台怎么建立网站吗做暧暧视频网站安全吗
  • 免费域名x网站网站前期准备工作
  • 陕西网站建设公司排名智能优化网站
  • 做瞹瞹网站萍乡做网站的公司有哪些
  • 网站建设的类型有几种wordpress搜索返回页面内容
  • 建设网站备案与不备案区别招远建网站首选公司
  • 四川住房和城乡建设厅网站三类人员软文网站备案如何查询
  • 个人与企业签订网站开发合同网页制作教程实例
  • 做网站遇到竞争对手怎么办wordpress中文版邮件发送
  • 美橙互联旗下网站渐变网站
  • 做网站域名需要在哪里备案微信答题小程序
  • 购物网站页面布局个人站长做导航网站
  • wordpress 增强编辑器网站暂时关闭 seo
  • 重庆网站设计开发培训广西省住房和城乡建设厅官网
  • 购物网站模板免费下载网站排名快速提升工具
  • 中山制作网站的公司滨江区网站开发公司