Research Article
A New Skeleton Feature Extraction Method for Terrain Model Using Profile Recognition and Morphological Simplification
Algorithm 3
Connected domain judgment.
Input: Non-feature points set . | Output: The connected domain matrix DOM, and its | filling intensity , . | 1. Set , . | 2. Set and DOM, , | where is the scale of original data. | 3. Find one point that is neither target point, nor | marked point from , let as the | current non-feature point, and mark it, go to | step 3.1; there is no such point go to step 4: | 3.1 Initialize array A; | 3.2 Set and ; | 3.3 Set and DOM; | 3.4 Find one point that is neither target point, nor | the marked point in eight adjacent points of | current point, let be the point which is | found at this time, if find the point go to | step 3.6; if there is no such point, , | , go to step 3.5. | 3.5 If , go to step 4. | 3.6 Mark , , , = , | go to step 3.3. | 4. Algorithm end. |
|