| Algorithm 1 Wall Boundary extraction |
|
Input: Lebeled wall point cloud:{} Distance threshold to remove the point cloud: Distance threshold to filter the plane: Angle threshold to filter the plane: Distance threshold to reserve the point cloud: Percentage threshold to end the loop: |
| Output: 2D Wall Lines in floor plane: |
| 1: initialize: remaining point cloud:{} = {} 2: while do 3: Plane candidate: 4: if is empty then 5: add to 6: Distance between points and plane: 7: Distance between points and line in floor plane: 8: for do 9: if < and < then 10: add to ready to remove set 11: end if 12: end for 13: else 14: for do 15: Distance between planes: 16: Angle between planes: 17: if and then 18: Continue 19: end if 20: end for 21: if then 22: add to 23: Distance between points and plane: 24: Distance between points and line in floor plane: 25: for do 26: if < and < then 27: add to ready to remove set 28: end if 29: end for 30: end if 31: end if 32: remove point from : 33: end while 34: Return: |