CN105741353B - A kind of generation control method and device of three-dimensional terrain model - Google Patents

A kind of generation control method and device of three-dimensional terrain model Download PDF

Info

Publication number
CN105741353B
CN105741353B CN201610069513.7A CN201610069513A CN105741353B CN 105741353 B CN105741353 B CN 105741353B CN 201610069513 A CN201610069513 A CN 201610069513A CN 105741353 B CN105741353 B CN 105741353B
Authority
CN
China
Prior art keywords
smoothing operation
smoothing
dem
dimensional terrain
model data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610069513.7A
Other languages
Chinese (zh)
Other versions
CN105741353A (en
Inventor
罗传文
刘世荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northeast Forestry University
Research Institute of Forest Ecology Environment and Protection of Chinese Academy of Forestry
Original Assignee
Northeast Forestry University
Research Institute of Forest Ecology Environment and Protection of Chinese Academy of Forestry
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Northeast Forestry University, Research Institute of Forest Ecology Environment and Protection of Chinese Academy of Forestry filed Critical Northeast Forestry University
Priority to CN201610069513.7A priority Critical patent/CN105741353B/en
Publication of CN105741353A publication Critical patent/CN105741353A/en
Application granted granted Critical
Publication of CN105741353B publication Critical patent/CN105741353B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Remote Sensing (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a kind of generation control method and device of three-dimensional terrain model to preset smoothing parameter by obtaining the first DEM model data;Then to the first DEM model data carry out include positive smoothing operation and inverse smoothing operation smoothing operation, positive smoothing operation is using the corresponding first DEM model data of small ranks number as starting point, the direction being incremented by according to ranks number, the operation carried out according to smoothing parameter, inverse smoothing operation is using the corresponding first DEM model data of big ranks number as starting point, according to the direction that ranks number successively decreases, the operation carried out according to smoothing parameter;Finally, generating smooth three-dimensional relief model according to smoothed out 2nd DEM model data.Above-mentioned smoothing operation can effectively be smoothed the first DEM model data, the three-dimensional terrain model thus generated not only has high matching degree with forest form map, it avoids being distorted, and the flatness of three-dimensional terrain model is effectively ensured, enhance bandwagon effect and user experience.

Description

A kind of generation control method and device of three-dimensional terrain model
Technical field
The present invention relates to technical field of forestry, more particularly to the generation control method and dress of a kind of three-dimensional terrain model It sets.
Background technique
Virtual forest technology is intuitive, accurate, interaction simulation extensive forest location landform, composition, tree The technology of the information such as height, gas source, distribution.By the relief map that will be constructed by three-dimensional terrain model and comprising forest information The synthesis of digital forest form map, and carry out tree species appearance processing etc. and generate Virtual forest.The Virtual forest is whole forest form information Concentration has the characteristics that information is accurate, image is intuitive, performance area is big and high information integrity, not only comprising whole bottom classes The data of database, can facilitate whole attributes of inquiry bottom class, and can be showed with the formal intuition of virtual image wide The various forest phase information in forest location.
Wherein, the building of three-dimensional terrain model is to determine the key technology of Virtual forest success or not.Currently, generally passing through The mode of DEM (Digital Elevation Model, digital elevation model) three-dimensional visualization is realized into three-dimensional terrain model Building.Specifically, the digital elevation model is to identify one kind of ground elevation physically with one group of orderly array of values form Surface model, according to the difference of Method of Data Organization, DEM digital elevation model includes Grid DEM model and irregular triangle network DEM Model etc..Using the DEM digital elevation model, terrain rendering is carried out using the 3-D graphic software such as OpenGL, Direct3D, Complete the building of three-dimensional terrain model.
However, three-dimensional terrain model building after the completion of, the three-dimensional terrain model shown often occur various burrs, Discontinuous block etc., causes that three-dimensional terrain model is coarse, smoothness is poor, seriously affects bandwagon effect and user experience.
Summary of the invention
A kind of generation control method and device of three-dimensional terrain model are provided in the embodiment of the present invention, to solve existing skill Three-dimensional terrain model smoothness difference problem in Virtual forest generating process in art.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
The embodiment of the invention discloses a kind of generation control methods of three-dimensional terrain model, comprising the following steps:
Obtain the first DEM model data;
Default smoothing parameter;
According to the smoothing parameter, the first DEM model data is carried out to include positive smoothing operation and inverse smoothing operation Smoothing operation:
The positive smoothing operation is to be incremented by using the corresponding first DEM model data of small ranks number as starting point according to ranks number Direction, according to the smoothing parameter carry out operation;
The inverse smoothing operation is to successively decrease using the corresponding first DEM model data of big ranks number as starting point according to ranks number Direction, according to the smoothing parameter carry out operation;
According to smoothed out 2nd DEM model data, smooth three-dimensional relief model is generated.
Preferably, before the default smoothing parameter, further includes:
According to the first DEM model data, initial three-dimensional terrain model is generated;
Judge whether the initial three-dimensional terrain model is coarse;
If so, carrying out smoothing operation according to preset smoothing parameter;Alternatively, if not, terminating.
Preferably, the generation control method further include:
The initial three-dimensional terrain model is divided into multiple ken blocks;
Judge whether the corresponding initial three-dimensional terrain model of each ken block is coarse;
If so, carrying out smoothing operation according to preset smoothing parameter to corresponding one or more ken blocks;Alternatively, If not, terminating.
Preferably, the waviness for obtaining three-dimensional terrain model is calculated according to the first DEM model data, and according to described Waviness presets the smoothing parameter.
Preferably, the positive smoothing operation includes following calculation formula:
I=0 ..., m-a-1, j=0 ..., n-a-1, wherein xijFor height value, M is height value line number, and n is height value columns.
Preferably, the inverse smoothing operation includes following calculation formula:
I=m-1 ..., a, j=n-1 ..., a, wherein xijFor height value, m is Height value line number, n are height value columns.
Preferably, the smoothing operation includes:
Carry out include the positive smoothing operation and the inverse smoothing operation interative computation;
According to the DEM model data after each iteration, iteration three-dimensional terrain model is generated;
Judge whether the iteration three-dimensional terrain model is coarse;
If not, stopping the interative computation.
The present invention is that embodiment also discloses a kind of generation control device of three-dimensional terrain model, comprising:
First DEM model data obtains module, for obtaining the first DEM model data;
Smoothing parameter presetting module, for presetting smoothing parameter;
Smoothing operation module, including positive smoothing operation module and inverse smoothing operation module, are used for according to the smoothing parameter, The first DEM model data is carried out include positive smoothing operation and inverse smoothing operation smoothing operation:
The positive smoothing operation module is used for using the corresponding first DEM model data of small ranks number as starting point, according to ranks The incremental direction of number carries out positive smoothing operation according to the smoothing parameter;
The inverse smoothing operation module is used for using the corresponding first DEM model data of big ranks number as starting point, according to ranks The direction that number successively decreases carries out inverse smoothing operation according to the smoothing parameter;
Smooth three-dimensional relief model generation module, for generating smooth three-dimensional according to smoothed out 2nd DEM model data Relief model.
Preferably, the generation control device further include:
Initial three-dimensional terrain model generation module, for generating initial dimensional topography mould according to the first DEM model data Type;
Coarse judgment module, for judging whether the initial three-dimensional terrain model is coarse;If so, to the smooth fortune It calculates module and sends operational order, be used to indicate the smoothing operation module according to preset smoothing parameter and carry out smoothing operation.
Preferably, the generation control device further include:
Ken piecemeal module, for initial three-dimensional terrain model to be divided into multiple ken blocks;
The coarse judgment module of ken block, for judging whether the corresponding initial three-dimensional terrain model of each ken block is coarse; If so, sending operational order to smoothing operation module, the smoothing operation module is used to indicate to corresponding one or more Ken block carries out smoothing operation according to preset smoothing parameter.
Preferably, the smoothing parameter presetting module obtains dimensionally for being calculated according to the first DEM model data The waviness of shape model, and the smoothing parameter is preset according to the waviness.
Preferably, the positive smoothing operation module carries out positive smoothing operation according to following calculation formula:
I=0 ..., m-a-1, j=0 ..., n-a-1, wherein xijFor height value, M is height value line number, and n is height value columns.
Preferably, the inverse smoothing operation module carries out inverse smoothing operation according to following calculation formula:
I=m-1 ..., a, j=n-1 ..., a, wherein xijFor height value, m is Height value line number, n are height value columns.
Preferably, the smoothing operation module further include:
Interative computation module includes the positive smoothing operation and the inverse smooth interative computation for carrying out;
Iteration three-dimensional terrain model generation module, for it is three-dimensional to generate iteration according to the DEM model data after each iteration Relief model;
Iteration roughness judgment module, for judging whether the iteration three-dimensional terrain model is coarse;If not, to described Interative computation module sends halt instruction, is used to indicate the interative computation module and stops the interative computation.
By above technical scheme as it can be seen that the generation control method and dress of three-dimensional terrain model provided in an embodiment of the present invention It sets, by obtaining the first DEM model data, presets smoothing parameter;Then, according to the smoothing parameter, to the first DEM mould Type data carry out including positive smoothing operation and the smoothing operation against smoothing operation, and the positive smoothing operation is corresponding with small ranks number The first DEM model data be starting point, according to ranks number be incremented by direction, according to the smoothing parameter carry out operation, it is described Inverse smoothing operation is using the corresponding first DEM model data of big ranks number as starting point, according to the direction that ranks number successively decreases, according to institute State the operation of smoothing parameter progress;Finally, generating smooth three-dimensional relief model according to smoothed out 2nd DEM model data.On Can effectively the first DEM model data be smoothed by stating smoothing operation, according to smoothed out 2nd DEM model Data generate smooth three-dimensional relief model, not only have high matching degree with forest form map, avoid being distorted, and three-dimensional is effectively ensured The flatness of relief model enhances bandwagon effect and user experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the generation control method of three-dimensional terrain model provided in an embodiment of the present invention;
Fig. 2 is the simulation dimensional topography scene figure provided in an embodiment of the present invention for not carrying out smoothing operation;
Fig. 3 is the simulation dimensional topography scene figure provided in an embodiment of the present invention after positive smoothing operation;
Fig. 4 is the simulation dimensional topography scene provided in an embodiment of the present invention after positive smoothing operation and inverse smoothing operation Figure;
Fig. 5 is the flow diagram of the generation control method of another three-dimensional terrain model provided in an embodiment of the present invention;
Fig. 6 is the flow diagram of the generation control method of another three-dimensional terrain model provided in an embodiment of the present invention;
Fig. 7 is the flow diagram of the generation control method of another three-dimensional terrain model provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of the generation control device of three-dimensional terrain model provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of smoothing operation module provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of the generation control device of another three-dimensional terrain model provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of the generation control device of another three-dimensional terrain model provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of the generation control device of another three-dimensional terrain model provided in an embodiment of the present invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention Range.
Referring to Fig. 1, for a kind of process signal of the generation control method of three-dimensional terrain model provided in an embodiment of the present invention Figure, the generation control method the following steps are included:
Step S101: the first DEM model data is obtained.
In embodiments of the present invention, for convenience, the first DEM model data is Grid DEM model data, Certain the first DEM model data described in practical applications can also mix for TIN model data or other plurality of data structures Model data.The first DEM model data includes one group with the tactic elevation value matrix of ranks, for describing entity Ground.The first DEM model data can obtain in the following manner: carry out field survey using equipment such as total station, GPS Amount;Based on remote sensing images, aerophotograph, DEM model data is obtained using photogrammetric means;By existing data map, It is converted and is obtained after being handled.The file format for storing the first DEM model data can be shp or dbf format, to facilitate confession The tools such as ArcGIS, which are read, to be used.By reading the first DEM model data file, the first DEM model data is obtained; Certainly, in the specific implementation, technical staff such as can also edit, correct to the first DEM model data at the work, above-mentioned Process is those skilled in the art's common method, and details are not described herein.
Step S102: default smoothing parameter.
The smoothing parameter is used to carry out smoothing computation to the first DEM model data obtained in step S101.
In embodiments of the present invention, the waviness for obtaining three-dimensional terrain model is calculated according to the first DEM model data, And the smoothing parameter is preset according to the waviness.Such as it can be by calculating highest sea in the first DEM model data The elevation value difference with minimum height above sea level is pulled out, the waviness is characterized;When the waviness is higher, then can be set biggish described Smoothing parameter, to carry out the smoothing processing of larger intensity;When the waviness is smaller, then can be set lesser described smooth Parameter, to carry out the smoothing processing of smaller intensity.In the specific implementation, the smoothing parameter is set as 2, and value be positive it is whole Number.Certainly, according to actual smooth demand, multiple smoothing parameters can be set to increase the flexibility of adjustment, moreover, institute The value for stating smoothing parameter may be decimal etc..
According to the preset smoothing parameter of step S102, smoothing operation is carried out to the first DEM model data, it is described Smoothing operation includes positive smoothing operation and inverse smoothing operation.
Step S103: using the corresponding first DEM model data of small ranks number as starting point, according to ranks number be incremented by direction, Positive smoothing operation is carried out according to the smoothing parameter.
In embodiments of the present invention, using the lesser first DEM model data of corresponding ranks number as starting point, such as It can be 0 x with line number and columns00The positive smoothing operation is carried out for starting point;Certainly, needs are calculated according to specific, it can also To select the height value of any other ranks number to start the positive smoothing operation as starting point.Then, it is incremented by according to ranks number Direction carries out positive smoothing operation according to the smoothing parameter, and the formula of the positive smoothing operation is as follows:
I=0 ..., m-a-1, j=0 ..., n-a-1,
Wherein, xijFor height value, m is height value line number, and n is height value columns.
Step S104: using the corresponding first DEM model data of big ranks number as starting point, according to the direction that ranks number successively decreases, Inverse smoothing operation is carried out according to the smoothing parameter.
In embodiments of the present invention, using the biggish first DEM model data of corresponding ranks number as starting point, such as It can be m-1 with line number, columns is the x of n-1m-1,n-1The inverse smoothing operation is carried out for starting point;Certainly, need are calculated according to specific It wants, the height value that also can choose any other ranks number starts the inverse smoothing operation as starting point.Then, according to ranks number The direction successively decreased carries out inverse smoothing operation according to the smoothing parameter, and the formula of the inverse smoothing operation is as follows:
I=m-1 ..., a, j=n-1 ..., a, wherein xijFor height value, m is Height value line number, n are height value columns.
After the smoothing operation described in the step S103 and step S104, the smoothing operation can be permanent smooth Operation saves the 2nd DEM model data obtained after smoothing operation, when user needs to be loaded into DEM model data, directly The 2nd DEM model data after being loaded into smoothing operation, facilitates user to directly obtain visual effect good dimensionally Shape model;Certainly, the smoothing operation is also possible to provisional, i.e., does not save to the 2nd DEM model data, uses After family is loaded into the first DEM model data every time, if visual effect is coarse, need to carry out corresponding smoothing operation.
Step S105: according to smoothed out 2nd DEM model data, smooth three-dimensional relief model is generated.
S103 and step S104 carries out positive smoothing operation and inverse smoothing operation respectively through the above steps, by smoothing operation After obtain smoothed out 2nd DEM model data, according to the 2nd DEM model data, the three-dimensional visualization in three-dimensional software Obtain smooth three-dimensional relief model.
It referring to fig. 2, is the simulation dimensional topography scene figure provided in an embodiment of the present invention for not carrying out smoothing operation, it is seen that no The visual effect for the three-dimensional land map for adding smoothing operation to directly generate can have a greatly reduced quality, is very coarse.It is real for the present invention referring to Fig. 3 The simulation dimensional topography scene figure after positive smoothing operation of example offer, the landform generated after the positive smoothing operation are provided The display effect of figure is obviously improved, but only by the ridge line in the topographic map and forest form map after the positive smoothing operation have compared with Big deviation (ridge line shown in the chain-dotted line of lowest part in figure), causes landform to be distorted.In order to avoid landform distortion, need into The inverse smoothing operation of row step S104, then the DEM model data after the inverse smoothing operation is generated into the three-dimensional land map, ginseng See Fig. 4, for the simulation dimensional topography scene figure provided in an embodiment of the present invention after positive smoothing operation and inverse smoothing operation, passes through Three-dimensional land map after the positive smoothing operation and the inverse smoothing operation is not only smooth, visual effect is outstanding, and topographic map It is overlapped with the ridge line of forest form map, avoids topographic map distortion.
It should be noted that in the specific implementation, the sequence of the positive smoothing operation and the inverse smoothing operation can be into Row exchanges, such as carries out inverse smoothing operation first, then carries out positive smoothing operation.
Referring to Fig. 5, the process for the generation control method of another three-dimensional terrain model provided in an embodiment of the present invention is shown It is intended to, on the basis of generation control method shown in Fig. 1, this method further include:
Step S201: according to the first DEM model data, initial three-dimensional terrain model is generated.
It is loaded into the first DEM model data, carries out data processing and carry out three-dimensional visualization using three-dimensional software to obtain The initial three-dimensional terrain model, the first DEM model without smoothing processing according to the initial three-dimensional terrain model The three-dimensional terrain model that data generate.
Step S202: judge whether the initial three-dimensional terrain model is coarse.
Judge whether the initial three-dimensional terrain model is coarse, specific deterministic process includes: to calculate initial dimensional topography The roughness of model, the roughness can be characterized by the elevation value difference of adjacent cells, or the sky carried by ArcGIS Between analysis tool calculate the roughness that is characterized by the ratio between surface area and projected area;It is default to judge whether the roughness is greater than one Roughness threshold value then judge that the initial three-dimensional terrain model is coarse if it is greater than the roughness threshold value, need according to pre- If smoothing parameter carry out smoothing operation processing;If the roughness is less than the roughness threshold value, judge described initial Three-dimensional terrain model meets visual demand, does not need to carry out smoothing operation processing, terminate and with the initial three-dimensional terrain model It is shown as final result.Certainly, in the specific implementation, user can be according to the roughness of the three-dimensional terrain model, freely It chooses whether to need to carry out smoothing operation processing.
By introducing the judgement of the roughness, without carrying out smoothing operation to the first DEM model data, and only It need to need to carry out described the of smoothing operation to the first DEM model data for not meeting roughness requirements or user's selection One DEM model data is smoothed, and effectively saves computing resource.
Referring to Fig. 6, the process for the generation control method of another three-dimensional terrain model provided in an embodiment of the present invention is shown It is intended to, on the basis of generation control method shown in Fig. 5, this method further include:
Step S301: the initial three-dimensional terrain model is divided into multiple ken blocks.
To step S201 generate initial three-dimensional terrain model carry out piecemeal, in the specific implementation, can will it is described initially Three-dimensional terrain model is divided into the consistent ken block of multiple sizes;Alternatively, user freely selects on the initial three-dimensional terrain model It selects and is separated into multiple ken blocks.
Step S202: judge whether the corresponding three-dimensional terrain model of each ken block is coarse.
Specific deterministic process can be found in step S202, and details are not described herein is judged respectively to each ken block.Such as Fruit one or more ken block needs to carry out smoothing operation, then to corresponding one or more ken root tubers according to preset smooth ginseng Number carries out smoothing operation;If ken block terminates without carrying out smoothing operation.Smooth ken block is needed by selection, Without effectively reducing operand for the three-dimensional terrain model progress smoothing operation processing of the global ken during smoothing operation, And improve smoothing processing efficiency.Moreover, during processing, the smooth ken block is needed for multiple, it can be using simultaneously The mode of row processing, further increases treatment effeciency.
In the specific implementation, the result of primary positive smoothing operation and inverse smoothing operation, which may still be unsatisfactory for user's vision, needs Ask, therefore on the basis of generation control method shown in Fig. 1, referring to Fig. 7, for it is provided in an embodiment of the present invention another dimensionally The flow diagram of the generation control method of shape model, the generation control method further include:
Step S401: carry out include the positive smoothing operation and the inverse smoothing operation interative computation.
The first DEM model data acquired according to step S101 carries out 1 positive smoothing operation and 1 inverse smooth fortune It calculates, wherein the interative computation can be understood as carrying out including that 1 group of 1 positive smoothing operation and 1 time against smoothing operation is smoothly transported It calculates.
Step S402: according to the DEM model data after each iteration, iteration three-dimensional terrain model is generated.
Every DEM pattern number after 1 time includes the interative computation of positive smoothing operation and inverse smoothing operation, after obtaining iteration According to, according to the DEM model data after iteration, three-dimensional terrain model is visualized, generate iteration three-dimensional terrain model.
Step S403: judge whether the iteration three-dimensional terrain model is coarse.
Whether the iteration three-dimensional terrain model that judgment step S402 is obtained is coarse, if the iteration dimensional topography mould Type is still coarse not to be able to satisfy user's vision needs, then continues the smoothing operation iteration of a new round;If it is determined that described change Meet the requirement of user's visual effect for three-dimensional terrain model, then stops carrying out smoothing operation iteration, terminate and with the iteration three Dimension relief model is shown as final three-dimensional terrain model.
As seen from the above-described embodiment, the generation control method of a kind of three-dimensional terrain model provided by the invention, passes through acquisition First DEM model data presets smoothing parameter;Then, according to the smoothing parameter, the first DEM model data is carried out Smoothing operation including positive smoothing operation and inverse smoothing operation, the positive smoothing operation are with corresponding first DEM of small ranks number Model data is starting point, according to the direction that ranks number is incremented by, according to the operation that the smoothing parameter carries out, the inverse smoothing operation For using the corresponding first DEM model data of big ranks number as starting point, according to the direction that ranks number successively decreases, according to the smoothing parameter The operation of progress;Finally, generating smooth three-dimensional relief model according to smoothed out 2nd DEM model data.Above-mentioned smoothing operation Effectively the first DEM model data can be smoothed, be generated according to smoothed out 2nd DEM model data flat Sliding three-dimensional terrain model, not only has high matching degree with forest form map, avoids being distorted, and three-dimensional terrain model is effectively ensured Flatness enhances bandwagon effect and user experience.
By the description of above embodiment of the method, it is apparent to those skilled in the art that the present invention can Realize by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases the former It is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially makes tribute to the prior art in other words The part offered can be embodied in the form of software products, which is stored in a storage medium, packet Some instructions are included to use so that a computer equipment (can be personal computer, server or the network equipment etc.) executes All or part of the steps of the method according to each embodiment of the present invention.And storage medium above-mentioned includes: read-only memory (ROM), the various media that can store program code such as random access memory (RAM), magnetic or disk.
It is corresponding with a kind of generation control method embodiment of three-dimensional terrain model provided by the invention, the present invention also provides A kind of generation control device of three-dimensional terrain model.
Referring to Fig. 8, for a kind of structural representation of the generation control device of three-dimensional terrain model provided in an embodiment of the present invention Figure, and be a kind of structural schematic diagram of smoothing operation module provided in an embodiment of the present invention referring to Fig. 9, which includes:
First DEM model data obtains module 11, for obtaining the first DEM model data;
Smoothing parameter presetting module 12, for presetting smoothing parameter;
Smoothing operation module 13, including positive smoothing operation module 131 and inverse smoothing operation module 132, for according to Smoothing parameter, the first DEM model data is carried out include positive smoothing operation and inverse smoothing operation smoothing operation: it is described just Smoothing operation module 131, the side for being incremented by according to ranks number using the corresponding first DEM model data of small ranks number as starting point To according to the positive smoothing operation of smoothing parameter progress;The inverse smoothing operation module 132, for corresponding with big ranks number First DEM model data is starting point, according to the direction that ranks number successively decreases, carries out inverse smoothing operation according to the smoothing parameter;
Smooth three-dimensional relief model generation module 14, for generating smooth three according to smoothed out 2nd DEM model data Tie up relief model.
Preferably, the smoothing parameter presetting module 12 obtains three-dimensional for calculating according to the first DEM model data The waviness of relief model, and the smoothing parameter is preset according to the waviness.
Preferably, the just flat computing module 131 carries out positive smoothing operation according to following calculation formula:
I=0 ..., m-a-1, j=0 ..., n-a-1, wherein xijFor height value, M is height value line number, and n is height value columns.
Preferably, the inverse smoothing operation module 132 carries out inverse smoothing operation according to following calculation formula:
I=m-1 ..., a, j=n-1 ..., a, wherein xijFor height value, m is Height value line number, n are height value columns.
Referring to Figure 10, the structure for the generation control device of another three-dimensional terrain model provided in an embodiment of the present invention is shown It is intended to, on the basis of device shown in Fig. 8, the device further include:
Initial three-dimensional terrain model generation module 21, for generating initial dimensional topography mould according to the first DEM model data Type.
Coarse judgment module 22, for judging whether the initial three-dimensional terrain model is coarse;If so, to described smooth Computing module 13 sends operational order, is used to indicate 13 root tuber of smoothing operation mould and is smoothly transported according to preset smoothing parameter It calculates.
Referring to Figure 11, the structure for the generation control device of another three-dimensional terrain model provided in an embodiment of the present invention is shown It is intended to, on the basis of device shown in Fig. 8, in order to flexibly be handled initial three-dimensional terrain model, the device further include:
Ken piecemeal module 31, for initial three-dimensional terrain model to be divided into multiple ken blocks.
The coarse judgment module 32 of ken block, for judging whether the corresponding initial three-dimensional terrain model of each ken block is thick It is rough;If so, sending operational order to smoothing operation module 13, the smoothing operation module 13 is used to indicate to corresponding one Or multiple ken blocks, smoothing operation is carried out according to preset smoothing parameter.
In actual implementation, the smoothing operation can carry out successive ignition calculating, be the embodiment of the present invention referring to Figure 12 The structural schematic diagram of the generation control device of another three-dimensional terrain model provided, on the basis of device shown in Fig. 8, the dress It sets further include:
Interative computation module 41, for carry out include the positive smoothing operation and the inverse smoothing operation interative computation;
Iteration three-dimensional terrain model generation module 42, for generating iteration three according to the DEM model data after each iteration Tie up relief model;
Iteration roughness judgment module 43, for judging whether the iteration three-dimensional terrain model is coarse;If not, to institute It states interative computation module 41 and sends halt instruction, be used to indicate the interative computation module 41 and stop the interative computation;If It is that Xiang Suoshu interative computation module 41 sends iterative instruction, is used to indicate the interative computation module 41 and continues the iteration fortune It calculates.
As seen from the above-described embodiment, the generation control device of a kind of three-dimensional terrain model provided in an embodiment of the present invention leads to It crosses by obtaining the first DEM model data, presets smoothing parameter;Then, according to the smoothing parameter, to the first DEM mould Type data carry out including positive smoothing operation and the smoothing operation against smoothing operation, and the positive smoothing operation is corresponding with small ranks number The first DEM model data be starting point, according to ranks number be incremented by direction, according to the smoothing parameter carry out operation, it is described Inverse smoothing operation is using the corresponding first DEM model data of big ranks number as starting point, according to the direction that ranks number successively decreases, according to institute State the operation of smoothing parameter progress;Finally, generating smooth three-dimensional relief model according to smoothed out 2nd DEM model data.It should Device can effectively be smoothed the first DEM model data, raw according to smoothed out 2nd DEM model data At smooth three-dimensional relief model, not only there is high matching degree with forest form map, avoid being distorted, and dimensional topography mould is effectively ensured The flatness of type enhances bandwagon effect and user experience.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when invention.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only a specific embodiment of the invention, is made skilled artisans appreciate that or realizing this hair It is bright.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of generation control method of three-dimensional terrain model, which comprises the following steps:
Obtain the first DEM model data;
Default smoothing parameter;
According to the smoothing parameter, the first DEM model data is carried out to include that positive smoothing operation and inverse smoothing operation are put down Sliding operation, obtains the 2nd DEM model data:
The positive smoothing operation is using the corresponding first DEM model data of small ranks number as starting point, according to the incremental side of ranks number To according to the operation that the smoothing parameter carries out, the positive smoothing operation includes following calculation formula:
, whereinFor height Journey value, m are height value line number, and n is height value columns;
The inverse smoothing operation is the first DEM model data after corresponding to positive smoothing operation using big ranks number as starting point, according to row The direction that columns successively decreases, according to the operation that the smoothing parameter carries out, the inverse smoothing operation includes following calculation formula:
, whereinFor height value, m For height value line number, n is height value columns;
According to the 2nd DEM model data, smooth three-dimensional relief model is generated.
2. the generation control method of three-dimensional terrain model according to claim 1, which is characterized in that the method is also wrapped It includes:
According to the first DEM model data, initial three-dimensional terrain model is generated;
Judge whether the initial three-dimensional terrain model is coarse;
If so, carrying out smoothing operation to the first DEM model data according to preset smoothing parameter;Alternatively, if not, knot Beam.
3. the generation control method of three-dimensional terrain model according to claim 2, which is characterized in that further include:
The initial three-dimensional terrain model is divided into multiple ken blocks;
Judge whether the corresponding initial three-dimensional terrain model of each ken block is coarse;
If so, to corresponding one or more ken blocks, according to preset smoothing parameter to the first DEM model data into Row smoothing operation;Alternatively, if not, terminating.
4. the generation control method of three-dimensional terrain model according to claim 1, which is characterized in that according to described first DEM model data calculates the waviness for obtaining three-dimensional terrain model, and presets the smoothing parameter according to the waviness.
5. the generation control method of three-dimensional terrain model according to claim 1, which is characterized in that the smoothing operation packet It includes:
Carry out include the positive smoothing operation and the inverse smoothing operation interative computation;
According to the DEM model data after each iteration, iteration three-dimensional terrain model is generated;
Judge whether the iteration three-dimensional terrain model is coarse;
If not, stopping the interative computation.
6. a kind of generation control device of three-dimensional terrain model characterized by comprising
First DEM model data obtains module, for obtaining the first DEM model data;
Smoothing parameter presetting module, for presetting smoothing parameter;
Smoothing operation module, including positive smoothing operation module and inverse smoothing operation module, are used for according to the smoothing parameter, to institute It states the first DEM model data and carries out including positive smoothing operation and the smoothing operation against smoothing operation, obtain the 2nd DEM pattern number According to:
The positive smoothing operation module, for being passed according to ranks number using the corresponding first DEM model data of small ranks number as starting point The direction of increasing carries out positive smoothing operation according to the smoothing parameter, the positive smoothing operation module according to following calculation formula into The positive smoothing operation of row:
, whereinFor height Journey value, m are height value line number, and n is height value columns;
The inverse smoothing operation module, for the first DEM model data after corresponding to positive smoothing operation using big ranks number as starting point, According to the direction that ranks number successively decreases, inverse smoothing operation is carried out according to the smoothing parameter, the inverse smoothing operation includes following meter Calculate formula:
, whereinFor height value, m For height value line number, n is height value columns;
Smooth three-dimensional relief model generation module, for generating smooth three-dimensional landform mould according to the 2nd DEM model data Type.
7. the generation control device of three-dimensional terrain model according to claim 6, which is characterized in that further include:
Initial three-dimensional terrain model generation module, for generating initial three-dimensional terrain model according to the first DEM model data;
Coarse judgment module, for judging whether the initial three-dimensional terrain model is coarse;If so, to the smoothing operation mould Block sends operational order, is used to indicate the smoothing operation module according to preset smoothing parameter to the first DEM pattern number According to progress smoothing operation.
8. the generation control device of three-dimensional terrain model according to claim 7, which is characterized in that further include:
Ken piecemeal module, for initial three-dimensional terrain model to be divided into multiple ken blocks;
The coarse judgment module of ken block, for judging whether the corresponding initial three-dimensional terrain model of each ken block is coarse;If It is to send operational order to smoothing operation module, is used to indicate the smoothing operation module to corresponding one or more kens Block carries out smoothing operation to the first DEM model data according to preset smoothing parameter.
9. the generation control device of three-dimensional terrain model according to claim 6, which is characterized in that the smoothing parameter is pre- If module, for calculating the waviness for obtaining three-dimensional terrain model according to the first DEM model data, and according to the fluctuating Degree presets the smoothing parameter.
10. the generation control device of three-dimensional terrain model according to claim 6, which is characterized in that the smoothing operation Module further include:
Interative computation module includes the positive smoothing operation and the inverse smooth interative computation for carrying out;
Iteration three-dimensional terrain model generation module, for generating iteration dimensional topography according to the DEM model data after each iteration Model;
Iteration roughness judgment module, for judging whether the iteration three-dimensional terrain model is coarse;If not, to the iteration Computing module sends halt instruction, is used to indicate the interative computation module and stops the interative computation.
CN201610069513.7A 2016-02-01 2016-02-01 A kind of generation control method and device of three-dimensional terrain model Expired - Fee Related CN105741353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610069513.7A CN105741353B (en) 2016-02-01 2016-02-01 A kind of generation control method and device of three-dimensional terrain model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610069513.7A CN105741353B (en) 2016-02-01 2016-02-01 A kind of generation control method and device of three-dimensional terrain model

Publications (2)

Publication Number Publication Date
CN105741353A CN105741353A (en) 2016-07-06
CN105741353B true CN105741353B (en) 2019-04-30

Family

ID=56242101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610069513.7A Expired - Fee Related CN105741353B (en) 2016-02-01 2016-02-01 A kind of generation control method and device of three-dimensional terrain model

Country Status (1)

Country Link
CN (1) CN105741353B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324106A (en) * 2011-06-02 2012-01-18 武汉大学 SFS (Shape From Shading) three-dimensional reconstruction sparse-DEM (Digital Elevation Model) encrypting method considering surface spectral information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8203552B2 (en) * 2007-08-30 2012-06-19 Harris Corporation Geospatial data system for selectively retrieving and displaying geospatial texture data in successive additive layers of resolution and related methods

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324106A (en) * 2011-06-02 2012-01-18 武汉大学 SFS (Shape From Shading) three-dimensional reconstruction sparse-DEM (Digital Elevation Model) encrypting method considering surface spectral information

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
一个两时间层原始方程三维海洋环流模式平台的构建和检验;韩磊;《中国博士论文全文数据库》;20131115(第11期);摘要,正文第104-136页
小比例尺地貌晕渲图生成方法研究与实现;陈星宇;《中国优秀硕士论文全文数据库》;20141215(第12期);摘要,正文第6-25页
遥感影像数字判绘系统的设计与实现;芮杰;《中国优秀硕士论文全文数据库》;20060415;摘要,正文第6-25、39-52页

Also Published As

Publication number Publication date
CN105741353A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
JP5036179B2 (en) Two-dimensional linear data real-time three-dimensional conversion method and apparatus, two-dimensional linear data real-time three-dimensional image display method and display apparatus
JP2642070B2 (en) Method and system for generating quadrilateral mesh
US20050171754A1 (en) Automatic scenery object generation
Zhao Application of 3D CAD in landscape architecture design and optimization of hierarchical details
EP2518444B1 (en) Navigation device and method of determining a height coordinate
US8237706B2 (en) Apparatus and method for simplifying three-dimensional mesh data
CN107610131A (en) A kind of image cropping method and image cropping device
CN102306396A (en) Three-dimensional entity model surface finite element mesh automatic generation method
Li et al. Geometry synthesis on surfaces using field-guided shape grammars
CN107481321A (en) A kind of threedimensional model generation method and threedimensional model generation system
US7778808B2 (en) Geospatial modeling system providing data thinning of geospatial data points and related methods
CN116229015B (en) Based on 2 N Method for generating body-attached Cartesian grid with Tree attached surface layer
CN103871102A (en) Road three-dimensional fine modeling method based on elevation points and road outline face
CN112035934A (en) Method for construction management control based on digital design model of transformer substation
CN113724401A (en) Three-dimensional model cutting method and device, computer equipment and storage medium
CN109697748A (en) Model compression processing method, model pinup picture processing method device, storage medium
CN115690286A (en) Three-dimensional terrain generation method, terminal device and computer-readable storage medium
CN103679814A (en) Processing method and device for triangle mesh model
CN112734900B (en) Baking method, device and equipment for shadow map and computer readable storage medium
CN105741353B (en) A kind of generation control method and device of three-dimensional terrain model
CN112687007A (en) LOD technology-based stereo grid map generation method
CN109615691B (en) Building block model generation system
CN110516284B (en) Real estate household graph drawing method and electronic equipment
US8180607B2 (en) Acoustic modeling method
CN113688453B (en) Relative texture paving commodity discharging calculation method and device, electronic equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190430

Termination date: 20200201

CF01 Termination of patent right due to non-payment of annual fee