A terrain region splicing method and device, computer equipment and storage medium

By using pre-stitching and frequency division interpolation, the problems of boundary distortion and large computational load during terrain area stitching were solved, achieving a more realistic and natural stitching effect.

CN114565545BActive Publication Date: 2025-12-16BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210190700.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2025-12-16
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

Existing technologies suffer from distortion at the boundaries and require a large amount of computation when splicing terrain features, making it impossible to effectively preserve the terrain characteristics between regions.

Method used

The terrain features of the stitching line are obtained through pre-stitching, and then frequency division and interpolation are performed to obtain the target high-frequency terrain data. Low-frequency and high-frequency terrain data are then fused to achieve a smooth transition.

Benefits of technology

Preserve terrain features at the splicing line to reduce computation and improve the realism and naturalness of the spliced ​​area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114565545B_ABST
    Figure CN114565545B_ABST
Patent Text Reader

Abstract

The present disclosure provides a terrain region splicing method and device, computer equipment and storage medium, which are applied to splicing a first region and a second region in a target terrain region. The splicing method comprises: performing pre-splicing processing on the first region and the second region to obtain an original splicing region containing a splicing line; performing frequency division processing on the original splicing region to obtain low-frequency terrain data representing height change characteristics of the original splicing region and first high-frequency terrain data representing current ground surface characteristics of the original splicing region; obtaining second high-frequency terrain data representing ground surface characteristics corresponding to the splicing line, and performing interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data; and fusing the low-frequency terrain data and the target high-frequency terrain data to obtain a first target splicing region after splicing the first region and the second region.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and in particular, to a terrain region splicing method and device, a computer device, and a storage medium. BACKGROUND

[0002] In application scenarios such as games, there is a demand for scene construction, for example, a demand for game scene construction. Since a scene is generally large, the scene is usually divided into multiple regions based on a preset size of the scene, each region is designed with a terrain after which the multiple regions are spliced to obtain a final scene for rendering and display.

[0003] In some possible manners, the multiple regions designed with terrains are loaded as one large-size image, and the image is subjected to blur processing on the boundaries between the regions to obtain a spliced scene. However, this blur processing manner cannot well preserve the terrain features of the boundaries between the regions, resulting in distortion of the spliced terrain region at the boundaries. SUMMARY

[0004] The present disclosure provides at least a terrain region splicing method and device, a computer device, and a storage medium.

[0005] In a first aspect, the present disclosure provides a terrain region splicing method applied to splicing a first region and a second region in a target terrain region. The splicing method comprises: performing pre-splicing processing on the first region and the second region to obtain an original splicing region containing a splicing line; performing frequency division processing on the original splicing region to obtain low-frequency terrain data representing height variation features of the original splicing region and first high-frequency terrain data representing current ground features of the original splicing region; obtaining second high-frequency terrain data representing ground features corresponding to the splicing line, and performing interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data; and fusing the low-frequency terrain data and the target high-frequency terrain data to obtain a first target splicing region obtained by splicing the first region and the second region.

[0006] In an optional implementation, the pre-stitching the first region and the second region to obtain a raw stitching region containing a stitching line comprises: determining a stitching line for stitching the first region and the second region based on first boundary information of the first region and second boundary information of the second region; the first boundary information comprises first height values corresponding to respective first pixel points on a first boundary of the first region, and the second boundary information comprises second height values corresponding to respective second pixel points on a second boundary of the second region; and performing mapping processing on the first pixel points and the second pixel points respectively based on height values corresponding to respective third pixel points on the stitching line to obtain the raw stitching region containing the stitching line.

[0007] In an optional implementation, the performing mapping processing on the first pixel points and the second pixel points respectively based on height values corresponding to respective third pixel points on the stitching line to obtain the raw stitching region containing the stitching line comprises: for any one of the first pixel points and the second pixel points, determining a target third pixel point corresponding to the pixel point based on distance information between the pixel point and the respective third pixel points; determining a mapping coefficient corresponding to the pixel point when performing mapping processing on the pixel point based on distance information between the pixel point and the target third pixel point corresponding to the pixel point; the mapping coefficient is used to determine an influence degree of a height value corresponding to the target third pixel point on the mapping processing on the pixel point; and performing mapping processing on the first pixel points and the second pixel points respectively based on the height values corresponding to the respective third pixel points on the stitching line and the mapping coefficients corresponding to the first pixel points and the second pixel points respectively to obtain the raw stitching region containing the stitching line.

[0008] In an optional implementation, the obtaining the second high-frequency terrain data representing a ground feature corresponding to the stitching line comprises: determining a third region consistent with a ground feature of the first region and a fourth region consistent with a ground feature of the second region; performing frequency division processing on the third region to obtain third high-frequency terrain data and performing frequency division processing on the fourth region to obtain fourth high-frequency terrain data; and performing cross mapping processing on high-frequency data corresponding to the same pixel points in the third high-frequency terrain data and the fourth high-frequency terrain data to obtain the second high-frequency terrain data.

[0009] In an optional implementation, the interpolating the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data comprises: performing data alignment processing on the first high-frequency terrain data and the second high-frequency terrain data, and determining sub high-frequency terrain data corresponding to each third pixel point on the first high-frequency terrain data and the second high-frequency terrain data on the splicing line; taking the sub high-frequency terrain data as reference data of the interpolation processing, and performing interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data after the data alignment processing to obtain the target high-frequency terrain data.

[0010] In an optional implementation, the method further comprises: in response to the target terrain region comprising a plurality of regions, determining at least one group of to-be-spliced region pairs from the plurality of regions; the to-be-spliced region pair comprises a first target region and a second target region adjacent to each other; for each group of to-be-spliced region pairs in the at least one group of to-be-spliced region pairs, performing splicing processing on the first target region and the second target region in the group of to-be-spliced region pairs to obtain a second target spliced region corresponding to the group of to-be-spliced region pairs; and determining a third target spliced region corresponding to the target terrain region based on the second target spliced regions respectively corresponding to the at least one group of to-be-spliced region pairs.

[0011] In an optional implementation, the method further comprises: based on the region model information corresponding to the third target spliced region, rendering and displaying the third target spliced region.

[0012] In a second aspect, the embodiments of the present disclosure further provide a terrain region splicing device, applied to rendering and displaying a target scene; the target scene comprises at least one virtual object to be displayed; the rendering and displaying device comprises: a first processing module, configured to perform pre-splicing processing on the first region and the second region to obtain an original spliced region comprising a splicing line; a second processing module, configured to perform frequency division processing on the original spliced region to obtain low-frequency terrain data representing height change characteristics of the original spliced region, and first high-frequency terrain data representing current ground surface characteristics of the original spliced region; a third processing module, configured to obtain second high-frequency terrain data representing ground surface characteristics corresponding to the splicing line, and perform interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data; and a fourth processing module, configured to fuse the low-frequency terrain data and the target high-frequency terrain data to obtain a first target spliced region obtained by splicing the first region and the second region.

[0013] In an optional implementation, when the first processing module performs pre-stitching processing on the first region and the second region to obtain a raw stitching region containing a stitching line, the first processing module is configured to: determine the stitching line for stitching the first region and the second region based on first boundary information of the first region and second boundary information of the second region; the first boundary information includes first height values corresponding to respective first pixel points on a first boundary of the first region, and the second boundary information includes second height values corresponding to respective second pixel points on a second boundary of the second region; and perform mapping processing on the first pixel points and the second pixel points respectively based on height values corresponding to respective third pixel points on the stitching line to obtain the raw stitching region containing the stitching line.

[0014] In an optional implementation, when the first processing module performs mapping processing on the first pixel points and the second pixel points respectively based on height values corresponding to respective third pixel points on the stitching line to obtain the raw stitching region containing the stitching line, the first processing module is configured to: for any one of the first pixel points and the second pixel points, determine a target third pixel point corresponding to the pixel point based on distance information between the pixel point and the respective third pixel points; determine a mapping coefficient corresponding to the pixel point when performing mapping processing on the pixel point based on distance information between the pixel point and the target third pixel point corresponding to the pixel point; the mapping coefficient is used to determine an influence degree of the height value corresponding to the target third pixel point on the mapping processing on the pixel point; and perform mapping processing on the first pixel points and the second pixel points respectively based on the height values corresponding to the respective third pixel points on the stitching line and the mapping coefficients respectively corresponding to the first pixel points and the second pixel points to obtain the raw stitching region containing the stitching line.

[0015] In an optional implementation, when the third processing module obtains the second high-frequency terrain data representing the ground feature corresponding to the stitching line, the third processing module is configured to: determine a third region consistent with the ground feature of the first region and a fourth region consistent with the ground feature of the second region; perform frequency division processing on the third region to obtain third high-frequency terrain data and perform frequency division processing on the fourth region to obtain fourth high-frequency terrain data; and perform cross mapping processing on high-frequency data corresponding to the same pixel points in the third high-frequency terrain data and the fourth high-frequency terrain data to obtain the second high-frequency terrain data.

[0016] In an alternative implementation, when the third processing module interpolates the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data, the third processing module is configured to: perform data alignment processing on the first high-frequency terrain data and the second high-frequency terrain data, and determine sub high-frequency terrain data corresponding to each third pixel point on the first high-frequency terrain data and the second high-frequency terrain data on the splicing line; and take the sub high-frequency terrain data as reference data for the interpolation processing, and perform interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data after the data alignment processing to obtain the target high-frequency terrain data.

[0017] In an alternative implementation, the splicing device further comprises a fifth processing module configured to: in response to the target terrain region comprising a plurality of regions, determine at least one set of pairs of regions to be spliced from the plurality of regions, wherein each pair of regions to be spliced comprises a first target region and a second target region that are adjacent to each other; perform splicing processing on the first target region and the second target region in each pair of regions to be spliced in the at least one set of pairs of regions to be spliced to obtain a second target spliced region corresponding to the pair of regions to be spliced; and determine a third target spliced region corresponding to the target terrain region based on the second target spliced regions corresponding to the at least one set of pairs of regions to be spliced.

[0018] In an alternative implementation, the fifth processing module is further configured to: render and display the third target spliced region based on the region model information corresponding to the third target spliced region.

[0019] In a third aspect, the optional implementation of the present disclosure further provides a computer device, a processor, and a memory, wherein the memory stores machine readable instructions executable by the processor, and the processor is configured to execute the machine readable instructions stored in the memory, and the machine readable instructions are configured to perform the steps of the first aspect or any possible implementation of the first aspect when executed by the processor.

[0020] In a fourth aspect, the optional implementation of the present disclosure further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is configured to perform the steps of the first aspect or any possible implementation of the first aspect when executed.

[0021] The effects of the splicing device for terrain regions, the computer device, and the computer readable storage medium are described above in the description of the splicing method for terrain regions, and thus will not be described here again.

[0022] The terrain region splicing method, device, computer device and storage medium provided by the embodiments of the present disclosure can adjust the high-frequency terrain data part in the obtained original splicing region in view of the terrain data at the splicing line after pre-splicing processing is performed on the first region and the second region, so that the obtained target high-frequency data can better reflect the ground surface features of the splicing line part. Therefore, the first target splicing region obtained after the low-frequency terrain data of the original splicing region and the target high-frequency data are spliced can better transition and connect the different terrain features of the first region and the second region, so that the first target splicing region obtained after splicing is more realistic and natural.

[0023] In order to make the above objectives, characteristics and advantages of the present disclosure more apparent and understandable, the following preferred embodiments are specifically described below, and the accompanying drawings are described in detail as follows. BRIEF DESCRIPTION OF DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following will briefly introduce the drawings needed to be used in the embodiments. The drawings herein are incorporated into the specification and form a part of the specification, which show the embodiments consistent with the present disclosure, and are used to illustrate the technical solutions of the present disclosure together with the specification. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as a limitation on the scope, and for those skilled in the art, other related drawings can also be obtained without creative labor.

[0025] Figure 1 A flowchart of a terrain region splicing method provided by the embodiments of the present disclosure is shown;

[0026] Figure 2 A schematic diagram of a plurality of regions constituting a target terrain region provided by the embodiments of the present disclosure is shown;

[0027] Figure 3 A schematic diagram of a first region and a second region provided by the embodiments of the present disclosure is shown;

[0028] Figure 4 An original splicing region containing a splicing line provided by the embodiments of the present disclosure is shown;

[0029] Figure 5 A schematic diagram of low-frequency terrain data provided by the embodiments of the present disclosure is shown;

[0030] Figure 6 A schematic diagram of first high-frequency terrain data provided by the embodiments of the present disclosure is shown;

[0031] Figure 7 A schematic diagram of second high-frequency terrain data provided by the embodiments of the present disclosure is shown;

[0032] Figure 8 A schematic diagram of a first target splicing region provided by an embodiment of the present disclosure is shown;

[0033] Figure 9 A schematic diagram of a plurality of regions in a target terrain region after splicing provided by an embodiment of the present disclosure is shown;

[0034] Figure 10 A schematic diagram of a terrain region splicing device provided by an embodiment of the present disclosure is shown;

[0035] Figure 11 A schematic diagram of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0036] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following will be combined with the accompanying drawings of the embodiments of the present disclosure to make a clear and complete description of the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure described and shown herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the claimed present disclosure, but only represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0037] It is found through research that when a larger scene such as a game scene is constructed, a plurality of regions divided under the scene are designed for terrain, and then the plurality of regions after the terrain design are loaded to form a larger size image, and then a region splicing is realized by using a boundary blurring processing manner between regions. In this manner, the boundary blurring processing manner can cause unclear expression of terrain features at the boundary between regions, such as lower definition at the boundary part, or poor transition and connection of adjacent two regions with different terrain features at the boundary, which can all cause distortion of the spliced terrain region at the boundary.

[0038] In addition, when a scene is constructed by using a region splicing manner, a plurality of regions need to be loaded together, and the boundary between each two adjacent regions needs to be blurred, so that the calculation amount is large when blurring is performed, and the computing power of the computer device is difficult to bear.

[0039] Based on the above research, the present disclosure provides a terrain region splicing method. When splicing a first region and a second region in a target terrain region, a pre-splicing process can be used to obtain an original splicing region containing a splicing line. Since the region is processed by frequency division, the terrain features of the region can be determined in the obtained high-frequency region. Therefore, when the terrain features at the splicing line of the original splicing region are reserved, the second high-frequency terrain data representing the corresponding ground features of the splicing line is specifically obtained, and the first high-frequency terrain data obtained by processing the original splicing region by frequency division is used for interpolation processing to obtain target high-frequency terrain data representing the corresponding ground features at the splicing line position, thereby obtaining a first target splicing region after splicing the first region and the second region. In this way, the first target splicing region obtained by splicing the low-frequency terrain data of the original splicing region and the above target high-frequency data can better transition and connect the different terrain features of the first region and the second region, thereby making the first target splicing region obtained after splicing more realistic and natural.

[0040] In addition, when splicing regions in a target terrain region, the splicing method provided by the embodiments of the present disclosure specifically splices the first region and the second region which have splicing requirements. Compared with the method of loading and splicing all terrain regions in the target terrain region, the amount of data to be processed is smaller, and the amount of calculation when splicing is also smaller, so it is more suitable for computer devices with general computing power.

[0041] The above-mentioned defects are the results of the inventors' practice and careful research, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to solve the above-mentioned problems should be the contributions of the inventors to the present disclosure.

[0042] It should be noted that similar reference numbers and letters represent similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0043] To facilitate the understanding of the present embodiment, first, a terrain region splicing method disclosed by the present embodiment is introduced in detail, the execution subject of the terrain region splicing method provided by the present embodiment is generally a computer device with certain computing power, which for example includes: a terminal device or a server or other processing device, the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementation manners, the terrain region splicing method can be realized by a processor calling computer readable instructions stored in a memory.

[0044] The terrain region splicing method provided by the present embodiment can be applied to the fields of games, animation and film and television production, etc., for example, in the field of games, it is applied to the production of game scenes, or in the field of animation and film and television production, it is applied to the production of animation scenes. In specific implementation, a game scene or an animation scene, etc., is taken as a target terrain region explained in the present embodiment. Since the target terrain region is generally large, for example, the design size is 10 kilometers x 10 kilometers, in order to obtain the target terrain region, the target terrain region will be divided into a plurality of regions with smaller size, for example, a region with a size of 10 meters x 10 meters is obtained. Here, the size of the division is not limited, and the way of division is also not limited. In the case of obtaining a plurality of designed terrain regions, by splicing adjacent regions, the target terrain region obtained by splicing a plurality of regions can be obtained.

[0045] The terrain region splicing method provided by the present embodiment is described below.

[0046] Referring to Figure 1 The flowchart of the terrain region splicing method provided by the present embodiment is shown, the method includes steps S101-S104, wherein:

[0047] S101: pre-splicing processing is performed on the first region and the second region to obtain an original splicing region containing a splicing line;

[0048] S102: frequency division processing is performed on the original splicing region to obtain low-frequency terrain data representing height change characteristics of the original splicing region, and first high-frequency terrain data representing current ground features of the original splicing region;

[0049] S103: Obtain second high-frequency terrain data representing a ground feature corresponding to the splicing line, and interpolate the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data.

[0050] S104: Fuse the low-frequency terrain data and the target high-frequency terrain data to obtain a first target splicing region after splicing the first region and the second region.

[0051] The above S101-S104 will be described in detail below.

[0052] For S101, first, the first region and the second region are described. Referring to FIG. 1, which is a schematic diagram of a plurality of regions constituting a target terrain region provided by an embodiment of the present disclosure, specifically including region A and region B, when splicing region A and region B, adjacent first region and second region are selected from region A and region B respectively, to realize smooth region splicing of region A and region B by using the first region and the second region. Figure 2 In the figure, the white boundary line is the boundary line corresponding to region A and region B on the horizontal plane of the target terrain region. Among them, the change characteristics of the ups and downs of region A and region B in the terrain are not the same, which can be realized by designing different terrain characteristics. Figure 2

[0053] Among them, when designing the terrain characteristics of region A and region B, it can be designed according to actual needs, specifically for example, it can be realized by setting corresponding height values for a plurality of pixel points corresponding to the region. For example, for a certain pixel point, if the height value of the pixel point is set to a larger value, and the height values of other pixel points near the pixel point are all set to smaller values, then in the region containing the pixel point, the pixel point can be made to appear as a protruding steep terrain by changing the height values.

[0054] Since the change characteristics of region A and region B in the terrain are not the same, it can be seen from the critical point of region A and region B in the schematic diagram that the height values of the corresponding pixel points at the critical point are not the same, and if region A and region B are directly spliced, the height values of the adjacent pixel points at the splicing point need to be the same. In the case where direct splicing cannot be performed, in the embodiment of the present disclosure, the first region and the second region for splicing are selected from region A and region B, and the first region and the second region are pre-spliced.

[0055] ​In one possible scenario, when selecting the first region and the second region from region A and region B respectively, a region of a certain width can be selected based on the boundary between region A and region B, such as a region with a width of 100 pixels, to select the first region from region A and the second region from region B; then, a first boundary can be determined from the selected first region and a second boundary can be determined from the selected second region, so as to use the first boundary and the second boundary to stitch region A and region B together.

[0056] For example, targeting Figure 2 Region A shown in the figure can be, for example, a region 100 pixels wide selected from the boundary as the first region, for example. Figure 3 As shown. Since the height value variation of pixels within region A is usually small, therefore, for Figure 3 The height value variation of each pixel on the newly obtained boundary of the first region extracted from the image is relatively small. This new boundary is designated as the first boundary 31. Similarly, a similar method can be used to determine the second region B, resulting in the second boundary 32. The height value variation of each pixel on the second boundary 32 is also relatively small. Thus, when using the first boundary information of the first boundary 31 and the second boundary information of the second boundary 32 to determine the stitching line, a stitching line with relatively small fluctuations in the height value of the corresponding pixels can be obtained. This results in a smoother terrain transition at the stitching line after pre-stitching the first and second regions.

[0057] In specific implementation, when pre-stitching the first region and the second region, the following method can be adopted: Based on the first boundary information of the first region and the second boundary information of the second region, a stitching line is determined to stitch the first region and the second region; the first boundary information includes the first height value corresponding to each first pixel on the first boundary of the first region, and the second boundary information includes the second height value corresponding to each second pixel on the second boundary of the second region; based on the height value corresponding to each third pixel on the stitching line, the first pixel and the second pixel are respectively mapped to obtain the original stitching region containing the stitching line.

[0058] The following explanation uses the determination of the first boundary information of the first region as an example. Before determining the first boundary information, the first boundary of the first region is first determined. The first boundary can be selected directly from the boundary of the first region that is adjacent to the second region, or a part of the first region can be extracted and another boundary parallel to that boundary formed after the extraction can be used as the first boundary.

[0059] Here, in the case of directly taking the boundary between the first region and the second region as the first boundary, since the height value of the corresponding pixel point at the boundary usually changes greatly when the terrain of the region is designed, that is, a large fluctuation is shown, therefore, the pre-splicing is performed using the boundary between the first region and the second region, and the splicing line is relatively rugged when splicing, so that the transition between the displayed first region and the second region is not smooth. Therefore, the selection of the first boundary in the embodiment of the present disclosure is specifically described by selecting a part of the first region, and then obtaining the first boundary from the selected region.

[0060] In a specific implementation, after the first boundary of the first region is determined, the first boundary information can be determined according to the first height value corresponding to each first pixel point on the first boundary; and the second boundary information of the second boundary can also be determined in a similar manner. The splicing line of the first region and the second region can be determined by using the first boundary information and the second boundary information. Specifically, each first pixel point on the first boundary can determine the second pixel point closest to the first pixel point on the second boundary.

[0061] Here, according to the correspondence between the first pixel point and the second pixel point, the corresponding first pixel point and the second pixel point can also be determined for each third pixel point on the splicing line of the first region and the second region. When determining the height value of each third pixel point, the average value of the first height value of the corresponding first pixel point and the second height value of the second pixel point can be used as the height value of the third pixel point. In this way, the splicing line of the first region and the second region can be determined.

[0062] After the splicing line is determined, the first pixel point and the second pixel point can be respectively mapped according to the height value of each third pixel point on the splicing line, to obtain the original splicing region containing the splicing line.

[0063] In a specific implementation, the original splicing region containing the splicing line can be obtained in the following manner: for any one of the first pixel point and the second pixel point, a target third pixel point corresponding to the pixel point is determined based on the distance information between the pixel point and each third pixel point; a mapping coefficient corresponding to the mapping processing of the pixel point is determined based on the distance information between the pixel point and the corresponding target third pixel point; the mapping coefficient is used to determine the influence degree of the height value corresponding to the target third pixel point on the mapping processing of the pixel point; the first pixel point and the second pixel point are respectively mapped based on the height value corresponding to each third pixel point on the splicing line, and the mapping coefficient corresponding to the first pixel point and the second pixel point respectively, to obtain the original splicing region containing the splicing line.

[0064] Specifically, in order to have a relatively smooth transition on the stitching line when stitching the first region and the second region by using the stitching line, the pixel points in the first region and the second region can be subjected to mapping processing with respect to the stitching line. Wherein, when determining a target third pixel point corresponding to any one of the first pixel points or the second pixel points on the stitching line, the third pixel point closest to the pixel point can be determined from the third pixel points as the target third pixel point through the distance information respectively corresponding between the pixel point and each third pixel point.

[0065] For any one of the first pixel points in the first region and the second pixel points in the second region, when performing mapping processing, for example, the rule of determining a larger mapping coefficient for the pixel points close to the stitching line can be followed, that is, for the pixel points close to the stitching line, the degree of influence of the height value of the corresponding target third pixel point at the stitching line is higher.

[0066] When determining the mapping coefficient corresponding to the mapping processing for the pixel point, if the distance information between the pixel point and the corresponding target third pixel point reflects that the pixel point is closer to the target third pixel point, the corresponding determined mapping coefficient is larger; if the distance information between the pixel point and the corresponding target third pixel point reflects that the pixel point is farther away from the target third pixel point, the corresponding determined mapping coefficient is smaller. In one possible case, the distance between the pixel point and the corresponding target third pixel point is inversely proportional to the mapping coefficient.

[0067] Generally, the value range of the mapping coefficient is set to be between 0 and 1, then for the pixel point farthest from the stitching line, the corresponding mapping coefficient is 0, that is, the original height value of the pixel point is retained; and for the pixel point closest to the stitching line, the corresponding mapping coefficient is 1, that is, the height value of the pixel point is mapped to the height value of the corresponding target third pixel point. For the remaining pixel points, the mapping processing can also be performed according to the determined mapping coefficient; after the mapping processing is performed on the first pixel points and the second pixel points respectively, the original stitching region containing the stitching line shown in FIG. 1B can be obtained. Figure 4

[0068] Here, by Figure 4 It can be seen that the original stitching region obtained after the pre-stitching is compared with the first region and the second region, which largely retains the terrain features, and due to the specific mapping processing manner, there will be no very obvious concave-convex change at the stitching line.

[0069] ​For the above S102, since the original stitching area obtained in the above step S101 still has fluctuation changes due to stitching at the stitching line, and the height mapping manner cannot make the stitching line better retain the ground features corresponding to the first area and the second area respectively. For example, if the first area includes a river and the second area includes sand, the obtained original stitching area cannot show the ground features at the water flow and sandstone boundary due to the mapping processing.

[0070] For the pre-stitching area, the frequency division processing manner can be used to obtain corresponding low-frequency terrain data and first high-frequency terrain data. The low-frequency terrain data can represent the height change characteristics of the original stitching area. For example, refer to FIG. 4, which is a schematic diagram of low-frequency terrain data provided by an embodiment of the present disclosure. Since the low-frequency terrain data is determined according to the results of the terrain design of the first area and the second area, it does not need to be adjusted. Figure 5

[0071] For the obtained first high-frequency terrain data, refer to FIG. 5, which is a schematic diagram of first high-frequency terrain data provided by an embodiment of the present disclosure. The first high-frequency terrain data can represent the current ground features of the original stitching area. In order to retain the ground features corresponding to the first area and the second area respectively at the stitching line after stitching the first area and the second area, the first high-frequency terrain data can be further processed. Details are described in the following step S103. Figure 6

[0072] For the above S103, in order to retain the ground features corresponding to the first area and the second area respectively at the stitching line, in the embodiment of the present disclosure, second high-frequency terrain data representing the ground features corresponding to the stitching line is obtained, and then the first high-frequency terrain data obtained above and the second high-frequency terrain data are used for interpolation processing to obtain target high-frequency terrain data retaining the ground features corresponding to the first area and the second area respectively.

[0073] In a specific implementation, when obtaining the second high-frequency terrain data representing the ground features corresponding to the stitching line, the following manner can be used: determining a third area consistent with the ground features of the first area and a fourth area consistent with the ground features of the second area; performing frequency division processing on the third area to obtain third high-frequency terrain data, and performing frequency division processing on the fourth area to obtain fourth high-frequency terrain data; and performing cross mapping processing on the high-frequency data corresponding to the same pixel points in the third high-frequency terrain data and the fourth high-frequency terrain data to obtain the second high-frequency terrain data.

[0074] ​​For example, the remaining region in the region A divided from the first region can be taken as the third region, so that the first region and the third region are adjacent in position and more consistent in details of the surface features. Alternatively, other regions with consistent surface features can be determined as the third region according to the surface features of the first region, such as mountains, rivers or sandy land. The method for determining the third region can be selected according to actual conditions, which is not limited herein. Similarly, the fourth region with consistent surface features of the second region can also be determined in a similar manner, which is not repeated herein.

[0075] In a possible case, the size of the third region is consistent with the size of the fourth region. In the case of obtaining the third region and the fourth region, the third high-frequency terrain data of the third region and the fourth high-frequency terrain data of the fourth region can be obtained by using the frequency division processing. Since the size of the third region is consistent with the size of the fourth region, the high-frequency terrain data corresponding to the same pixel point in the third high-frequency terrain data and the fourth high-frequency terrain data can be directly cross-mapped to obtain the second high-frequency terrain data. For example, refer to FIG. 6, which is a schematic diagram of the second high-frequency terrain data provided by an embodiment of the present disclosure. Figure 7

[0076] Since the third high-frequency terrain data and the fourth high-frequency data of the second high-frequency terrain data obtained by cross-mapping can represent the surface features of the first region and the surface features of the second region respectively, the second high-frequency terrain data can reflect the surface features at the splicing line. Further, the high-frequency data containing the surface features at the splicing line can be obtained by using the second high-frequency terrain data and the first high-frequency terrain data for interpolation processing.

[0077] In a specific implementation, when obtaining the target high-frequency terrain data, the following method can be used: performing data alignment processing on the first high-frequency terrain data and the second high-frequency terrain data, and determining the sub high-frequency terrain data corresponding to each third pixel point on the splicing line in the first high-frequency terrain data and the second high-frequency terrain data respectively; taking the sub high-frequency terrain data as the reference data of the interpolation processing, performing interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data after the data alignment processing, to obtain the target high-frequency terrain data.

[0078] ​In the data alignment processing of the first high-frequency terrain data and the second high-frequency terrain data, the splicing line can be used to align the corresponding sub-high-frequency terrain data of the first high-frequency terrain data and the second high-frequency terrain data, so as to use the sub-high-frequency terrain data as the reference data to perform the interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data. In the interpolation processing, the interpolation coefficient used can be subject to the normal distribution, and the interpolation coefficient corresponding to the pixel point at the reference data is the maximum interpolation coefficient in the normal distribution, for example, 1. For the pixel points corresponding to the remaining high-frequency terrain data, the interpolation coefficient is determined according to the distance between the pixel point and the nearest third pixel point corresponding to the reference data. The determination of the mapping coefficient is similar to the above, and will not be described here. In this way, the target high-frequency terrain data can be obtained.

[0079] After obtaining the low-frequency terrain data representing the height change characteristics of the original splicing region by S102 and obtaining the target high-frequency terrain data containing the ground features at the splicing line by S103, the low-frequency terrain data and the target high-frequency terrain data can be fused to obtain a first target splicing region after splicing the first region and the second region. For example, refer to FIG. 6, which is a schematic diagram of a first target splicing region provided by an embodiment of the present disclosure. In this way, the obtained first target splicing region can retain the height change characteristics of the first region and the second region and the ground features corresponding to the first region and the second region respectively, and the transition at the splicing line is smoother, and the ground features after the fusion of the first region and the second region can be better retained, so that the transition at the splicing line is more realistic. Figure 8

[0080] After obtaining the first target splicing region, the original first region and the second region can be replaced to complete the splicing of the region A and the region B. For example, refer to FIG. 6, which is a schematic diagram of a first target splicing region provided by an embodiment of the present disclosure. In this way, the obtained first target splicing region can retain the height change characteristics of the first region and the second region and the ground features corresponding to the first region and the second region respectively, and the transition at the splicing line is smoother, and the ground features after the fusion of the first region and the second region can be better retained, so that the transition at the splicing line is more realistic. Figure 9 Figure 2 Compared with the direct splicing of the region A and the region B shown in FIG. 5, the transition at the splicing line is smoother, there is no obvious concave-convex change, and the ground features in the first region and the second region can be better retained, which is more realistic.

[0081] ​​In another embodiment of the present disclosure, a specific embodiment of stitching a plurality of regions in a target terrain region to obtain a complete third target stitching region of the target terrain region is also provided. In this embodiment, the target terrain region includes a plurality of regions, and two adjacent regions (hereinafter referred to as a first target region and a second target region) can be taken as a pair of regions to be stitched.

[0082] In a specific implementation, for each pair of regions to be stitched in the at least one pair of regions to be stitched, the first target region and the second target region in the pair of regions to be stitched can be stitched to obtain a corresponding second target stitching region of the pair of regions to be stitched; and then, based on the second target stitching regions corresponding to the at least one pair of regions to be stitched respectively, a third target stitching region corresponding to the target terrain region is determined.

[0083] In this embodiment, the stitching of the first target region and the second target region can be performed in the manner of stitching region A and region B as described above, which is not repeated here. Since the corresponding second target stitching region can be determined for each pair of regions to be stitched in the target terrain region, the third target stitching region corresponding to the complete target terrain region can be obtained by using the second target stitching regions corresponding to the at least one pair of regions to be stitched respectively.

[0084] In this way, it can be known from the above embodiments that the second target stitching region obtained by stitching the first target region and the second target region can have a relatively smooth transition at the stitching line, and can represent the ground features corresponding to the first target region and the second target region respectively, so that the third target stitching region corresponding to the complete target terrain region is also more realistic.

[0085] In another embodiment of the present disclosure, for the obtained third target stitching region, the third target stitching region can also be rendered based on the region model information corresponding to the third target stitching region. In this embodiment, the third target stitching region is obtained by stitching, and the adjustment of the region model information corresponding to each target region in the third target stitching region is also included, so that the region model information corresponding to the third target stitching region can also reflect the natural terrain features of the target terrain region after rendering, so that the picture containing the third target stitching region after rendering is more realistic.

[0086] The terrain region splicing method, device, computer device and storage medium provided by the present disclosure can obtain an original splicing region containing a splicing line by pre-splicing processing when splicing a first region and a second region in a target terrain region. Since the region is processed by frequency division, the terrain features of the region can be determined in the obtained high-frequency region. Therefore, when the terrain features at the splicing line of the original splicing region are reserved, the second high-frequency terrain data representing the corresponding ground features of the splicing line is specifically obtained, and the first high-frequency terrain data obtained by frequency division processing on the original splicing region is used for interpolation processing to obtain target high-frequency terrain data representing the corresponding ground features at the position of the splicing line, so as to obtain a first target splicing region after splicing the first region and the second region. In this way, the first target splicing region obtained by splicing the low-frequency terrain data of the original splicing region and the above target high-frequency data can better transition and connect the different terrain features of the first region and the second region, so that the first target splicing region obtained after splicing is more realistic and natural.

[0087] Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0088] Based on the same inventive concept, the present disclosure also provides a terrain region splicing device corresponding to the terrain region splicing method. Since the device in the present disclosure solves the problem by a similar principle to the above terrain region splicing method, the implementation of the device can be referred to the implementation of the method, and the repeated parts will not be described again.

[0089] Referring to Figure 10 FIG. 1 is a schematic diagram of a terrain region splicing device provided by an embodiment of the present disclosure, which is applied to rendering and displaying a target scene; the target scene includes at least one virtual object to be displayed; the device includes a first processing module 11, a second processing module 12, a third processing module 13, and a fourth processing module 14; wherein,

[0090] The first processing module 11 is configured to perform pre-splicing processing on the first region and the second region to obtain an original splicing region containing a splicing line.

[0091] The second processing module 12 is configured to perform frequency division processing on the original splicing region to obtain low-frequency terrain data representing the height change features of the original splicing region and first high-frequency terrain data representing the current ground features of the original splicing region.

[0092] The third processing module 13 is configured to acquire second high-frequency terrain data representing a ground feature corresponding to the splicing line, and perform interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data.

[0093] The fourth processing module 14 is configured to fuse the low-frequency terrain data and the target high-frequency terrain data to obtain a first target splicing region after splicing the first region and the second region.

[0094] In an optional implementation, when the first processing module 11 performs pre-splicing processing on the first region and the second region to obtain an original splicing region containing a splicing line, the first processing module 11 is configured to determine the splicing line for splicing the first region and the second region based on first boundary information of the first region and second boundary information of the second region, wherein the first boundary information includes first height values corresponding to respective first pixel points on a first boundary of the first region, and the second boundary information includes second height values corresponding to respective second pixel points on a second boundary of the second region; and perform mapping processing on the first pixel points and the second pixel points respectively based on height values corresponding to respective third pixel points on the splicing line to obtain the original splicing region containing the splicing line.

[0095] In an optional implementation, when the first processing module 11 performs mapping processing on the first pixel points and the second pixel points respectively based on height values corresponding to respective third pixel points on the splicing line to obtain the original splicing region containing the splicing line, the first processing module 11 is configured to, for any one of the first pixel points and the second pixel points, determine a target third pixel point corresponding to the pixel point based on distance information between the pixel point and the respective third pixel points; determine a mapping coefficient corresponding to the pixel point when performing mapping processing on the pixel point based on distance information between the pixel point and the target third pixel point corresponding to the pixel point; the mapping coefficient is used to determine an influence degree of the height value corresponding to the target third pixel point on the mapping processing on the pixel point; and perform mapping processing on the first pixel points and the second pixel points respectively based on the height values corresponding to the respective third pixel points on the splicing line and the mapping coefficients respectively corresponding to the first pixel points and the second pixel points to obtain the original splicing region containing the splicing line.

[0096] In an optional implementation, the third processing module 13, when acquiring the second high-frequency terrain data representing the ground features corresponding to the splicing line, is configured to: determine a third region consistent with the ground features of the first region and a fourth region consistent with the ground features of the second region; perform frequency division processing on the third region to obtain third high-frequency terrain data, and perform frequency division processing on the fourth region to obtain fourth high-frequency terrain data; and perform cross mapping processing on high-frequency data corresponding to the same pixel points in the third high-frequency terrain data and the fourth high-frequency terrain data to obtain the second high-frequency terrain data.

[0097] In an optional implementation, the third processing module 13, when performing interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data, is configured to: perform data alignment processing on the first high-frequency terrain data and the second high-frequency terrain data, and determine sub high-frequency terrain data corresponding to each third pixel point on the splicing line in the first high-frequency terrain data and the second high-frequency terrain data, respectively; and perform interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data after the data alignment processing, taking the sub high-frequency terrain data as reference data of the interpolation processing, to obtain the target high-frequency terrain data.

[0098] In an optional implementation, the splicing apparatus further includes a fifth processing module 15 configured to: in response to the target terrain region including a plurality of regions, determine at least one group of pairs of to-be-spliced regions from the plurality of regions, wherein each pair of to-be-spliced regions includes a first target region and a second target region that are adjacent to each other; perform splicing processing on the first target region and the second target region in each pair of to-be-spliced regions in the at least one group of pairs of to-be-spliced regions to obtain a second target spliced region corresponding to the pair of to-be-spliced regions; and determine a third target spliced region corresponding to the target terrain region based on the second target spliced regions corresponding to the at least one group of pairs of to-be-spliced regions, respectively.

[0099] In an optional implementation, the fifth processing module 15 is further configured to: render and display the third target spliced region based on region model information corresponding to the third target spliced region.

[0100] The processing flow of each module in the apparatus and the interaction flow between the modules can refer to the related descriptions in the method embodiments, and will not be described in detail here.

[0101] The present disclosure also provides a computer device, as shown in Figure 11 The computer device structure schematic diagram provided by the present disclosure includes:

[0102] The processor 10 and a memory 20; the memory 20 stores machine readable instructions executable by the processor 10, the processor 10 is used to execute the machine readable instructions stored in the memory 20, when the machine readable instructions executed by the processor 10, the processor 10 executes the following steps:

[0103] The first region and the second region are pre-stitched to obtain an original stitching region containing a stitching line; the original stitching region is subjected to frequency division processing to obtain low-frequency terrain data representing the height variation characteristics of the original stitching region and first high-frequency terrain data representing the current ground features of the original stitching region; second high-frequency terrain data representing the ground features corresponding to the stitching line are obtained, and the first high-frequency terrain data and the second high-frequency terrain data are subjected to interpolation processing to obtain target high-frequency terrain data; the low-frequency terrain data and the target high-frequency terrain data are fused to obtain a first target stitching region after the first region and the second region are stitched.

[0104] The above-mentioned memory 20 includes a memory 210 and an external memory 220; the memory 210 here is also called an internal memory, used to temporarily store operation data in the processor 10, and exchange data with the external memory 220 such as a hard disk, and the processor 10 exchanges data with the external memory 220 through the memory 210.

[0105] The specific execution process of the above-mentioned instructions can refer to the steps of the terrain region stitching method described in the embodiments of the present disclosure, which will not be described here.

[0106] The embodiments of the present disclosure also provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to perform the steps of the terrain region stitching method described in the above method embodiments. Wherein, the storage medium can be a volatile or non-volatile computer readable storage medium.

[0107] The embodiments of the present disclosure also provide a computer program product, which carries a program code, and the instructions included in the program code can be used to execute the steps of the terrain region stitching method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be described here.

[0108] Wherein, the above-mentioned computer program product can be specifically realized by hardware, software or combination thereof. In one optional embodiment, the computer program product is specifically embodied as a computer storage medium, and in another optional embodiment, the computer program product is specifically embodied as a software product, such as software development kit (Software Development Kit, SDK) and the like.

[0109] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here. In several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and another division can be made in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some communication interfaces, devices or units, and can be electrical, mechanical or other forms.

[0110] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., they can be located in one place or distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0111] In addition, the functional units in each embodiment of the present disclosure can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit.

[0112] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solutions of the present disclosure essentially or the part of the prior art or the part of the technical solutions can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in the various embodiments of the present disclosure. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program codes that can be stored in the medium.

[0113] Finally, it should be noted that the above-described embodiments are merely specific embodiments of the present disclosure, used to illustrate the technical solutions of the present disclosure, and are not intended to limit the present disclosure. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can make modifications or easy changes to the technical solutions described in the foregoing embodiments, or easily think of changes or equivalent replacements for some of the technical features; and these modifications, changes or replacements do not cause the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1. A method of stitching a terrain area, characterized by, The application is applied to splicing of a first region and a second region in a target terrain area; the splicing method comprises: performing pre-splicing processing on the first region and the second region to obtain an original splicing region containing a splicing line; performing frequency division processing on the original splicing region to obtain low-frequency terrain data representing height variation characteristics of the original splicing region and first high-frequency terrain data representing current ground surface characteristics of the original splicing region; obtaining second high-frequency terrain data representing ground surface characteristics corresponding to the splicing line, and performing interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data; fusing the low-frequency terrain data and the target high-frequency terrain data to obtain a first target splicing region after splicing of the first region and the second region, wherein the obtaining of the second high-frequency terrain data representing ground surface characteristics corresponding to the splicing line comprises: determining a third region consistent with ground surface characteristics of the first region and a fourth region consistent with ground surface characteristics of the second region; performing frequency division processing on the third region to obtain third high-frequency terrain data and performing frequency division processing on the fourth region to obtain fourth high-frequency terrain data; performing cross mapping processing on high-frequency data corresponding to the same pixel points in the third high-frequency terrain data and the fourth high-frequency terrain data to obtain the second high-frequency terrain data.

2. The method of claim 1, wherein, The pre-splicing processing on the first region and the second region to obtain an original splicing region containing a splicing line comprises: determining a splicing line for splicing the first region and the second region based on first boundary information of the first region and second boundary information of the second region; the first boundary information comprises first height values corresponding to respective first pixel points on a first boundary of the first region, and the second boundary information comprises second height values corresponding to respective second pixel points on a second boundary of the second region; performing mapping processing on the first pixel points and the second pixel points respectively based on height values corresponding to respective third pixel points on the splicing line to obtain an original splicing region containing the splicing line.

3. The method of claim 2, wherein, The mapping processing on the first pixel points and the second pixel points respectively based on height values corresponding to respective third pixel points on the splicing line to obtain an original splicing region containing the splicing line comprises: for any one of the first pixel points and the second pixel points, determining a target third pixel point corresponding to the pixel point based on distance information between the pixel point and the respective third pixel points; determining a mapping coefficient corresponding to the pixel point when performing mapping processing on the pixel point based on distance information between the pixel point and the corresponding target third pixel point; the mapping coefficient is used to determine an influence degree of the height value corresponding to the target third pixel point on the mapping processing on the pixel point. The first pixel point and the second pixel point are respectively mapped based on the height values corresponding to the third pixel points on the splicing line and the mapping coefficients corresponding to the first pixel point and the second pixel point respectively, to obtain an original splicing region containing the splicing line.

4. The method of claim 1, wherein, The interpolation processing of the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data comprises: performing data alignment processing on the first high-frequency terrain data and the second high-frequency terrain data, and determining the sub-high-frequency terrain data corresponding to each third pixel point on the splicing line in the first high-frequency terrain data and the second high-frequency terrain data respectively; performing interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data after data alignment processing, taking the sub-high-frequency terrain data as reference data of the interpolation processing, to obtain the target high-frequency terrain data.

5. The method of claim 1, wherein, Further comprising: in response to the target terrain region comprising a plurality of regions, determining at least one group of to-be-spliced region pairs from the plurality of regions; the to-be-spliced region pair comprises adjacent first and second target regions; for each group of to-be-spliced region pairs in the at least one group of to-be-spliced region pairs, performing splicing processing on the first and second target regions in the group of to-be-spliced region pairs to obtain a second target splicing region corresponding to the group of to-be-spliced region pairs; determining a third target splicing region corresponding to the target terrain region based on the second target splicing regions corresponding to the at least one group of to-be-spliced region pairs.

6. The method of claim 5, wherein, Further comprising: based on the region model information corresponding to the third target splicing region, rendering and displaying the third target splicing region.

7. A terrain area stitching apparatus characterized by comprising: The terrain region splicing device is applied to splicing of a first region and a second region in a target terrain region, and comprises: a first processing module configured to perform pre-splicing processing on the first region and the second region to obtain an original splicing region containing a splicing line; a second processing module configured to perform frequency division processing on the original splicing region to obtain low-frequency terrain data representing height variation characteristics of the original splicing region and first high-frequency terrain data representing current ground surface characteristics of the original splicing region; a third processing module configured to obtain second high-frequency terrain data representing ground surface characteristics corresponding to the splicing line, and perform interpolation processing on the first high-frequency terrain data and the second high-frequency terrain data to obtain target high-frequency terrain data; a fourth processing module configured to fuse the low-frequency terrain data and the target high-frequency terrain data to obtain a first target splicing region after splicing of the first region and the second region, wherein the third processing module is configured to: determine a third region consistent with the ground surface characteristics of the first region and a fourth region consistent with the ground surface characteristics of the second region; perform frequency division processing on the third region to obtain third high-frequency terrain data, and perform frequency division processing on the fourth region to obtain fourth high-frequency terrain data; Cross-mapping high frequency data corresponding to the same pixel point in the third high frequency terrain data and the fourth high frequency terrain data to obtain the second high frequency terrain data.

8. A computer device, comprising: The method comprises the following steps: A processor and a memory are provided, wherein the memory stores machine readable instructions executable by the processor, and the processor is configured to execute the machine readable instructions stored in the memory.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is run by a computer device, and the computer device executes the steps of the terrain region splicing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Multi-scale terrain cutting and splicing method

    CN112084280A

  • Image processing method and device

    CN113077387A