Skip to main content
. 2024 Nov 7;14(22):3190. doi: 10.3390/ani14223190
Algorithm A1. Optimize Point Cloud Registration
Input: Pquery: Query point cloud with multiple points
Pmodel: Model point cloud with multiple points
fp: the percentage value to determine the capacity of the min heap
Output: H: The min heap H with capacity Pquery×fp is used to store distances and indexes
·For each point Dq in Pquery do
     dis = CalculateNearestDistance(Dq,Pmodel)
     neg_dis = dis
        If H.sizes() < Pquery×fp
     H.add(neg_dis, index_of_Dq)
     · ElseIf negdis > H.peek()
     H.removeMin()
     H.add(neg_dis, index_of_Dq)
End