Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Map rendering method and device

A map and rendering technology, which is applied in the field of map rendering methods and devices, can solve the problems of high hardware resource requirements and large hardware resource consumption, and achieve the effect of reducing consumption and improving visual experience

Pending Publication Date: 2020-07-21
BEIJING MOMENTA TECH CO LTD
View PDF17 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The principle of MSAA is mainly to use the characteristics of GPU (Graphics Processing Unit, image processing unit) hardware acceleration to achieve the effect of anti-aliasing. This method requires high hardware resources and consumes a lot of hardware resources.

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
  • Map rendering method and device
  • Map rendering method and device
  • Map rendering method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] see figure 1 , figure 1 It is a schematic flowchart of a map rendering method provided by an embodiment of the present invention. The method is applied in automatic driving, and can be executed by a map rendering device, which can be realized by means of software and / or hardware, and generally can be integrated in a vehicle-mounted computer, a vehicle-mounted industrial personal computer (IPC) and other vehicle-mounted terminals , the embodiments of the present invention are not limited. Such as figure 1 As shown, the map rendering method provided in this embodiment specifically includes:

[0064] 100. Based on the loaded translucent image, generate a target texture according to preset texture generation parameters.

[0065] Those skilled in the art can understand that the texture image needs to be loaded before using the texture. Since texture images may be stored in various formats, and each format has its own data structure and arrangement, there are many ways t...

Embodiment 2

[0081] see figure 2 , figure 2 It is a schematic flowchart of a map rendering method provided by an embodiment of the present invention. This embodiment is optimized on the basis of the above embodiments, adding a step of fusing the alpha channel value of the target boundary texture pixel with the alpha channel value of the background pixel in the background where the layer to be rendered is located, as shown in figure 2 As shown, the method includes:

[0082] 200. Based on the loaded translucent image, generate a target texture according to preset texture generation parameters.

[0083] Wherein, the translucent image is an image in which the transparency of border pixels is between transparent and opaque, and the transparency of pixels inside the border is opaque.

[0084] 202. Determine the texture coordinates of the vertices of the layer to be rendered in the target texture.

[0085] In this embodiment, the texture coordinates corresponding to the vertices of the lay...

Embodiment 3

[0105] see image 3 , image 3 It is a schematic structural diagram of a map rendering device provided by an embodiment of the present invention. Such as image 3 As shown, the device includes: a target texture generation module 300 , an alpha channel value sampling module 302 and a layer rendering module 304 .

[0106] Wherein, the target texture generation module 300 is configured to generate the target texture according to preset texture generation parameters based on the loaded translucent image, wherein the translucent image is that the transparency of the boundary pixels is between transparent and opaque, and the pixels inside the boundary are The transparency of the opaque image;

[0107] The alpha channel value sampling module 302 is configured to sample the alpha channel value of the texel in the target texture according to the position mapping relationship between the map layer to be rendered and the target texture, and sample the obtained The first alpha channel...

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 invention discloses a map rendering method and device, and the method comprises the steps: generating a target texture based on a loaded semitransparent image generation parameter, the semitransparent image being an image in which the transparency of a boundary pixel is between transparent and opaque and the transparency of a boundary internal pixel is opaque; according to aposition mapping relationship between a to-be-rendered layer of the map and the target texture, sampling alpha channel values of texture pixels in the target texture; taking the sampled first alpha channel value corresponding to the internal texture pixel of the target texture boundary as the internal alpha channel value of the internal pixel of the boundary of the to-be-rendered layer, and takingthe second alpha channel value corresponding to the boundary texture pixel of the target texture as the boundary alpha channel value of the boundary pixel of the to-be-rendered layer; and rendering the to-be-rendered layer according to the internal alpha channel value and the boundary alpha channel value in combination with the to-be-rendered color. By the adoption of the scheme, consumption of hardware resources in the anti-aliasing process is reduced.

Description

technical field [0001] The invention relates to the technical field of image processing, in particular to a map rendering method and device. Background technique [0002] Rendering is the process of converting the description of a three-dimensional object or three-dimensional scene into a two-dimensional image, and the generated two-dimensional image can well reflect the three-dimensional object or three-dimensional scene. Take rendering a map as an example. When rendering a map, the roads in the map are usually rasterized, that is, to project geometric primitives (points, lines, surfaces) onto the imaging plane and determine which pixels or sampling points are covered by the primitives. , so that the rasterized lines and polygons are composed of pixels. However, due to the limitation of screen resolution, using discrete pixels to represent spatially continuous polygons and line segments will inevitably lead to aliasing. [0003] At present, the commonly used anti-aliasing...

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
IPC IPC(8): G06T15/04
CPCG06T15/04
Inventor 官亚勤谢国富王谦隋建威
Owner BEIJING MOMENTA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products