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

A method and device for generating multi-level vector graphics

A vector graphics, multi-level technology, applied in the image processing field of vector graphics, can solve the problems that cannot be realized, affect the coloring effect, and the path is broken into two parts, etc.

Active Publication Date: 2019-11-29
INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This can affect the effect of shading, especially for complex topological layering, such as Figure 4 shown
[0007] For the above-mentioned situation of generating the drawing path, since the drawing path is saved, when the erasing operation does not act on the path, it will not affect the original graphics; however, if the points on the path are erased, it will cause The path is broken into two or more parts, so that one object becomes two or more, such as figure 1 shown
Then it cannot be achieved as figure 2 The desired erasing effect in

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 method and device for generating multi-level vector graphics
  • A method and device for generating multi-level vector graphics
  • A method and device for generating multi-level vector graphics

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] refer to Figure 5a , according to one embodiment of the present invention, the method for generating multi-level vector graphics includes:

[0067] 1. Determine the connected domain (that is, the connected coloring area) according to the drawn area.

[0068] by Figure 6 Take the vector diagram shown as an example, detect each pixel on the canvas, and get the following Figure 7 The image shown is connected domain.

[0069] 2. Determine the boundary points of the connected domain.

[0070] When considering which method to use to determine the boundary points of the connected domain, the inventor believes that an eight-neighborhood boundary tracking algorithm can be used in order to be able to process images with arbitrary topological structures. This is because the eight-neighborhood boundary tracking algorithm is processed for each pixel, so it is not limited by topology. The eight-neighborhood boundary tracking algorithm has the advantages of simplicity and intu...

Embodiment 2

[0099] The above-mentioned embodiment has specifically introduced the method for drawing the vector diagram of the present invention, and the method for erasing the vector diagram drawn according to Embodiment 1 is introduced below, including:

[0100] 101. Record the path traveled by the eraser when erasing, and store the color value of the connected domain formed by the path as a specified value, such as no color;

[0101] 201. Subtract the pixels of the connected region formed by the eraser from the pixels of the existing connected region in the layer of the vector diagram;

[0102] 301. Update the connected domain, and store the outline and attributes of the connected domain again.

Embodiment 3

[0104] According to another embodiment of the present invention, a method for erasing a vector image includes:

[0105] 1' record the path traveled by the eraser when erasing, and store the color value of the connected domain formed by the path as a specified value, such as no color;

[0106] 2' According to the layer where the erasing action is performed, determine the outline of the connected domain;

[0107] 3' Restore the part within the contour range of the connected domain into pixels, and subtract the connected area formed by the eraser from the recovered pixels.

[0108] In the present invention, because erasing and drawing adopt similar processing methods. The area formed by erasing can be regarded as forming a connected domain, and the erasing process can be completed by setting the color of the pixels in the connected domain to the color of the canvas. In the above method, when the connected domain of the erased area is obtained, it is detected pixel by pixel, so ...

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 invention provides a method for generating a multi-level vector diagram. The method comprises the steps of: determining a boundary contour of a color filling area of an image; storing the boundary contour and an image attribute of the color filling area, wherein the image attribute is used for determining pixels in the boundary contour. By adopting the method, the pixels within the contour range can be reduced via the contour of the color filling area, so that the effect of modifying the pixels is achieved and the image can be modified more accurately; and because the pixels can be directly operated, processing of complex topological structures can be supported.

Description

technical field [0001] The invention relates to image processing, in particular to image processing of vector graphics. Background technique [0002] In computer graphics, vector graphics refer to images represented by geometric primitives based on mathematical equations such as points, lines, or polygons. Compared with bitmaps, which store pixel arrays and operate on each pixel, vector graphics are saved in a different way, so they have the advantage of saving small files. Moreover, since the vector graphics are not affected by the resolution, it also has the advantages of not losing details and not affecting the clarity when performing any zoom-in; The advantage of not reducing the drawing accuracy after operations such as division and filling. Based on the above advantages, vector graphics are widely used in computer-aided design, electronic maps and so on. [0003] Generally, there are two ways to generate vector graphics. One of the methods is to take an existing pi...

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): G06T11/40
CPCG06T11/40
Inventor 夏时洪李新乐高林
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI
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