大家好,欢迎来到IT知识分享网。
目录
拟合函数:DepthMapTransformationPointCloud
-
实现效果
-
显示效果
-
输出结果
-
-
代码
-
主函数:dome
-
import '.' gen_image_surface_first_order (Image, 'real', 1, 0, 0, 0, 0, 90, 90) dev_update_window ('on') dev_get_window (WindowHandle) read_image (image_Height, '1H.tif') read_image (image_Gray, '1G.tif') *3D相机x, y, z分辨率 xResolution:=0.1024 yResolution:=0.1024 zResolution:=0.0008 ScaleFactor:=[xResolution,yResolution,zResolution] dev_display (image_Gray) *采样区域_基准区域 create_drawing_object_rectangle2 (300, 120, rad(90), 30, 20, DrawID) set_drawing_object_params (DrawID, 'color', 'forest green') set_drawing_object_params (DrawID, 'line_width', 1) attach_drawing_object_to_window (WindowHandle, DrawID) *采样区域_测量区域 create_drawing_object_rectangle2 (300, 120, rad(90), 30, 20, DrawID2) set_drawing_object_params (DrawID2, 'color', 'red') set_drawing_object_params (DrawID2, 'line_width', 1) attach_drawing_object_to_window (WindowHandle, DrawID2) stop () *获取基准区域的参数并生成区域 get_drawing_object_params (DrawID, ['row','column','phi','length1','length2'], GenParamValue) gen_rectangle2 (Region_Zero,GenParamValue[0], GenParamValue[1], GenParamValue[2],\ GenParamValue[3], GenParamValue[4]) *获取测量区域的参数并生成区域 get_drawing_object_params (DrawID2, ['row','column','phi','length1','length2'], GenParamValue2) gen_rectangle2 (Region_Delete,GenParamValue2[0], GenParamValue2[1], GenParamValue2[2], \ GenParamValue2[3], GenParamValue2[4]) *从HALCON窗口中分离现有的图形对象 detach_drawing_object_from_window (WindowHandle, DrawID) detach_drawing_object_from_window (WindowHandle, DrawID2) stop () *'single':输入区域根据区域个数单独滤波 而不是对整体滤波 输入其他参数将union后再进行滤波 *滤波的目的是去除掉部分异常值 abnormity_filter (image_Gray, Region_Zero, out_RegionZero, 3, 3, 'single') abnormity_filter (image_Gray, Region_Delete, out_RegionDelete, 3, 3, 'single') *计算代码 difference_height (image_Height, out_RegionZero, out_RegionDelete, ScaleFactor,\ out_MaxValue, out_MeanValue, out_MinValue, out_Result)
-
滤波函数:abnormity_filter
- 咸鱼账号 tbNick_mtm4n
-
拟合函数:DepthMapTransformationPointCloud
- 咸鱼账号 tbNick_mtm4n
-
计算函数:difference_height
咸鱼账号 tbNick_mtm4n
-
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/156954.html