Align Point Cloud to Line

Description

This operator is used to align the input point cloud to a specified mathematical line. It iterates through each input point cloud and each line model, filters out point cloud points that are close enough to the line based on the set "Line Thickness" parameter, and then accurately projects these points onto the mathematical line, finally generating one or more line point clouds composed of these projected points.

Overview

Aligns linear point clouds to a specified line.

Scenarios

  • Line Feature Refinement: After detecting one or more lines using operators like "RANSAC Fitting", the input point cloud (such as object edge points) may still have some thickness or noise. This operator can accurately align these rough edge points to the fitted ideal line to obtain clean, standard line features.

  • Data Filtering and Extraction: Based on known line positions, extract only the points belonging to this line from a complex point cloud.

  • Measurement Preprocessing: Before performing precision measurements such as length and distance, align the detected linear features to eliminate measurement errors caused by point cloud noise or thickness.

Inputs and Outputs

Inputs

Edge point cloud: The input point cloud or list of point clouds to be aligned, typically edge points of an object.

Line equation parameters: Line equation parameters from fitting, including a point on the line and its direction vector [point.x point.y point.z direction.x direction.y direction.z].

Outputs

Line point cloud: A list of point clouds aligned and projected onto the input line models. Each output point cloud corresponds to a successfully matched combination of an input point cloud and a line model.

Parameters

Line Thickness

Description

  • Increase this value: Relaxes the filtering condition, allowing points farther from the ideal line to be included. This applies to cases where the original point cloud edges are thicker, blurrier, or have more noise. However, an overly large value may incorrectly include irrelevant points.

  • Decrease this value: Tightens the filtering condition, selecting only points very close to the ideal line. This applies to cases where the original point cloud edges are clear and have little noise, resulting in more precise results, but may lose some valid points due to being too strict.

Parameter Range

[0,1000], Default value: 10

Parameter Range

Values/Range: [0, 1000]

Default: 10.0

Unit: mm

Minimum Proportion of Line Points

Description

This parameter is used to prevent the accidental generation of invalid lines from irrelevant noise points.

  • Increase this value: Requires a higher proportion of points to conform to the line model, effectively filtering out "fake" lines formed by chance and composed of a few points.

  • Decrease this value: Relaxes this check. When set to 0, a line point cloud will be generated as long as any point meets the condition, without a proportion limit.

If you are sure that the input edge point cloud is mainly composed of lines, you can set this value higher (e.g., above 0.5); if unsure, you can appropriately lower it or use the default value.

Parameter Range

[0,1], Default value: 0.2

Parameter Range

Values/Range: [0, 1]

Default: 0.2