【图像处理】Matlab实现视频处理系统

 1 简介

针对学生在学习"数字图像处理"等课程中感觉抽象,难理解的问题,在Matlab的环境下,基于GUI设计了一套信号处理仿真系统.该系统涵盖数字图像处理的经典方法,包括图像的基本运算,图像的增强,图像变换,图像边缘提取,图像滤波等,集运动目标检测,运动目标跟踪于一体.该系统参数调节灵活,系统扩展方便,而且可转化为.exe可执行文件,脱离Matlab环境运行,方便辅助教学.​

2 部分代码

function Video2Images(videoFilePath)clc;nFrames = GetVideoImgList(videoFilePath);function nFrames = GetVideoImgList(videoFilePath)xyloObj = VideoReader(videoFilePath);nFrames = xyloObj.NumberOfFrames;video_imagesPath = fullfile(pwd, 'video_images');if ~exist(video_imagesPath, 'dir')    mkdir(video_imagesPath);endfiles = dir(fullfile(video_imagesPath, '*.jpg'));if length(files) == nFrames    return;endh = waitbar(0, '', 'Name', '获取视频图像序列...');steps = nFrames;for step = 1 : nFrames    temp = read(xyloObj, step);    temp_str = sprintf('%s\\%03d.jpg', video_imagesPath, step);    imwrite(temp, temp_str);    pause(0.01);    waitbar(step/steps, h, sprintf('已处理:%d%%', round(step/nFrames*100)));endclose(h)

3 仿真结果

4 参考文献

[1]齐玉娟, 王延江. 基于Matlab GUI的图像和视频处理仿真系统设计[J]. 实验技术与管理, 2019, 36(03):152-155.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

matlab科研助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值