FitPointClouds

globalmapper.FitPointClouds(GM_LayerHandle_t32 aLayersToCompareTo, uint32 aNumLayersToCompareTo, GM_LayerHandle_t32 aLayersToCompare, uint32 aNumLayersToCompare, GM_LidarBestFitSetup_t aSetup) GM_Error_t32[source]

GM_FitPointClouds is used to align a point cloud with either 3D control points or another point cloud, minimizing the X, Y, and Z differences. If you want to only compare a subset of the points in a cloud, first use CreateLidarQuery to build the two sets of points that you want to compare, then use GM_LidarCompareFromQuery to do the comparison.

Parameters:
  • aLayersToCompareTo (GM_LayerHandle_t32) – The layerlist to compare

  • aNumLayersToCompareTo (uint32) – The number of lidar layers in the layerlist

  • aLayersToCompare (GM_LayerHandle_t32) – The layerlist to compare to

  • aNumLayersToCompare (uint32) – The number of lidar layers in the layerlist

  • aSetup (GM_LidarBestFitSetup_t) – Set up options to perform the fit

Returns:

Error Code

Return type:

GM_Error_t32

Example

The following is an example of FitPointClouds.:

gm.FitPointClouds(file_path_a, 1, file_path_b, 1, aSetup = gm.GM_LidarBestFitSetup_t())