Hough变换原理图

来源:互联网 发布:狄克斯特拉算法缺点 编辑:程序博客网 时间:2024/05/17 09:03

为了解释霍夫变换原理,绘制三条曲线,主要代码如下

x1 = 1;y1=9;x2=5;y2=6;x3=9;y3=3;t = -pi/2:0.1:pi/2r1 = x1*cos(t)+y1*sin(t);r2 = x2*cos(t)+y2*sin(t);r3 = x3*cos(t)+y3*sin(t);plot(t,r1,'r');hold on;plot(t,r2);plot(t,r3);hold off;%text(x1,y1,'r=x_{1}cos\theta+y_{1}sin\theta');

绘制完成后,鼠标操作修改下线型,截图到visio中,加上坐标轴,mathtype公式截图到visio中
完成结果图
这里写图片描述

这里写图片描述

0 0
原创粉丝点击