Research Article

A New Skeleton Feature Extraction Method for Terrain Model Using Profile Recognition and Morphological Simplification

Algorithm 5

Recognize the outbranches.
Input: Array with branch points signs.
Output: Array with out-branching points signs.
1. Let as the count of the adjacent branch points of
 the current point.
2. For each branch point in , do:
 2.1 Set ;
 2.2 For each branch connected with , do:
  2.2.1 Find the end point of each branch
    connected with , according to the
    direction coefficients of ;
  2.2.2 If is an end point that has not any
    direction coefficient, then go to 2.2;
    otherwise, if is an out-branching
    point then set , and go to 2.2.
 2.3 If is equal to 1, denote as out-branch
   point in .
3. Algorithm end.