Generate Path Given Depth Map

You are currently viewing the documentation for the latest version (2.2.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

Function

This Step generates inward spiraling path’s targets based on an object’s point cloud edge and depth map.

Usage Scenario

This Step is generally used for gluing the edges of flat objects.

Input and Output

Input

Input port Data type Description

Object Mask

Image/Color/Mask

A mask image of the object input at this port is used to determine the object’s contour range.

Scene Depth Map

Image/Depth

A depth map of the scene input at this port is used to obtain surface depth information of the object.

Object Point Cloud (with normals if by contours and usePointNormal)

PointCloud/XYZNormal

A point cloud of the target object input at this port is used to compute the normal vector direction of path target points.

Output

Output port Data type Description

Transformed Model Point Cloud

Pose []

A list of target points for the generated path.

Parameter Description

Parameter Description

Trajectory Generation Method

Parameter description: This parameter is used to set the method to generate the waypoints of the path.

Value list:

  • ByCorners: Generate path target points according to contour corners.

  • ByContours: Generate path target points according to the complete contour.

  • ByContourAndCorner: Generate path target points by combining contour and corners.

Default value: ByCorners.

Trajectory Settings

Parameter Description

Erosion Scale

Parameter description: This parameter is used to set the scaling value (px) for erosion on object masks when generating the path.
Default value: 1.0000.

Erode Kernel Size

Parameter description: This parameter is used to set the kernel size for erosion on object masks during path generation.
Default value: 30.000 mm.

Sample Distance

Parameter description: This parameter is used to specify the sampling distance in the generated path. The unit is pixels.
Default value: 30 px.

Final Point Distance Redundancy Ratio

Parameter description: This parameter is used to set the redundancy of the most important distance in generating the path.
Default value: 0.5000.

Corner Sorting Settings

Parameter Description

Pose Sorting Strategy

Parameter description: This parameter is used to set the strategy for sorting the corners.

Value list:

  • NONE: Not sorted.

  • SORT_BY_X: Sort by X coordinate.

  • SORT_BY_Y: Sort by Y coordinate.

  • SORT_BY_DIS2ORIGIN: Sort by the distance to the origin.

Default value: NONE.

Ascending

Parameter description: This parameter is used to set the sorting direction. When this parameter is selected, it will be sorted in ascending order, and when this parameter is not selected, it will be sorted in descending order.
Default value: selected.

Corner Detection

Parameter Description

Confidence

Parameter description: This parameter is used to set the confidence threshold for corner detection. A larger value indicates a higher quality requirement for the detected corners.
Default value: 0.0100.

Min Corner Distance

Parameter description: This parameter is used to set the minimum allowable distance (in pixels) between neighboring corners. Corners with distances smaller than this value will be merged or filtered.
Default value: 10.0000.

Max Corner Num

Parameter description: This parameter is used to set the upper limit of the number of detected corners. The excess points will be discarded.
Default value: 4.

Block Size

Parameter description: This parameter is used to set the block size for corner detection.
Default value: 5.

Use Harris Detector

Parameter description: This parameter is used to determine whether to use the Harris detector to detect corners. Once this option is selected, you will need to set the K value.
Default value: Unselected.

K

Parameter description: This parameter is used to set the response coefficient K of the Harris detector.
Default value: 0.0400.

Sub-pixel Corner Extraction Window Size

Parameter description: This parameter is used to set the window size for extracting sub-pixel corners.
Default value: 10.

Sub-pixel Corner Extraction Iteration Num

Parameter description: This parameter is used to set the maximum number of iterations for extracting sub-pixel corners.
Default value: 20.

Sub-pixel Corner Accuracy

Parameter description: This parameter is used to set the accuracy requirement for extracting sub-pixel corners.
Default value: 0.0300.

Point Validation Settings

Parameter Description

Max Point Distance

Parameter description: This parameter is used to set the maximum distance between points in the search area and waypoints when generating waypoints.
Default value: 5.000 mm.

Depth Validation Settings

Parameter Description

Depth Search Radius

Parameter description: This parameter is used to set the search radius of depth pixels between points in the search area and waypoints when generating waypoints.
Default value: 2 px.

Blending Settings

Parameter Description

Blend Trajectory

Parameter description: Use smoothing to ensure accurate corner position.

Default value: selected.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.