Analyse of MV Field by Matlab
来源:互联网 发布:网络歌手麦子 编辑:程序博客网 时间:2024/04/19 05:53
% Function: Draw arrow array for motion vector field.% Input: % fn: Filename% Output:% pic:Arrow array picture.%author:Chen Yu%school:Carnegie Mellon Universityfunction DarwMVField(fn) fid=fopen(fn,'r'); if(fid == -1) disp('Open Fail'); else ArrayData = fscanf(fid, '%d'); Len = length(ArrayData); %temp = zeros(ArrayData(1),ArrayData(2)); MVField = cat(2); for i = 1:ArrayData(1) for j = 1:ArrayData(2) for k = 1:2 MVField(i,j, k) = ArrayData(2*((i - 1)*ArrayData(2) + j) + k); end end end %{ for i = 1:(ArrayData(1)/2) temp1 = MVField(i,:, 1); MVField(i,:, 1) = MVField(ArrayData(1)+1-i,:,1); MVField(ArrayData(1)+1-i,:,1) = temp1; temp2 = MVField(i,:, 2); MVField(i,:, 2) = MVField(ArrayData(1)+1-i,:,2); MVField(ArrayData(1)+1-i,:,2) = temp2; end %} % (55, 40) = (x, y) [X, Y] = meshgrid(1:1:ArrayData(2), 1:1:ArrayData(1)); %[X, Y] = meshgrid(1:1:150, 1:1:150); hold on ; % 开启图形保持 xlabel('x'); ylabel('y'); title('Motion Vector Field') set(gca,'XLim',[0 ArrayData(2)]) set(gca,'YLim',[0 ArrayData(1)]) set(gca,'YDir','reverse') quiver(X,Y,MVField(1:ArrayData(1),1:ArrayData(2),1),MVField(1:ArrayData(1),1:ArrayData(2),2)); % 绘制梯度场 contour(X,Y,MVField(1:ArrayData(1),1:ArrayData(2),1),MVField(1:ArrayData(1),1:ArrayData(2),2)); endend
http://rejessica.blog.163.com/blog/static/183563151201341895656605/
http://blog.sina.com.cn/s/blog_64314dc60100y95w.html
http://blog.sina.com.cn/s/blog_3ecbcc070102v6xt.html
http://www.ilovematlab.cn/thread-140510-2-1.html
http://jingyan.baidu.com/article/63f236282b25090208ab3da5.html
XY Label:
http://zhidao.baidu.com/question/171915595.html
Inverse Axis:
http://blog.csdn.net/wadefelix/article/details/1882579
Two Demension Colorful Picture:
http://emuch.net/html/201005/2074182.html
Streamline:
http://blog.sina.com.cn/s/blog_3ecbcc070102v6xt.html
Colorful Arrows:
http://blog.sina.com.cn/s/blog_64314dc60100y95w.html
http://rejessica.blog.163.com/blog/static/183563151201341895656605/
- Analyse of MV Field by Matlab
- could not get a field value by reflection getter of
- [Matlab]Attempt to reference field of non-structure array
- Analyse This Plugin For Immunity by vinnie
- Analyse the Booting process of Linux Kernel
- order by field()
- Pig distinct by field
- org.hibernate.propertyaccessexception could not get a field value by reflection getter of
- matlab 2013a 出现Attempt to reference field of non-structure array
- Louis Vuitton wallet M93561 Shenyang lack of high-rise fire caused by a high majority of gun fire useless field
- Bit field of struct
- Depth of Field Math
- Field of view
- Codeforces883E-Field of Wonders
- 积分图像matlab实现(The implementation of integral image by matlab)
- DSS Source Code Analyse (13) - Schedule of TCPListenerSocket object
- DSS Source Code Analyse (14) - TimeoutEvent Process of Task
- DSS Source Code Analyse (15) - KillEvent Process of Task
- iOS调试错误 linker command failed with exit code 1 (use -v to see invocation)
- hdu 1181 深度优先搜索遍历
- 函数原型将看起来像这样
- EJB详解
- 浅写重写ViewGroup和View(未完)
- Analyse of MV Field by Matlab
- 大大集团怀化市公司组织开展党建工作培训
- 股骨头坏死的治疗方法
- 如何搭建SoC项目的基本Testbench
- mysql 指导
- java中文本框和文本区
- Choreographer源码
- IOS的ScrollView使用方法(教你超出部分怎么玩)
- 关于CocoaPods的使用小说明