Unlock instant, AI-driven research and patent intelligence for your innovation.

A landform smoothing method, device, computer equipment and storage medium

A landform and smoothing technology, applied in the field of image processing, can solve the problem of destroying the special nature of the landform and not being applicable

Active Publication Date: 2021-09-14
上海米哈游网络科技股份有限公司
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method is not suitable for all landforms. For some special landforms, such operations will destroy some special properties of the landform

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A landform smoothing method, device, computer equipment and storage medium
  • A landform smoothing method, device, computer equipment and storage medium
  • A landform smoothing method, device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0072] Figure 1a It is a flow chart of the landform smoothing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of processing landform elements in an image. This method can be realized by a landform smoothing device, which is configured in a computer device. Specifically, it can be Implemented by software and / or hardware in the device. Such as Figure 1a As shown, the landform smoothing method specifically includes:

[0073] S110. When it is detected that the brush map function is triggered during the frame-by-frame playback of image frames, determine and record the brush map covered in each image frame during the movement of the brush map after the brush map function is triggered area information.

[0074] Specifically, the process of smoothing the landform can be called the process of landform engraving. The engraving operation on the landform is completed through the terrain brush. It is displayed in the shape of a b...

Embodiment 2

[0089] figure 2 It is a flow chart of a landform smoothing method provided by Embodiment 2 of the invention. This embodiment provides a method for determining and recording the coverage area of ​​the brush map based on each optional solution in the foregoing embodiments. Such as figure 2 As shown, the landform smoothing method provided in the embodiment of the present invention includes the following steps:

[0090] S210. Create an overlay mask image when it is detected that the brush image function is triggered in the process of playing the image frame by frame.

[0091] Similarly, suppose that in each image frame, the target engraving area to be engraved is a rectangular area whose length and width are M and N respectively, and the surface height map of each pixel in the rectangular area is h(x, y) , where x=1, 2,..., M, y=1, 2,..., N. Then, the coverage mask map is a map with the same size as the target area to be carved, which can be expressed as m(x, y), where x=1, 2,...

Embodiment 3

[0102] image 3 A schematic structural diagram of a landform smoothing device provided by Embodiment 3 of the present invention is shown, and this embodiment of the present invention is applicable to processing landform elements in an image.

[0103] Such as image 3 As shown, the landform smoothing device in the embodiment of the present invention includes: a brush map coverage area determination module 310 , a ground surface interior height adjustment module 320 and a ground surface edge height adjustment module 330 .

[0104] Wherein, the brush map coverage area determination module 310 is used to determine and record the movement of the brush map after the brush map function is triggered when it is detected that the brush map function is triggered in the process of playing image frames frame by frame. In the process, the area information covered in each image frame; the interior surface height adjustment module 320 is used to cover the brush map in the current image frame...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the present invention discloses a landform smoothing method, device, device and medium, wherein the method includes: when it is detected that the function of the brush map is triggered during the process of playing image frames frame by frame, determining and recording the function of the brush map After being triggered, the area information covered by the brush map in each image frame during the movement process; for each image frame, based on the attenuation information corresponding to the brush map Adjust the surface height value of the pixel; when the brush map function is released, determine the edge sub-area of ​​the area covered by the brush map according to the recorded area information, and smooth the surface height value corresponding to the edge sub-area to Complete terrain smoothing. The technical solution of the embodiment of the present invention solves the problem in the prior art that the smoothing effect of the special landform is not good; it can improve the effect of smoothing the landform area in the image, so that the landform in the image better conforms to the actual landform situation .

Description

technical field [0001] The embodiments of the present invention relate to the technical field of image processing, and in particular to a terrain smoothing method, device, computer equipment and storage medium. Background technique [0002] In image processing, it is necessary to perform detailed processing on some objects in the image, such as smoothing or sharpening the image containing landform elements, so that various landforms are more in line with the actual scene. For example, processing detailed images in game scenes. Specifically, the game scene refers to restoring available elements such as buildings, trees, sky, and roads in the game according to the requirements of the game planning. For road elements, it is necessary to smooth the terrain in the road. [0003] At present, the existing landform smooth transition algorithm achieves the desired effect by averaging the surface height information within a certain range around the target point. However, this metho...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T5/00
CPCG06T5/70
Inventor 曹阳陆秉君
Owner 上海米哈游网络科技股份有限公司