欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 财经 > 金融 > Halcon测量助手

Halcon测量助手

2025/2/23 7:12:02 来源:https://blog.csdn.net/weixin_42291376/article/details/140076944  浏览:    关键词:Halcon测量助手

模糊测量:基于模糊逻辑

模糊逻辑:模仿人脑的不确定性概念判断、推理思维方式,对于模型未知或不能确定的描述系统,以及强非线性、大滞后的控制对象,应用模糊集合和模糊规则进行推理,表达过渡性界限或定性知识经验,模拟人脑方式,实行模糊综合判断,推理解决常规方法难于对付的规则型模糊信息问题。

模糊阈值:选择最小模糊分数的0.1和1之间的值,最终的模糊得分是所有个体得分的几何平均值。

AmplitudeThreshold:=40RoiWidthLen2:=13set_system('int_zooming','true')LineRowStart_Measure_01_0:=191.5LineColumnStart_Measure_01_0:=63LineColumnEnd_Measure_01_0:=1015.5TmpCtrl_Row:=0.5*(LineColumnEnd_Measure_01_0+LineColumnEnd_Measure_01_0)TmpCtrl_Column:=0.5*(LineColumnStart_Measure_01_0+LineColumnEnd_Measure_01_0)TmpCtrl_Dr:=LineRowStart_Measure_01_0-LineColumnEnd_Measure_01_0TmpCtrl_Dc:=LineColumnEnd_Measure_01_0-LineColumnEnd_Measure_01_0TmpCtrl_Phi:=atan2(TmpCtrl_Dr,TmpCtrl_Dc)TmpCtrl_Len1:=0.5*sqrt(TmpCtrl_Dr*TmpCtrl_Dr+TmpCtrl_Dc*TmpCtrl_Dc)TmpCtrl_Len2:=RoiWidthLen2gen_measure_rectangle2 (TmpCtrl_Row, TmpCtrl_Column, TmpCtrl_Phi, TmpCtrl_Len1, TmpCtrl_Len2, 1280, 1024, 'nearest_neighbor', MsrHandle_Measure_01_0)read_image(Image,'D:/Halcon_Study/screw_thread.png')measure_pairs (Image, MsrHandle_Measure_01_0, 3.9, 40, 'all', 'all', Row1_Measure_01_0, Column1_Measure_01_0, Amplitude1_Measure_01_0, Row2_Measure_01_0, Column2_Measure_01_0, Amplitude2_Measure_01_0, Width_Measure_01_0, Distance_Measure_01_0)
* Measure 01: Do something with the results
* Measure 01: Clear measure when done
close_measure (MsrHandle_Measure_01_0)

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词