Skip to main content
. 2018 Oct 29;18(11):3675. doi: 10.3390/s18113675
Algorithm 1. Modified region-growing algorithm
Input: Seed point (SD)
Output: Point set (Pn)
  1. Locate SD

  2. Check the eight neighboring points of the seed point, if their height compared to SD is smaller than that of the set threshold, δ, add them to Pn and Bp

  3. Select a point, Bi, in Bp and define its eight neighboring points as Ti.

  4. Check all of the points in Ti; if any point does not belong to Pn, and its height difference between Bi is smaller than δ, add it to Bp and Pn.

  5. Erase Bi from Bp.

  6. Loop process 3 to 5 until Bp=

  7. Output Pn