目录
拟合函数:DepthMapTransformationPointCloud
-
实现效果
-
显示效果
-
输出结果
-
-
代码
-
主函数:dome.hdev
-
import '.' *从上到下扳手状特征与基准平面的高度差应为 0.2 0.25 0.4 (量测标准块) 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) 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]) *从HALCON窗口中分离现有的图形对象 detach_drawing_object_from_window (WindowHandle, DrawID) stop () *'single':输入区域根据区域个数单独滤波 而不是对整体滤波 输入其他参数将union后再进行滤波 *滤波的目的是去除掉部分异常值 abnormity_filter (image_Gray, Region_Zero, out_RegionZero, 3, 3, 'single') *根据点云形状的不同可以选择不同方向切割 *切片次数越多ct越长 精度越高 in_Select:=[] in_Select[0]:=0 in_Select[1]:=30 //切片次数 in_Select[2]:='x' //切片方向 x y volume_Measurement (image_Height, out_RegionZero, ScaleFactor, in_Select, out_volume, out_Length1, out_Width1, out_Height1)
-
滤波函数:abnormity_filter
-
咸鱼账号 tbNick_mtm4n
-
拟合函数:DepthMapTransformationPointCloud
-
咸鱼账号 tbNick_mtm4n
-
计算函数:volume_Measurement
-
咸鱼账号 tbNick_mtm4n
-
功能函数 :gen_corner_boxs
-
咸鱼账号 tbNick_mtm4n
-