Size Calculation by Center-to-Line Distance
Description
This operator calculates the length and width of a bounding box using geometric methods.
Its core logic is:
-
First, calculate a center point based on a given main point cloud.
-
Then, calculate the perpendicular distances from this center point to four input lines.
-
Finally, the operator assumes these four lines form the four sides of a rectangle and calculates the length and width of the rectangle by summing the opposing distances (i.e., summing the two largest distances and summing the two smallest distances).
Overview
Calculates the length and width dimensions of the bounding box through the distance from the point cloud center to four fitted lines.
Scenarios
Mainly used in scenarios where the bounding box calculated by the bounding box algorithm has deviations, to obtain more precise bounding box side lengths.
Inputs and Outputs
Inputs |
Point Cloud: The input point cloud used to calculate the center point. Only one point cloud is required. It can be the merged result of fitted lines or the original point cloud before fitting. Line equation parameter list: A list of line equation parameters. Each element contains the parameters of one fitted line: a point on the line and its direction vector [point.x point.y point.z direction.x direction.y direction.z]. Line point cloud: Line point clouds consisting of four point clouds, each representing one of the four fitted lines. Used as an auxiliary input when calculating height using the triangle area-perimeter method. |
Outputs |
Bounding Box Size: Outputs a list containing two elements [Size 1, Size 2], representing the calculated length and width of the bounding box. |
Parameters
Center Point Type
Description |
Defines the method used to compute the center point from the input "point cloud". |
Tuning Instructions |
|
Parameter Range |
Values/Range:
Default: Point Cloud Mean |
Distance Calculation Method
Description |
Defines the mathematical method used to compute the distance from the center point to each line. |
Tuning Instructions |
|
Parameter Range |
Values/Range:
Default: Distance from Point to Line |