资源简介
毕业设计,利用Matlab实现对突变和渐变两种镜头的检测,在镜头分割基础上进行关键帧的提取。在GUI中能观察分割提取的最终结果

代码片段和文件信息
% This funtion takes dissimilarity distribution as input and output the
% shot boundary. It detects the shot cuts with adaptive threshold
% algorithm.
function [cutPosition] = cutDetect(distA)
% model parameter
Td = 5;
w = 20; % the windows size is 2*w
step = 10;
cutPosition = [];
% scan the cuts
i = 1;
while i mid = i;
left = mid - w; % left bound of the window
if left < 1
left = 1;
end
right = i+w; % right bound of the window
if right>size(distA1)
right = size(distA1);
end
% determine whether mid has the max value in the neighbourhood
maxw = max(distA(left:right2));
if distA(mid2) < maxw
maxpos = find(distA(:2)==maxw);
if i i = maxpos(1);
else
i = i+1;
end
continue;
end
% determine whether mid is big enough to be a cut
lmean = mean(distA(left:mid-12));
lstd = std(distA(left:mid-12));
rmean = mean(distA(mid+1:right2));
rstd = std(distA(mid+1:right2));
if distA(mid2)>max(lmean+Td*lstd rmean+Td*rstd)
cutPosition = [cutPosition;distA(mid1)];
end
i = right+1;
end
j = 0;
while i if j > 0
j = j - 1;
continue;
end
if sum(distA(i:i+w/4))-sum(distA(i+step:i+step+w/4)) > ...
sum(dist(i:i+step+w/4))/(step+w/4)
cutPosition = [cutPosition;distA(i+step/21)];
j = step;
end
end
cutPosition = sort(cutPosition);
for i = 1:size(cutPosition)
cutPosition(i2) = distA(cutPosition(i1)-12);
end
return;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1658864 2018-03-30 22:15 Av20204332.mp4
文件 1681 2018-04-15 18:12 cutDetect.m
文件 281 2009-05-28 21:01 EulerDistanceDiff.m
文件 1060 2018-04-01 17:23 getCannyHistogramFeature.m
文件 767 2018-04-16 00:06 getHSVHistogramFeature.m
文件 41136 2018-04-15 17:52 GUI1.fig
文件 12704 2018-04-16 00:14 GUI1.m
文件 4787 2018-04-16 00:07 my_shot_detection.m
文件 941 2018-04-16 00:17 readme.txt
文件 1118338 2018-03-30 20:35 Av3346624.mp4
目录 0 2018-04-15 17:53 参考文献
文件 1398474 2018-04-01 09:26 参考文献\shot_detection.zip
----------- --------- ---------- ----- ----
4239033 12
- 上一篇:小波变换法图像融合MATLAB代码
- 下一篇:MATLAB模拟的电磁学数值技术
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论