Research Article
A New Skeleton Feature Extraction Method for Terrain Model Using Profile Recognition and Morphological Simplification
Algorithm 6
Repeated pruning of MPPA.
Input: The current segments set segres, ring | segments set segbr, and out branch sign | array . | Output: The result segments set segres with the | final skeleton features. | 1. Let be branch points array produced in Section | 4.1 and let loop = 1 as loop times. | 2. Call Algorithm 5 to update the out-branching set | of the current segments set segres. | 3. Let lengthcriterion be criterion of branch length. | 4. Search the unchecked directions of adjacent points | of , until reach the end points of this | branch. | 5. For each branch at the beginning of : | 5.1 Let ; | 5.2 Calculate the length of ; | 5.3 If , then eliminate and | the branch ; | 5.4 Check direction coefficient of , if there is the | direction that has not be traversed, then go to | step 4; | 5.5 . | 6. Retrieval the stable ring according to ring segments | set segbr. | 7. Retrieval the out branch according to | out-branching sign array . | 8. Algorithm end. |
|