CN114461829A - Method for vectorization of traditional culture memory symbol subgraph - Google Patents
Method for vectorization of traditional culture memory symbol subgraph Download PDFInfo
- Publication number
- CN114461829A CN114461829A CN202210105751.4A CN202210105751A CN114461829A CN 114461829 A CN114461829 A CN 114461829A CN 202210105751 A CN202210105751 A CN 202210105751A CN 114461829 A CN114461829 A CN 114461829A
- Authority
- CN
- China
- Prior art keywords
- vectorization
- elements
- sub
- image
- gradient
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 239000013598 vector Substances 0.000 claims abstract description 38
- 238000010586 diagram Methods 0.000 claims abstract description 16
- 230000008569 process Effects 0.000 claims abstract description 11
- 230000003993 interaction Effects 0.000 claims abstract description 10
- 238000012545 processing Methods 0.000 claims abstract description 7
- 238000004364 calculation method Methods 0.000 claims description 15
- 238000000605 extraction Methods 0.000 claims description 12
- 238000003708 edge detection Methods 0.000 claims description 7
- 230000004927 fusion Effects 0.000 claims description 4
- 238000009499 grossing Methods 0.000 claims description 3
- 238000012216 screening Methods 0.000 claims description 3
- 230000001629 suppression Effects 0.000 claims 1
- 239000000463 material Substances 0.000 abstract description 21
- 238000005516 engineering process Methods 0.000 abstract description 4
- 230000008859 change Effects 0.000 description 4
- 238000003860 storage Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 2
- 239000010931 gold Substances 0.000 description 2
- 229910052737 gold Inorganic materials 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 230000007480 spreading Effects 0.000 description 1
- 238000003892 spreading Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/56—Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
- G06F18/253—Fusion techniques of extracted features
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Databases & Information Systems (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a traditional culture memory symbol subgraph vectorization-oriented method, which comprises the following steps: s1, calculating pixel points in the image, determining element outlines and extracting complete sub-elements; s2, carrying out image processing on the sub-elements, and dividing the sub-elements into different areas; s3, approximating the edges of each area and converting the edges into smooth vector area outlines; and S4, integrating the data information in each region, acquiring and storing the regional vectorization result, and outputting the vector diagram of the sub-elements. Obtaining accurate and complete sub-elements through less interaction, and realizing local element vectorization through a vectorization technology to obtain corresponding vector materials, thereby completing the whole process of the sub-element vectorization in the traditional culture image and obtaining a vector diagram of the local elements in the image; therefore, the vector diagram of the local sub-elements in the image is quickly obtained, the quality of the material is improved, and the difficulty of secondary creation of the cultural material is greatly reduced.
Description
Technical Field
The invention relates to the technical field of computer image processing, in particular to a traditional culture memory symbol subgraph vectorization-oriented method.
Background
Under the current era background, the method for digitalizing and recycling cultural heritage is an effective method for protecting and inheriting culture, a Chinese cultural material library is a cultural gold mine for the digitalized promotion of cultural resources, the cultural gold mine is explored, and the method has epoch-making significance for inheriting and spreading Chinese culture, changing cultural production modes and developing cultural productivity, and an image vectorization technology is a core tool for constructing the Chinese cultural material library.
Vector graphics have many advantages over raster images, such as image quality independent of resolution, arbitrary scaling without distortion; the storage is compact, the file is small, and efficient storage and transmission can be realized; and editing and modifying the geometric primitives are supported. Image vectorization is the conversion of a grid-type image into a vector-formatted image.
At present, materials in a Chinese culture material library still mainly comprise a whole vector diagram, one image with culture connotation usually comprises one or more sub-elements with rich connotation, the vector diagram of the elements is particularly important when culture creation is carried out, under the common condition, a user needs certain post-processing operation to obtain a local vector diagram from the complete vector diagram, and the use efficiency of the materials in the material library is greatly reduced. In addition, under the influence of an image acquisition environment, the image quality is uneven, the vectorization of the whole image is directly carried out on the image with an unsatisfactory effect, the effect of the obtained vector diagram is unsatisfactory, the literacy value of the vector diagram cannot be fully exerted, and the use value of materials in a material library is reduced.
An effective solution to the problems in the related art has not been proposed yet.
Disclosure of Invention
Aiming at the problems in the related art, the invention provides a method for quantizing a traditional culture memory symbol subgraph vector, so as to overcome the technical problems in the prior related art.
Therefore, the invention adopts the following specific technical scheme:
a vectorization method for a traditional culture memory symbol subgraph comprises the following steps:
s1, calculating pixel points in the image, determining element outlines and extracting complete sub-elements;
s2, performing image processing on the sub-elements, and dividing the sub-elements into different areas;
s3, approximating the edges of each area and converting the edges into smooth vector area outlines;
and S4, integrating the data information in each region, acquiring and storing the regional vectorization result, and outputting the vector diagram of the sub-elements.
Further, the calculating of pixel points in the image, determining element contours and extracting complete sub-elements includes the following steps:
s11, selecting characteristic components representing the edges of the target elements, and carrying out weighted summation on the characteristic component costs to calculate the local costs from each pixel point to the adjacent pixel points;
s12, calculating channel difference between adjacent pixel points by fusing color gradient characteristics, and improving the fit degree of the element extraction contour;
s13, searching the minimum cost path by using Dijkstra algorithm to obtain the complete closed element contour.
Further, the characteristic components include a laplacian zero point, a gradient magnitude, and a gradient direction.
Further, the formula for calculating the local cost from each pixel point to the adjacent pixel point by performing weighted summation on the feature component cost is as follows:
C(p,q)=wG·fG(q)+wZ·fZ(q)+wD·fD(p,q);
where C (p, q) denotes the local cost of the directed link from pixel p to neighboring pixel q, fZDenotes Laplace zero, fGDenotes the magnitude of the gradient, fDDenotes the direction of the gradient, wG=0.43, wZ=0.43,wD=0.14。
Further, by fusing the color gradient features, the channel difference between adjacent pixel points is calculated, and the fitting degree of the element extraction contour is improved, which comprises the following steps:
s121, fusing color gradient characteristics, converting the image into a space of a color system (CIE-Lab), and separating Lab channels;
s122, calculating the difference between the L channel and the ab fusion channel between the adjacent pixel points, wherein the calculation formula is as follows:
fC(q)=(Cr⊙Cl,Ct⊙Cb);
wherein f isC(q) represents a color gradient and (q),△Lij=△Li-△Lj,△aij=△ai-△aj,△bij=△bi-△bj,Cr、Cl、Ctand CbAnd respectively the weighted average values of the pixel points in the right, left, upper and lower neighborhoods in the space of the color system.
And S123, substituting the difference value into the calculation process of the local cost, improving the fitting degree of the element extraction outline, and reducing the interaction times.
Further, the formula for substituting the difference value into the calculation process of the local cost is as follows:
C(p,q)=wG·[βfG(q)+(1-β)fZ(q)]+wZ·fZ(q)+wD·fD(p,q);
where C (p, q) denotes the local cost of the directed link from pixel p to neighboring pixel q, fZDenotes Laplace zero, fGDenotes the magnitude of the gradient, fDDenotes the direction of the gradient, wG=0.43, wZ=0.43,wD=0.14。
Further, the finding a minimum cost path by using a Dijkstra algorithm to obtain a completely closed element contour includes the following steps:
s131, selecting any point on the element boundary for expansion, and adding the local cost of the point to the adjacent node;
s132, selecting the adjacent node with the minimum accumulated cost to continue expansion;
and S133, repeating the node expansion to form a sequence until the sequence is superposed with the initial point, and acquiring a completely closed element outline.
Further, the image processing the sub-elements and dividing the sub-elements into different regions includes the following steps:
s21, clustering the regions in the image by using a clustering algorithm, and setting a certain spatial distance and color distance;
s22, carrying out multiple iterations, replacing the original pixel values with the converged pixel values, merging locally similar pixel points, and obtaining different color regions;
and S23, extracting the edge structure of each region, carrying out edge detection on the regions by using a multi-stage edge detection (canny) operator, calculating the gradient size and direction of the image, carrying out non-maximum value inhibition and double-threshold value screening, and obtaining the region edges.
Further, the approximating the edges of each region and converting the edges into a smooth vector region profile includes the following steps:
s31, simplifying the obtained edge curve through Douglas-Puck (Douglas-Peucker) algorithm;
s32, iteratively selecting points on the curve, which are farthest from the corresponding straight-line segment and larger than a set threshold value, as polygon vertexes, and connecting the points to obtain a fitting polygon;
and S33, fitting and smoothing the polygon by using a Bezier curve, and converting the polygon into an accurate and smooth vector contour.
Further, the data information includes vector contour information and color information.
The invention has the beneficial effects that: accurate and complete sub-elements are obtained through less interaction, local element vectorization is realized through a vectorization technology, and corresponding vector materials are obtained, so that the whole process of the sub-element vectorization in the traditional culture image is completed, and a vector diagram of the local elements in the image is obtained. Compared with a general image extraction method, the method ensures the attaching degree of the extracted outline during element extraction, greatly reduces the interaction times, and simultaneously enables a user to quickly obtain a local sub-element vector diagram in the image through less interaction by the two-stage process provided by the invention, thereby improving the quality of the material in the material library, greatly reducing the difficulty of secondary creation of the cultural material and enabling the cultural material to exert the maximum creation value.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for vectorization of a traditional culture memory symbol oriented subgraph according to an embodiment of the invention.
Detailed Description
According to the embodiment of the invention, a method for vectorization of a traditional culture memory symbol subgraph is provided.
Referring to the drawings and the detailed description, the invention will be further explained, as shown in fig. 1, in an embodiment of the invention, a method for vectorization of a traditional culture memory symbol oriented subgraph includes the following steps:
s1, calculating pixel points in the image, determining element outlines and extracting complete sub-elements;
in this step, the problem of searching for the edge profile of the element is regarded as the problem of searching for the optimal path in the process of searching for the graph, and the optimal path must be a section of path which is attached to the boundary of the element, so that the link between the pixel with the strong edge characteristic and other pixel points has low local cost.
Wherein, S1 includes the following steps:
s11, selecting characteristic components (the characteristic components include a Laplace zero point, gradient size and gradient direction) representing the edges of the target elements, and performing weighted summation on the characteristic component costs to calculate the local costs from each pixel point to the adjacent pixel points, wherein the calculation formula is as follows:
C(p,q)=wG·fG(q)+wZ·fZ(q)+wD·fD(p,q);
where C (p, q) denotes the local cost of the directed link from pixel p to neighboring pixel q, fZDenotes Laplace zero, fGDenotes the magnitude of the gradient, fDDenotes the direction of the gradient, wG=0.43, wZ=0.43,wD=0.14。
The gradient magnitude cost term is primarily a description of the edge strength, and locations with strong edge strength should pay less. And (5) convolving the image with a sobel operator to obtain the gradient size.
The Laplace zero point cost item is mainly used for describing boundary positioning, and the convolution operation is carried Out on the image and a Laplace operator to obtain OutLIf OutL(q) 0 or when there is a neighbor of a different symbol, let fZ(q) is 0, otherwise fZ(q)=1。
The gradient direction cost term is mainly used for adding a smooth constraint to the position of the change of the boundary direction and endowing a larger cost to the position of the abrupt change of the direction. Let D (p) be the unit vector perpendicular to the gradient direction at point p, the gradient direction cost calculation formula is as follows:
dp(p,q)=D(p)·L(p,q);
dq(p,q)=L(p,q)·D(q);
where L (p, q) represents the link direction between two points such that p differs from the final determined link direction by less than 90 degrees. When the gradient directions of two pixels are similar to each other and the link direction between them is also similar, the cost of the gradient direction feature is low.
And considering the problem of the area with inconsistent gray level and color change in the image, further optimizing the gray level gradient penalty term. Given an input image, it is first converted to the perceptually uniform CIE-Lab color space, followed by color gradient fusion of the color images described below.
S12, calculating channel difference between adjacent pixel points by fusing color gradient characteristics, and improving the fit degree of the element extraction contour;
wherein, S12 includes the following steps:
s121, fusing color gradient characteristics, converting the image into a space of a color system (CIE-Lab), and separating Lab channels;
s122, calculating the difference between the L channel and the ab fusion channel between the adjacent pixel points, wherein the calculation formula is as follows:
fC(q)=(Cr⊙Cl,Ct⊙Cb);
wherein f isC(q) represents a color gradient and (q),△Lij=△Li-△Lj,△aij=△ai-△aj,△bij=△bi-△bj,Cr、Cl、Ctand CbThe weighted average values of the pixel points in the right, left, upper and lower neighborhoods in a color system (CIE-Lab) space are respectively as follows:
Cr=(2c(x+1,y)+c(x+1,y-1)+c(x+1,y+1))/4;
Cl=(2c(x-1,y)+c(x-1,y-1)+c(x-1,y+1))/4;
Ct=(2c(x,y+1)+c(x-1,y+1)+c(x+1,y+1))/4;
Cd=(2c(x,y-1)+c(x-1,y-1)+c(x+1,y-1))/4;
c (x, y) is the CIE-Lab value at the (x, y) position in the image.
When searching for an edge, a position where the color gradient changes more is more likely to be a target boundary, which is consistent with the gray gradient change.
And S123, substituting the difference value into the calculation process of the local cost, improving the fitting degree of the element extraction outline, and reducing the interaction times.
The formula for substituting the difference value into the calculation process of the local cost is as follows:
C(p,q)=wG·[βfG(q)+(1-β)fZ(q)]+wZ·fZ(q)+wD·fD(p,q);
where C (p, q) represents the local cost of directionally linking from pixel p to neighboring pixel q, fZDenotes Laplace zero, fGDenotes the magnitude of the gradient, fDDenotes the direction of the gradient, wG=0.43, wZ=0.43,wD=0.14。
S13, searching the minimum cost path by using Dijkstra algorithm to obtain the complete closed element contour.
Wherein, S13 includes the following steps:
s131, selecting any point on the element boundary for expansion, and adding the local cost of the point to the adjacent node;
s132, selecting the adjacent node with the minimum accumulated cost to continue expansion;
and S133, repeating the node expansion to form a sequence until the sequence is superposed with the initial point, and acquiring a completely closed element outline.
S2, performing image processing on the sub-elements, and dividing the sub-elements into different areas;
wherein, S2 includes the following steps:
s21, clustering the regions in the image by using a clustering algorithm, and setting a certain spatial distance and color distance;
s22, carrying out multiple iterations, replacing the original pixel values with the converged pixel values, merging locally similar pixel points, and obtaining different color regions;
the specific steps of performing color clustering and edge detection on the elements to obtain different regions in the elements are as follows: firstly, arbitrarily selecting a feature point in a feature space, dividing a circular region with a radius of R around the feature point, calculating offset vectors from the center point to other feature points in the region, and specifying that the estimation weight of the offset vector of the feature point closer to the center point is larger, the calculation formula is as follows:
and moving the central point according to the obtained vector, then carrying out iterative solution, stopping moving when the mean shift quantity meets the requirement of being smaller than a set error, obtaining a clustered image, dividing the image into different color regions, replacing the color of each region by the color of the characteristic point, storing the color information of each region, and facilitating subsequent color filling.
And S23, extracting the edge structure of each region, carrying out edge detection on the regions by using a multi-stage edge detection (canny) operator, calculating the gradient size and direction of the image, carrying out non-maximum value inhibition and double-threshold value screening, and obtaining the region edges.
For each successive edge, a straight line AB is connected between the points A, B at the beginning and end of the curve, the straight line being the chord of the curve, the point C on the curve having the greatest distance from the straight line segment is calculated, and the distance d from AB is calculated. The distance is compared with a predetermined threshold value threshold, and if the distance is smaller than the threshold value threshold, the straight line segment is used as an approximation of a curve, and the curve segment is processed. If the distance is greater than the threshold, the curve is divided into two segments, AC and BC, with C, and the above calculations are performed separately for the two segments. When all the curves are processed, the broken lines formed by all the dividing points are connected in sequence, and the broken lines can be used as the approximation of the curves.
S3, approximating the edges of each area and converting the edges into smooth vector area outlines;
wherein, S3 includes the following steps:
s31, simplifying the obtained edge curve through Douglas-Puck (Douglas-Peucker) algorithm;
s32, iteratively selecting points on the curve, which are farthest from the corresponding straight-line segment and larger than a set threshold value, as polygon vertexes, and connecting the points to obtain a fitting polygon;
and S33, fitting and smoothing the polygon by using a Bezier curve, and converting the polygon into an accurate and smooth vector contour.
Wherein, the cubic Bezier curve is defined as follows:
Bn(t)=P0(1-t)3+3P1t(1-t)2+3P2t2(1-t)+P3t3,t∈[0,1];
the first two points are the starting point and the middle point of the curve segment, and the middle two points need to be obtained through calculation. Is provided with PiTangential direction of point and Pi-1Pi+1The directions are the same, and it is sufficient to ensure that the control point in front of the point and the control point behind the point are both on the tangent line, so the coordinates of the two control points are as follows:
Ai(xi+a(xi+1-xi-1),yi+a(yi+1-yi-1));
Bi(xi+1+b(xi+2-xi),yi+1+b(yi+2-yi));
and finishing the conversion of the polygon into the vector outline according to the starting point and the end point of each edge of the polygon and the coordinates of the control points.
And S4, integrating the data information in each region, acquiring and storing the regional vectorization result, and outputting the vector diagram of the sub-elements.
And the data information comprises vector outline information and color information, and the result is written into an svg format for storage.
In summary, by means of the above technical solution of the present invention, accurate and complete sub-elements are obtained through less interaction, and local element vectorization is realized through a vectorization technology to obtain corresponding vector materials, so that all processes of sub-element vectorization in a traditional culture image are completed, and a vector diagram of local elements in the image is obtained. Compared with a general image extraction method, the method ensures the attaching degree of the extracted outline during element extraction, greatly reduces the interaction times, and simultaneously ensures that a user can quickly obtain a local sub-element vector diagram in the image through less interaction by the two-stage flow provided by the invention, thereby improving the quality of the material in the material library, greatly reducing the difficulty of secondary creation of the cultural material and enabling the cultural material to exert the maximum creation value thereof.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (10)
1. A vectorization method for a traditional culture memory symbol subgraph is characterized by comprising the following steps:
s1, calculating pixel points in the image, determining element outlines and extracting complete sub-elements;
s2, performing image processing on the sub-elements, and dividing the sub-elements into different areas;
s3, approximating the edges of each area and converting the edges into smooth vector area outlines;
and S4, integrating the data information in each region, acquiring and storing the regional vectorization result, and outputting the vector diagram of the sub-elements.
2. The method for performing vectorization on a traditionally cultural memory symbol subgraph according to claim 1, wherein the steps of calculating pixel points in an image, determining element outlines and extracting complete sub-elements comprise:
s11, selecting characteristic components representing the edges of the target elements, and carrying out weighted summation on the characteristic component costs to calculate the local costs from each pixel point to the adjacent pixel points;
s12, calculating the channel difference between adjacent pixel points by fusing the color gradient characteristics, and improving the fitting degree of the element extraction contour;
and S13, searching the minimum cost path by using the Dixtera algorithm to obtain the complete closed element outline.
3. The method for vectorization of a traditional culture memory symbol subgraph according to claim 2, wherein the feature components include laplacian zeros, gradient magnitude and gradient direction.
4. The method for performing vectorization on a traditional culture memory symbol subgraph according to claim 3, wherein the calculation formula for performing weighted summation on the feature component cost to calculate the local cost from each pixel point to the adjacent pixel point is as follows:
C(p,q)=wG·fG(q)+wZ·fZ(q)+wD·fD(p,q);
where C (p, q) denotes the local cost of the directed link from pixel p to neighboring pixel q, fZDenotes the Laplace zero, fGDenotes the magnitude of the gradient, fDDenotes the direction of the gradient, wG=0.43,wZ=0.43,wD=0.14。
5. The method for performing vectorization on a traditional culture memory symbol subgraph according to claim 4, wherein the channel difference between adjacent pixel points is calculated by fusing color gradient features, so as to improve the fit degree of element extraction outlines, and the method comprises the following steps:
s121, fusing color gradient characteristics, converting the image into a color system space, and separating Lab channels;
s122, calculating the difference between the L channel and the ab fusion channel between the adjacent pixel points, wherein the calculation formula is as follows:
fC(q)=(Cr⊙Cl,Ct⊙Cb);
wherein f isC(q) represents a color gradient and (q),△Lij=△Li-△Lj,△aij=△ai-△aj,△bij=△bi-△bj,Cr、Cl、Ctand CbAnd respectively the weighted average values of the pixel points in the right, left, upper and lower neighborhoods in the space of the color system.
And S123, substituting the difference value into the calculation process of the local cost, improving the fitting degree of the element extraction outline, and reducing the interaction times.
6. The method for vectorization of a traditional culture memory symbol oriented subgraph according to claim 5, wherein the formula for substituting the difference value into the calculation process of the local cost is as follows:
C(p,q)=wG·[βfG(q)+(1-β)fZ(q)]+wZ·fZ(q)+wD·fD(p,q);
where C (p, q) denotes the local cost of the directed link from pixel p to neighboring pixel q, fZDenotes the Laplace zero point, fGDenotes the magnitude of the gradient, fDIndicating the direction of the gradient,wG=0.43,wZ=0.43,wD=0.14。
7. The method for vectorization of a traditional culture memory symbol subgraph according to claim 6, wherein the step of searching the minimum cost path by using the dix-tesla algorithm to obtain the complete closed element contour comprises the following steps:
s131, selecting any point on the element boundary for expansion, and adding the local cost of the point to the adjacent node;
s132, selecting the adjacent node with the minimum accumulated cost to continue expansion;
and S133, repeating the node expansion to form a sequence until the sequence is superposed with the initial point, and acquiring a complete closed element outline.
8. The method for performing traditional culture memory symbol oriented subgraph vectorization according to claim 1, wherein the sub-elements are subjected to image processing and divided into different regions, and the method comprises the following steps:
s21, clustering the areas in the image by using a clustering algorithm, and setting a certain spatial distance and a certain color distance;
s22, carrying out multiple iterations, replacing the original pixel values with the converged pixel values, merging locally similar pixel points, and obtaining different color regions;
s23, extracting the edge structure of each region, performing edge detection on the regions by using a multi-stage edge detection operator, calculating the size and the direction of the image gradient, performing non-maximum suppression and double-threshold screening, and acquiring the region edges.
9. The method for performing vectorization on a traditional culture memory symbol subgraph according to claim 1, wherein the approximating each region edge to a smooth vector region contour comprises the following steps:
s31, simplifying the obtained edge curve through a Douglas-Pock algorithm;
s32, iteratively selecting points on the curve, which are farthest from the corresponding straight-line segment and larger than a set threshold value, as polygon vertexes, and connecting the points to obtain a fitting polygon;
and S33, fitting and smoothing the polygon by using a Bezier curve, and converting the polygon into an accurate and smooth vector contour.
10. The method for performing subpicture vectorization on a traditional culture memory symbol according to claim 1, wherein the data information comprises vector contour information and color information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210105751.4A CN114461829A (en) | 2022-01-28 | 2022-01-28 | Method for vectorization of traditional culture memory symbol subgraph |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210105751.4A CN114461829A (en) | 2022-01-28 | 2022-01-28 | Method for vectorization of traditional culture memory symbol subgraph |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114461829A true CN114461829A (en) | 2022-05-10 |
Family
ID=81411020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210105751.4A Pending CN114461829A (en) | 2022-01-28 | 2022-01-28 | Method for vectorization of traditional culture memory symbol subgraph |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114461829A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116403211A (en) * | 2023-03-24 | 2023-07-07 | 无锡市第二人民医院 | Segmentation and clustering method and system based on single-cell pathology image cell nuclei |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10143654A (en) * | 1996-11-08 | 1998-05-29 | Sony Corp | Outline extracting device and outline extracting method |
CN101980317A (en) * | 2010-09-03 | 2011-02-23 | 浙江大学 | Method for predicting traffic flow extracted by improved C-V model-based remote sensing image road network |
CN107273608A (en) * | 2017-06-13 | 2017-10-20 | 中国石油大学(华东) | A kind of reservoir geology profile vectorization method |
CN113706648A (en) * | 2021-08-04 | 2021-11-26 | 武汉理工大学 | Down Ka element vectorization method based on diffusion curve |
CN113963006A (en) * | 2021-11-18 | 2022-01-21 | 重庆文理学院 | Method and device for constructing retinal vessel vectorization model and storage medium |
-
2022
- 2022-01-28 CN CN202210105751.4A patent/CN114461829A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10143654A (en) * | 1996-11-08 | 1998-05-29 | Sony Corp | Outline extracting device and outline extracting method |
CN101980317A (en) * | 2010-09-03 | 2011-02-23 | 浙江大学 | Method for predicting traffic flow extracted by improved C-V model-based remote sensing image road network |
CN107273608A (en) * | 2017-06-13 | 2017-10-20 | 中国石油大学(华东) | A kind of reservoir geology profile vectorization method |
CN113706648A (en) * | 2021-08-04 | 2021-11-26 | 武汉理工大学 | Down Ka element vectorization method based on diffusion curve |
CN113963006A (en) * | 2021-11-18 | 2022-01-21 | 重庆文理学院 | Method and device for constructing retinal vessel vectorization model and storage medium |
Non-Patent Citations (1)
Title |
---|
闫博栋;李学明;赵海英;: "应用特征点的彩色图像边缘检测算法", 信号处理, no. 09, 25 September 2015 (2015-09-25) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116403211A (en) * | 2023-03-24 | 2023-07-07 | 无锡市第二人民医院 | Segmentation and clustering method and system based on single-cell pathology image cell nuclei |
CN116403211B (en) * | 2023-03-24 | 2024-04-26 | 无锡市第二人民医院 | Segmentation and clustering method and system based on single-cell pathology image cell nuclei |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101354819B1 (en) | Anisometric texture synthesis | |
EP1347410B1 (en) | Edge-based enlargement and interpolation of images | |
Wei et al. | BuildMapper: A fully learnable framework for vectorized building contour extraction | |
CN106952338B (en) | Three-dimensional reconstruction method and system based on deep learning and readable storage medium | |
US7295202B2 (en) | System for approximating and displaying three dimensional CAD data, and system for executing method thereof | |
CN102346912A (en) | Image processing apparatus, image processing method, and program | |
JP4726257B2 (en) | Image processing method and apparatus | |
CN113435240A (en) | End-to-end table detection and structure identification method and system | |
Dal Poz et al. | Automated extraction of road network from medium-and high-resolution images | |
US5666472A (en) | Image processing apparatus and method for generating polygons for use in rendering an object | |
WO2014114635A1 (en) | Method and apparatus for performing super-resolution of single images | |
CN114461829A (en) | Method for vectorization of traditional culture memory symbol subgraph | |
Tasar et al. | Polygonization of binary classification maps using mesh approximation with right angle regularity | |
JP2000251086A (en) | Device and method for generating curve and program providing medium | |
CN104732491B (en) | A kind of single frames Remote Sensing Image Super Resolution processing method of edge prior guiding | |
Čomić et al. | Morse-smale decompositions for modeling terrain knowledge | |
CN113506305A (en) | Image enhancement method, semantic segmentation method and device for three-dimensional point cloud data | |
JPH08335268A (en) | Area extracting method | |
CN116805389A (en) | Open world target detection method based on decoupling cascade region generation network | |
CN114943823B (en) | Unmanned aerial vehicle image splicing method and system based on deep learning semantic perception | |
Jiang et al. | Handling gaps for vector graphics coloring | |
JP2011210160A (en) | Image processing method, image processor, program and program storage medium | |
Strassburg et al. | On the influence of superpixel methods for image parsing | |
Patel et al. | Adaptive multiple-pixel wide seam carving | |
Amintoosi et al. | Precise image registration with structural similarity error measurement applied to superresolution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |