- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
harris角点检测与ncc匹配(Harris point detection and NCC match)
harris角点检测与ncc匹配(Harris point detection and NCC match)
Harris corner detection and NCC matching
File1:--------------------------------------------------------------------------------------
Function, [y1, Y2, R, c]=harris (X)
% corner detection using the Harris algorithm
% output is an image
% [result, CNT, R, c]=harris (X)
% CLC, clear all;
% filename=qiao1.bmp;
% X= imread (filename.bmp);% reads the image
% Info=imfinfo (filename);%; this is customary
% f=rgb2gray (X);
F=X;
%
Ori_im=double (f) /255;%unit8 is converted to 64 double precision double64
FX = [-2, -1 01, 2],% X direction gradient operator (for Harris corner extraction algorithm)
Ix = Filter2 (FX, ori_im);% x directional filtering is good at using filter
% FY = [5 85; 000; -5, -8, -5];% Gauss function, first order differential, Y direction (for improved Harris corner extraction algorithm)
FY = [-2; -1; 0; 1; 2];% Y direction gradient operator (used in Harris corner extraction algorithm)
Iy = Filter2 (FY, ori_im);% y directional filtering
Ix2 = Ix.^2;
Iy2 = Iy.^2;
Ixy = Ix.*Iy;
Clear Ix;
Clear Iy =% elimination variable ha
H=, fspecial (gaussian, [10, 10], 2);% produces Gauss window functions of 7*7, sigma=2
Ix2 = Filter2 (h, Ix2);
Iy2 = Filter2 (h, Iy2);
Ixy = Filter2 (h, Ixy);% Gauss filtering, respectively
Height = size (ori_im, 1);
Width = size (ori_im, 2);
Result = zeros (height, width);% record corner position, corner value is 1, background is black ha
R = zeros (height, width);
Rmax = 0;% the maximum R value in the image in order to set the threshold
For I = 1:height
For J = 1:width
M = [Ix2 (I, J), Ixy (I, J); Ixy (I, J), Iy2 (I, J)];%2*2 matrix
R (I, J) = det (M) -0.06* (trace (M)) ^2;% calculates R and obtains RMAX, which appears to be the whole, and the corner response function
If R (I, J) Rmax
Rmax = R (I, J);
End;
End;
End;
CNT = 0;% record count
For I = 2:height-1
For J = 2:width-1% carry on non maximum suppression, window 3*3
If R (I, J) 0.01*Rmax R (I, J) R (i-1, J-1) and R (I, J) R
您可能关注的文档
- 胶州公交路线(Jiaozhou bus route).doc
- 脉冲修复铅酸蓄电池硫化的基本原理(Basic principle of pulse repair lead-acid battery).doc
- 脉搏与医务监督(Pulse and medical supervision).doc
- 脉管炎注意事项 脉管炎的治疗 脉管炎医院(Vasculitis, precautions, treatment of vasculitis, vasculitis hospital).doc
- 脊柱运动的生物力学基础(Biomechanical basis of spinal movement).doc
- 脊柱定位(Spinal localization).doc
- 脊柱锻炼的基本方法与动作要领(The basic method and action essentials of spine exercise).doc
- 脊髓损伤神经功能评定(Spinal cord injury, neurological function, evaluation).doc
- 脚手架和模板设计(Scaffolding and formwork design).doc
- 脚手架工程量计算规则(Rules for calculation of scaffolding quantities).doc
- G指令M指令(G instruction M instruction).doc
- hakka客家话(Hakka hakka).doc
- have用法(Have the usage).doc
- here (柳切or切柳)BY翾愔(Here (liu cutting or cutting) BY Xuan Yin).doc
- hello!!doctor(医生你好!).doc
- HFSS边界条件(HFSS boundary conditions).doc
- Hibernate 条件匹配模式搜索(Hibernate conditional match mode search).doc
- hough变换找直线 matlab下能直接运行(The hough transform can run directly under matlab).doc
- HLA-DR4基因检测与类风湿关节炎病情的关系(The relationship between hla-dr4 gene detection and rheumatoid arthritis).doc
- Hoffmann征(Hoffmann sign).doc
最近下载
- 2025年高考体育单招考试政治主观题知识点归纳总结(复习必背).docx VIP
- 三年级数学上册教案 认识分数 (西师大版).doc VIP
- 烧结生产技术工艺、设备、经济指标汇总.doc VIP
- TheMechanic《机械师(2011)》完整中英文对照剧本.docx VIP
- 罗宾斯管理学第15版中文版.pptx VIP
- 高中生物人工智能辅助实验教学设计与实践教学研究课题报告.docx
- 第01讲 直线的方程(九大题型)(练习)(有解析).docx
- 2025高考物理专题培优(1-17讲)PDF版.pdf VIP
- (完整版)中医适宜技术课件.ppt VIP
- 碟中谍(英文剧本完整版).doc VIP
文档评论(0)