Hi~ 可私信我了解后再进行下载~
本资源上传时,遗漏了两个文件,分别是:data_filter_keep_order_output_index.hdvp 以及 IntensityImageToPiontsCloudImage.hdvp,购买了该资源的同学,给我留言,我会私信发给你们。
1.基于halcon算法平台;
2.提供深度图源文件以及解压密码;
3.代码预览:
*/******************************
* @文档名称: 基于点云的平面度测量。
* @作者: hugo
* @版本: 1.1
* @日期: 2021-6-20
* @描述: 该方法支持点云的平面的平面度测量。
********************************/
dev_update_window ('on')
dev_get_window (WindowHandle)
read_image (imageReal, './replay_38893_2021-6-7.tif')
xResolution:=0.06
yResolution:=0.06
zResolution:=0.001
ScaleFactor:=[xResolution,yResolution,zResolution]
*采样区域1
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)
..........
*平面度
height:=theta/zScale*0.001
*可视化高度差效果
visParamName := ['lut','alpha_0','intensity','color_1']
visParamValue := ['hsi',0.7,'coord_z','yellow']
Labels := ['','平面度:'+height+'mm','']
objs:=[ObjectModel3Ds[2],final_ObjectModel3Ds]
visualize_object_model_3d (WindowHandle, objs, [], [], visParamName, visParamValue, 'Edited by AmazingRobot+', [Labels], '', PoseOut)
*stop ()
clear_object_model_3d (plane_balls)
for Index := 0 to |final_ObjectModel3Ds|-1 by 1
clear_object_model_3d (final_ObjectModel3Ds[Index])
endfor
return ()
谢谢您的信任~