Hi~ 可私信我了解后再进行下载~
1.基于
halcon算法平台;
2.提供深度图源文件以及解压密码;
3.代码预览:
*
read_image (imageReal,
'https://blog.csdn.net/weixin_40355340/article/details/replay_38893_2021-6-7.tif
')
xResolution:=0.06
yResolution:=0.06
zResolution:=0.001
ScaleFactor:=[xResolution,yResolution,zResolution]
*深度图装点云
IntensityImageToPiontsCloudImage_0 (imageReal, ScaleFactor, 1, ObjectModel
3D, scale)
*创建
3DROI
........
*
ROI区域
create_drawing_object_rectangle2 (270, 270, rad(90), 30, 20, DrawID)
set_drawing_object_params (DrawID,
'color
',
'yellow
')
set_drawing_object_params (DrawID,
'line_width
', 1)
attach_drawing_object_to_window (WindowHandle, DrawID)
stop ()
dev_set_color (
'yellow
')
get_drawing_object_params (DrawID, [
'row
',
'column
',
'phi
',
'length1
',
'length2
'], GenParamValue)
gen_rectangle2 (Rectangle,GenParamValue[0], GenParamValue[1], GenParamValue[2], GenParamValue[3], GenParamValue[4])
detach_drawing_object_from_window (WindowHandle, DrawID)
*生成
3DROI
gen_
3d_
roi (Rectangle, TriangulatedObjectModel
3D, CameraParam, Pose, scale, WindowHandle, ObjectModel
3D)