pointcloudset.diff.point module

Functions to calculate distances between points in pointcloud and a point.

pointcloudset.diff.point.calculate_distance_to_point(pointcloud: pointcloudset.pointcloud.PointCloud, target: np.ndarray, **kwargs) pointcloudset.pointcloud.PointCloud

Calculate the Euclidian distance to a point for each point in the pointcloud.

Note

Adds the result as a new column to the data of the pointcloud.

Parameters
  • pointcloud (PointCloud) – PointCloud for which the Euclidean distance to the point is calculated.

  • target (numpy.ndarray) – [x, y, z] as coordinates of the point to which the Euclidean distance is calculated.

Returns

PointCloud including Euclidean distances to a point for each point.

Return type

PointCloud