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.
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 |
|
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.
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 |