pointcloudset.diff.nearest module

Functions to calculate differences between the pointcloud nearest points in another one.

pointcloudset.diff.nearest.calculate_distance_to_nearest(pointcloud, target)

Calculate the distance for each point in a pointcloud to the nearest points in the target pointcloud.

Note

Adds the results to the data of the pointcloud.

Parameters
  • pointcloud (PointCloud) – PointCloud for which the differences to the target are calculated.

  • target (PointCloud) – PointCloud to calcluate the distances to.

Returns

PointCloud with the colum “distance to nearest point”.

Return type

PointCloud

Raises

ValueError – If distance ot nearest points already exits.