- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
hough变换找直线 matlab下能直接运行(The hough transform can run directly under matlab)
hough变换找直线 matlab下能直接运行(The hough transform can run directly under matlab)
First look at the effect, the upper left corner of the original picture, the lower left corner of the line to find, the right picture for the Hough after the transformation
Clc;
Clear;
I=imread (test.bmp);
Imshow (I)
Figure
I=rgb2gray (I);
I_hight=size (I, 1);
I_width=size (I, 2);
% i_edge=edge (I,robert);
I_hough=zeros (600360);
For y=1:i_hight
For x=1:i_width
If I (y, x) ==0% coordinate conversion
For l=1:360
R=x*cos (l*pi/180) +y*sin (l*pi/180);
W=fix (R) +300;% corrected to positive integer
I_hough (W, l) =i_hough (W, l) +1;
End
End
End
End
M=max (max (i_hough));
I_hough= (i_hough./m)% brightness adjustment
Threshold=0.75;% sets the line brightness threshold
Ih_hight=size (i_hough, 1);
Ih_width=size (i_hough, 2);
Temp=zeros (20,20);
Count=0;
For y=1:ih_hight%, look for those straight lines with high brightness
For x=1:ih_width/2
If i_hough (y, x) threshold
Count = count+1;
Temp (count, 1) = x;
Temp (count, 2) = y;
End
End
End
Imshow (I)
Hold on
For i=1:count% painted words
% y=kx+b
K = Tan (Temp (I, 1) *pi/180);
B = (Temp (I, 2) -300) /sin (Temp (I, 1) *pi/180);
For j=1:360
X (J) =j;
Y (J) =-x (J) /k+b;
End
Plot (x, y)
Hold on
End
Axis equal
Figure
Imshow (i_hough)
Heres the theory
The Hough transform is used to find straight lines in images. The principle is simple:
Every point in the line satisfies the normal equation p=x*Cos, theta, +y*Sin, theta (1),
P is the distance from the origin of the linear coordinate system to the straight line. Theta is the angle between the vertical line of the line L and the axis of the X.
In the image X - Y space, there is a one-to-one relationship between a straight line and a polar coordinate space, O, P theta.
Note that this corresponds to one point in the X-Y space, which corresponds to a curve in the polar coordinate space (which can be regarded as a characteristic parameter in the XY space)
Taking advantage of the fact, we can find a straight line.
T
您可能关注的文档
- 膜科技打开迈向绿色工厂通道(Membrane technology open to the green factory channel).doc
- 脸型和眼镜怎样搭配(How do face and glasses match).doc
- 舅舅的人间烟火(Uncle's earthly fireworks).doc
- 航天里面比较好的一些单位(Some of the better units in space).doc
- 航区划分(Navigation area division).doc
- 航海及海运专业词汇英语翻译(J-L22)(English for marine and marine (J-L22)).doc
- 航天金税c++(Golden space c++).doc
- 航空集装箱运输实务(Aviation container transportation practice).doc
- 船舶代理人与无船承运人的区别(The difference between ship agent and NVOCC).doc
- 良好盘感是炒股必备条件--盘感训练方法(Good sense of disk is a prerequisite for stock trading - disk drive training methods).doc
- HLA-DR4基因检测与类风湿关节炎病情的关系(The relationship between hla-dr4 gene detection and rheumatoid arthritis).doc
- Hoffmann征(Hoffmann sign).doc
- hp5000问题解答(Hp5000 questions answered).doc
- HPI,力破绩效难题(HPI, the problem of performance).doc
- HIM服内指令大全(He is in command).doc
- HIS常见问题解决锦集(HIS common problem solving brocade).doc
- HP笔记本电脑的上电时序(The upper current sequence of the HP laptop).doc
- hrhrrrhhr(hrhrrrhhr).doc
- HR在员工职业生涯规划中扮演的角色(HR's role in employee career planning).doc
- HRM实战-绩效管理优秀与平庸的分水岭(HRM combat - performance management the watershed of excellence and mediocrity).doc
最近下载
- 液体伤口敷料产品技术要求标准2023版.docx VIP
- 《水利工程外观质量评定规程DB34∕T 4010-2021》知识培训.pptx VIP
- DLT741-2023年架空送电线路运行规程.docx
- 并网光伏电站项目工程现场电气二次施工方案.doc
- 英语新课标背景下:非纸笔测试在小学英语期末评价中的实践研究.pdf VIP
- 股市实战绝技汇总篇(精华).doc VIP
- 历年行情的十大牛股.doc VIP
- 安徽省六校联考暨安徽六校教育研究会2026届高三入学素质检测-物理试卷答案.docx VIP
- 基于Ansys CFX的风扇叶片双向流固耦合分析.docx VIP
- (高清版)DB1307∕T 334-2020 蛋鸡无抗养殖技术规范.pdf VIP
文档评论(0)