|
Algorithm 1. Modified region-growing algorithm |
| Input: Seed point (SD) |
Output: Point set ()
Locate SD
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 and
Select a point, , in and define its eight neighboring points as .
Check all of the points in ; if any point does not belong to , and its height difference between is smaller than , add it to and .
Erase from .
Loop process 3 to 5 until
Output
|