Method and device for smoothing terrain data
A technology for smoothing and terrain data, applied in the field of image processing, can solve problems such as data destruction, and achieve the effect of reducing destruction, improving accuracy, and multi-important information technology effects.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0070] like figure 1 As shown, the present embodiment provides a method for smoothing terrain data, including:
[0071] Step S101: Randomly select a vertex from the terrain raster data as the first vertex, where the first vertex is the vertex that needs to be smoothed currently.
[0072] For example, topographic raster data may be extracted from a raster image that needs to be smoothed, and any vertex may be arbitrarily selected from the topographic raster data as the first vertex, and denoted as a.
[0073] Step S102: Determine the first vertex element corresponding to the first vertex.
[0074] As an optional embodiment, step S102 includes: selecting four vertices around the first vertex; wherein, the first vertex and these four vertices constitute a first vertex element, and the first vertex is the center of the first vertex element point.
[0075] For example, four vertices around vertex a can be selected and recorded as N, E, W, S in the clockwise direction, vertex a a...
Embodiment 2
[0105] like figure 2 As shown, the present embodiment provides a device for smoothing terrain data, including:
[0106] The selection module 201 is used to arbitrarily select a vertex from the terrain raster data as the first vertex, wherein the first vertex is the vertex that currently needs to be smoothed;
[0107] A first determining module 202, configured to determine a first vertex element corresponding to the first vertex;
[0108] The first calculation module 203 is used to calculate the normal vector of the first vertex element;
[0109] The second determining module 204 is configured to determine a local terrain around the first vertex element;
[0110] The second calculation module 205 is used to calculate the normal vector of the local terrain;
[0111] The correction module 206 is configured to correct the elevation value of the first vertex based on the normal vector of the first vertex element and the normal vector of the local terrain.
[0112] As an option...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


