CN113408543B - Two-dimensional part outline rasterization feature representation method - Google Patents

Two-dimensional part outline rasterization feature representation method Download PDF

Info

Publication number
CN113408543B
CN113408543B CN202110590879.XA CN202110590879A CN113408543B CN 113408543 B CN113408543 B CN 113408543B CN 202110590879 A CN202110590879 A CN 202110590879A CN 113408543 B CN113408543 B CN 113408543B
Authority
CN
China
Prior art keywords
point
pixel point
concave
code value
convex
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.)
Active
Application number
CN202110590879.XA
Other languages
Chinese (zh)
Other versions
CN113408543A (en
Inventor
黄秀玲
尤华政
李梦瑄
刘润亚
刘俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Forestry University
Original Assignee
Nanjing Forestry University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing Forestry University filed Critical Nanjing Forestry University
Priority to CN202110590879.XA priority Critical patent/CN113408543B/en
Publication of CN113408543A publication Critical patent/CN113408543A/en
Application granted granted Critical
Publication of CN113408543B publication Critical patent/CN113408543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a method for representing rasterization characteristics of a two-dimensional part outline, which comprises the following steps of; step 1: storing the two-dimensional graph into a file format capable of reading graph information; step 2: reading the file information in the step 1; and 3, step 3: according to the degree of dispersion x d Rasterizing the outline of the part, and recording the direction sequence number of the discrete points; and 4, step 4: constructing a direction chain code according to the direction serial number recorded in the step 3, and describing the concave-convex characteristic of the two-dimensional profile by using the code value; and 5: and constructing a profile concave-convex characteristic curve. The invention can accurately describe the outline characteristics when searching the outline pixel points; the difference of Freeman chain codes is improved to be used as direction chain codes, so that the magnitude and the positive and negative of the numerical value can be used as a basis for judging the concave-convex degree, the concave-convex characteristic change of the outline is reflected by the concave-convex characteristic change of continuous discrete points, and the concave-convex characteristic change of the outline can be accurately expressed.

Description

Two-dimensional part outline rasterization feature representation method
Technical Field
The invention belongs to the technical field of part contour information acquisition, and particularly relates to a two-dimensional part contour rasterization feature representation method.
Background
The part contour information is one of the most important blanking information of the part and is the basis for carrying out part area calculation, concave-convex judgment, part rectangular envelope, part splicing and interactive layout. The acquisition of the contour information of the part is used as a primary stage of the optimized blanking process, and a reasonable extraction scheme has important influence on the quality of the blanking. The contour information of the part can be described by manually inputting the regular shape, and the contour characteristics of the part with the irregular shape are complex and changeable, so that the accurate input of various geometric information of the part is very difficult. The invention provides a discrete mode for solving the problems of extraction of a two-dimensional contour and identification of concave-convex characteristics, aiming at the problems of inconvenient expression of two-dimensional contour characteristics in a stock layout process, difficult characteristic extraction and identification and the like.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for representing a two-dimensional part contour rasterization feature in view of the above-mentioned shortcomings of the prior art.
In order to achieve the technical purpose, the technical scheme adopted by the invention is as follows:
a two-dimensional part contour rasterization feature representation method comprises the following steps:
step 1: storing the two-dimensional graph into a file format capable of reading graph information;
step 2: reading the file information in the step 1;
and step 3: according to the degree of dispersion x d Rasterizing the outline of the part, and recording the direction sequence number of the discrete points;
and 4, step 4: constructing a direction chain code according to the direction serial number recorded in the step 3, and describing the concave-convex characteristic of the two-dimensional profile by using the code value;
and 5: and constructing a profile concave-convex characteristic curve.
In order to optimize the technical scheme, the specific measures adopted further comprise:
in the step 1, the two-dimensional graph is saved into a DXF file format by using AutoCAD;
in step 2, reading the graph in step 1 by using a DXF reading program, specifically: and (3) extracting the data information of the LINE, the CIRCLE, the POLYLINE and the ARC in the segments of the DXF file in the step 1 by utilizing a DXF reading program.
The step 3 includes:
step 3.1: for all coordinate information A (X, Y), the X-coordinate and the Y-coordinate are divided by the degree X to be discretized, respectively d Further rounding up to obtain a discrete coordinate set B (X) 1 ,Y 1 ) (ii) a Further removing discrete set of coordinates B (X) 1 ,Y 1 ) The repeated points result in a discrete coordinate set C (X) 2 ,Y 2 );
Step 3.2: there are 8 adjacent pixel points around the central pixel point in the pixel graph, and 8 search directions are constructed as (1, 2, 3, 4, 5, 6, 7, 8);
step 3.3: taking a discrete coordinate set C (X) 2 ,Y 2 ) And further searching and storing the searched first discrete point Q and recording the direction serial number I of the first discrete point Q according to the sequence of (2, 3, 4, 5, 6, 7, 8, 1), and searching the next pixel point of the contour in the clockwise direction according to the direction serial number I of the first discrete point Q and the direction serial number I of the first discrete point Q relative to the symmetrical position of the central pixel point until the next pixel point is the initial pixel point.
In the above step 4, the direction sequence number I recorded by the next pixel point is used n Minus the direction index I of the point n-1 The difference J obtained n-1 As a chain code;
in obtaining I n -I n-1 Judging when the code value is obtained, wherein the judgment conditions are as follows:
when I is n -I n-1 >4 hour J n-1 =I n -I n-1 -8;
When I is n -I n-1 <-4 th time J n-1 J=I n -I n-1 +8;
The obtained differential chain code J n-1 Is in the code value of [ -3,3 [)]Within the interval;
the code value is positive, and the direction of the next pixel point is clockwise compared with the direction of the previous pixel point of the pixel point;
the code value is negative, and the direction of the next pixel point is anticlockwise compared with the direction of the previous pixel point by the pixel point;
-3 indicates that the direction of the next pixel point is 135 ° counterclockwise compared to the direction of the previous pixel point of the present pixel point;
-2 indicates that the direction of the next pixel point is 90 ° counterclockwise compared to the direction of the previous pixel point of the present pixel point;
-1 indicates that the direction of the next pixel point is 45 ° counterclockwise compared to the direction of the previous pixel point of the present pixel point;
0 represents that the direction of the next pixel point is unchanged compared with the direction of the previous pixel point of the current pixel point;
1 represents that the direction of the next pixel point is 45 degrees clockwise compared with the direction of the previous pixel point of the current pixel point;
2, the direction of the next pixel point is 90 degrees clockwise compared with the direction of the previous pixel point of the current pixel point;
3 indicates that the direction of the next pixel point is 135 ° clockwise compared to the previous pixel point of the current pixel point.
In step 4, a positive code value indicates that the image is convex compared to the previous and next points, a negative code value indicates that the image is concave compared to the previous and next points, and the absolute value of the code value indicates the degree of significance of the concave-convex characteristic.
In the above step 4, assuming that the direction from the point a to the point b represents the position of the pixel point in the direction of the previous pixel point, then:
when the code value is-3, point-3 is shifted counterclockwise by 135 ° with respect to point 0, and point a to point b to point-3 form a reentrant angle of 45 °.
When the code value is-2, the-2 point is shifted counterclockwise by 90 ° with respect to the 0 point, and the a point to the b point to the-2 point form a reentrant angle of 90 °.
When the code value is-1, point-1 is shifted counterclockwise by 45 ° with respect to point 0, and point a to point b to point-1 form a reentrant angle of 135 °.
When the code value is 0, the 0 point is shifted counterclockwise by 0 ° with respect to the 0 point, and the a point to the b point to the 0 point constitute a straight line.
When the code value is 1, point 1 is shifted clockwise by 45 ° with respect to point 0, and a point a to a point b to point 1 form a lobe having an angle of 135 °.
When the code value is 2, point 2 is shifted counterclockwise by 90 ° with respect to point 0, and point a to point b form a lobe having an angle of 90 ° to point 2.
When the code value is 3, point 3 is shifted counterclockwise by 135 ° with respect to point 0, and point a to point b to point 3 form a lobe having an angle of 45 °.
In step 5 described above, a convex corner, i.e., a point greater than 0, in the concave-convex characteristic diagram indicates that the profile is convex here; the re-entrant angle, i.e. the point less than 0, indicates that the profile is concave here; the concave-convex characteristic points are represented by 0 to show the concave-convex characteristic;
the degree of the conspicuousness of the contour concave-convex characteristics is determined by the sum of the absolute value of the numerical value and the sum of the adjacent dots smaller or larger than 0.
In the step 5, the direction chain code constructed in the step 4 is subjected to noise reduction treatment, pixels which are within the range of three adjacent pixels in the whole outline and can be complemented with the salient points are removed, the pixels are replaced by the characteristics of straight lines, and the numerical values of the concave-convex characteristic points are amplified to be more prominent.
The invention has the following beneficial effects:
the invention relates to a technology for extracting contour features of continuous graphs in a rasterization mode, which can accurately describe the contour features of the continuous graphs when searching contour pixel points of the continuous graphs, and aims to further improve the quality of stock layout; the difference of Freeman chain codes is improved to be used as a direction chain code, so that the magnitude and the positive and negative of the numerical value can be used as a basis for judging the concave-convex degree, a contour concave-convex characteristic curve is provided to represent the concave-convex characteristic of the contour, the direction chain code is used for constructing, the concave-convex characteristic change of the contour is reflected by the concave-convex characteristic change of continuous discrete points, and the concave-convex characteristic change of the contour can be accurately represented.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a flow chart illustrating a process for reading a DXF file according to the present invention;
FIG. 3 is a sequence number diagram of the present invention;
FIG. 4 is a flow chart of the contour pixel searching process of the present invention;
FIG. 5 is a chain code difference pattern of the present invention;
FIG. 6 is a schematic view of the profile configuration of the present invention;
FIG. 7 is a flow chart of the directional chain code denoising method of the present invention.
Detailed Description
Embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, the invention relates to a method for representing two-dimensional part contour rasterization features, which comprises the following steps:
step 1: the invention uses AutoCAD to store the two-dimensional graph into DXF file format;
and 2, step: reading the graph in the step 1 by utilizing a DXF reading program;
because the invention relates to the two-dimensional graph, when the graph is saved as a DXF format file, the primitive information of the DXF format file is generally stored in the segments, and therefore, the DXF reading program is used for extracting the data information of the LINEs, cirle, POLYLINE and ARC in the segments of the DXF file in the step 1.
DXF file read flow diagram referring to fig. 2, the DXF reference manual is referenced by the group code and description corresponding to the DXF file source code.
And step 3: according to the degree of dispersion x d Rasterizing the outline of the part, and recording the direction sequence number of the discrete points;
to ensure that the two-dimensional contour lines are contained within the pixel frame, for all coordinate information A (X, Y) in step 2, the X-coordinate and the Y-coordinate are divided by the degree X to be discretized, respectively d Further rounding up to obtain a discrete coordinate set B (X) 1 ,Y 1 ) (ii) a Further removing discrete set of coordinates B (X) 1 ,Y 1 ) Repeating the points to obtain a discrete coordinate set C (X) 2 ,Y 2 );
There are 8 adjacent pixels around the center pixel in the pixel pattern, and 8 search directions (1, 2, 3, 4, 5, 6, 7, 8) are constructed as shown in fig. 3. To align the resulting set of discrete coordinates C (X) 2 ,Y 2 ) The method has continuity and ensures that at most 3 pixel points exist in 8 neighborhood ranges outside a central pixel, and a discrete coordinate set C (X) is taken 2 ,Y 2 ) The pixel point with the minimum x and y values, namely the first pixel point at the lower left, is used as a starting point, the first discrete point Q which is searched is further searched and stored according to the sequence of (2, 3, 4, 5, 6, 7, 8, 1), the direction serial number I of the first discrete point Q is recorded, the next serial number of the direction serial number which is about the symmetrical position of the central pixel point is further taken according to the direction serial number I of Q, and the next pixel point of the contour is searched until the next pixel point in the clockwise directionThe pixel points are initial pixel points. The outline pixel searching flow chart is shown in FIG. 4.
And 4, step 4: constructing a direction chain code according to the direction serial number recorded in the step 4, and describing the concave-convex characteristic of the two-dimensional profile by using the code value;
the invention describes the two-dimensional outline by using continuous pixel points, so the invention uses the direction serial number I recorded by the next pixel point to extract the concave-convex characteristic of the outline n Minus the direction index I of the point n-1 The difference J obtained n-1 As a chain code. Because the invention refers to the previous direction serial number to describe the pixel point in the two-dimensional profile scanning sequence, the possibility of returning to the previous pixel point is eliminated, so that 4 or-4 code values cannot appear in the difference, if the direction serial numbers 1 and 8 are continuous in angle, the angle interval is overlarge in angle judgment if the difference (5, -5, 6, -6, 7, -7) is adopted. When the code value of (5, -5, 6, -6, 7, -7) is obtained, the judgment is made:
when I is n -I n-1 >4 hour J n-1 =I n -I n-1 -8;
When I is n -I n-1 <-4 th time J n-1 J=I n -I n-1 +8;
Therefore, the differential chain code obtained by the invention only comprises (-3, -2, -1, 0, 1, 2, 3);
the code value is positive indicating that the direction of the next pixel point is clockwise compared with the direction of the previous pixel point.
The code value is negative, which indicates that the direction of the next pixel point is counterclockwise compared with the direction of the previous pixel point.
-3 represents that the direction of the next pixel point is rotated by 135 degrees counterclockwise compared with the direction of the previous pixel point of the current pixel point
-2 represents that the direction of the next pixel point is 90 degrees counterclockwise compared to the direction of the previous pixel point of the current pixel point
-1 represents that the direction of the next pixel point is 45 degrees counterclockwise compared to the direction of the previous pixel point of the current pixel point
0 represents that the direction of the next pixel point is unchanged compared with the direction of the previous pixel point of the current pixel point;
1 indicates that the direction of the next pixel point is 45 degrees clockwise compared with the previous pixel point of the current pixel point
2 indicates that the direction of the next pixel point is 90 degrees clockwise compared with the previous pixel point of the current pixel point
3 represents that the direction of the next pixel point is clockwise 135 degrees compared with the direction of the previous pixel point of the current pixel point
Further, since the profile scanning direction of the present invention is clockwise as the same as the chain code arrangement direction, a positive code value also means a convex shape compared to the next point, and a negative code value means a concave shape compared to the next point. The magnitude of the absolute value of the code value indicates the degree of significance of the concave-convex characteristic.
As shown in fig. 5, the direction from point a to point b represents the position of the current pixel point in the direction of the previous pixel point.
When the code value is-3, point-3 is shifted counterclockwise by 135 ° with respect to point 0, and point a to point b to point-3 form a reentrant angle of 45 °.
When the code value is-2, the-2 point is shifted counterclockwise by 90 ° with respect to the 0 point, and the a point to the b point to the-2 point form a reentrant angle of 90 °.
When the code value is-1, point-1 is shifted counterclockwise by 45 ° with respect to point 0, and point a to point b to point-1 form a reentrant angle of 135 °.
When the code value is 0, the 0 point is shifted counterclockwise by 0 ° with respect to the 0 point, and the a point to the b point to the 0 point constitute a straight line.
When the code value is 1, point 1 is shifted clockwise by 45 ° with respect to point 0, and a point a to a point b to point 1 form a lobe having an angle of 135 °.
When the code value is 2, point 2 is shifted counterclockwise by 90 ° with respect to point 0, and point a to point b form a lobe having an angle of 90 ° to point 2.
When the code value is 3, point 3 is shifted counterclockwise by 135 ° with respect to point 0, and point a to point b to point 3 form a lobe having an angle of 45 °.
And 5: and constructing a profile concave-convex characteristic curve.
In order to visually represent the concave-convex characteristic of the contour, the invention provides a concave-convex characteristic curve chart. A convex corner (a point larger than 0) in the concave-convex characteristic diagram indicates that the profile is convex here; the re-entrant angle (point less than 0) indicates that the profile is concave here; and the concave-convex characteristic points are represented by 0 to show the concave-convex characteristic. The degree of the conspicuousness of the contour concave-convex characteristic is judged by the sum of the magnitude of the absolute value of the numerical value and the superposition of the adjacent points smaller than or larger than 0.
Referring to fig. 6, in the part, the lower left corner of the pixel point of the pattern is taken as the starting point of the concave-convex characteristic curve to describe the pattern profile clockwise, and the convex angle further comprises a straight line, a concave angle, a straight line, a convex angle, a straight line, a concave angle, a straight line, a convex angle, a straight line, a concave angle and a straight line, and then the straight line returns to the starting point of the lower left corner. The change of the concave-convex characteristic of the whole contour can be accurately depicted in the concave-convex characteristic curve.
Since the direction chain code in step 4 includes the concave-convex characteristic of the contour, the present invention uses the direction chain code to construct a concave-convex characteristic graph.
However, the direction chain code represents the change of two adjacent pixels, the change of the angle of the direction chain code in the whole outline range cannot visually reflect the curve characteristic of the outline in the concave-convex characteristic curve, but if the chain code reflects the linear characteristic, the sum of the code value neighborhoods of any pixel of the section of the straight line is always close to 0; therefore, the invention carries out noise reduction treatment on the direction chain code constructed in the step 4, removes the pixels which can be complemented by the concave points and the convex points in the range of three adjacent pixels in the whole outline, replaces the pixels by the characteristics of straight lines, and amplifies the numerical values of the concave-convex characteristic points to make the values more prominent.
The chain code is marked as I ═ I 1 ,i 2 ……i n-1 ,i n ](ii) a Let J be [ i ] 2 ……i n-1 ,i n ,i 1 ],L=[i 3 ……i n ,i 1 ,i 2 ](ii) a M is the number less than 0 in I X J, namely the adjacent pixel points have opposite signs, N is the number less than 0 in I X L, namely the two pixel points spaced by one bit have opposite signs, and the length of the chain code isGreater than 2 results in some of the next pixels in M with indices less than 0 not having substantial complementarity with them, and therefore the pixels that have already been paired are removed in the loop. However, in the complementary pixel points, the point actually represents the concave-convex characteristic point when one side of the left and right neighborhoods can be complementary but the other side conforms to the same condition. Therefore, the unique point is removed from the M set, and the characteristic point is ensured not to be processed; because the condition that the code values of adjacent pixels are opposite is removed in the processing process, the noise reduction of the outline is finished under the condition that the code values of two pixels which are separated by one pixel are opposite in sign. The process of direction chain code denoising is shown in fig. 7.
The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above-mentioned embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may be made by those skilled in the art without departing from the principle of the invention.

Claims (4)

1. A method for representing the rasterized features of the outline of a two-dimensional part is characterized by comprising the following steps:
step 1: storing the two-dimensional graph into a file format capable of reading graph information;
and 2, step: reading the file information in the step 1;
and step 3: according to the degree of dispersion x d Rasterizing the outline of the part, and recording the direction sequence number of the discrete points;
and 4, step 4: constructing a direction chain code according to the direction serial number recorded in the step 3, and describing the concave-convex characteristic of the two-dimensional profile by using the code value;
and 5: constructing a profile concave-convex characteristic curve;
the step 3 comprises the following steps:
step 3.1: for all coordinate information A (X, Y), the X-coordinate and the Y-coordinate are divided by the degree X to be discretized, respectively d Further rounding up to obtain a discrete coordinate set B (X) 1 ,Y 1 ) (ii) a Further removing discrete set of coordinates B (X) 1 ,Y 1 ) The repeated points result in a discrete coordinate set C (X) 2 ,Y 2 );
Step 3.2: there are 8 adjacent pixel points around the central pixel point in the pixel graph, and 8 search directions are constructed as (1, 2, 3, 4, 5, 6, 7, 8);
step 3.3: taking a discrete coordinate set C (X) 2 ,Y 2 ) The pixel point with the minimum middle X coordinate and Y coordinate value, namely the first pixel point at the lower left, is taken as a starting point, the searched first discrete point Q is further searched and stored according to the sequence of (2, 3, 4, 5, 6, 7, 8, 1), the direction serial number I of the first discrete point Q is recorded, and the next pixel point of the contour is further searched according to the direction serial number I of the first discrete point Q, the direction serial number next to the direction serial number of the symmetrical position of the central pixel point, and the direction serial number next to the direction serial number of the central pixel point, and the contour is further searched until the next pixel point is taken as the initial pixel point;
in the step 4, the direction serial number I recorded by the next pixel point is used n Minus the direction index I of the point n-1 The difference J obtained n-1 As a chain code;
in obtaining I n -I n-1 Judging when the code value is obtained, wherein the judgment conditions are as follows:
when I is n -I n-1 >4 hour J n-1 =I n -I n-1 -8;
When I is n -I n-1 <-4 th time J n-1 J=I n -I n-1 +8;
The obtained differential chain code J n-1 Is in the code value of [ -3,3 [)]Within the interval;
the code value is that the direction of the next pixel point is positively represented and is clockwise compared with the direction of the previous pixel point of the pixel point;
the code value is negative, and the direction of the next pixel point is anticlockwise compared with the direction of the previous pixel point by the pixel point;
-3 indicates that the direction of the next pixel point is 135 ° counterclockwise compared to the direction of the previous pixel point of the present pixel point;
-2 indicates that the direction of the next pixel point is 90 ° counterclockwise compared to the direction of the previous pixel point of the present pixel point;
-1 indicates that the direction of the next pixel point is 45 ° counterclockwise compared to the direction of the previous pixel point of the present pixel point;
0 represents that the direction of the next pixel point is unchanged compared with the direction of the previous pixel point of the current pixel point;
1 represents that the direction of the next pixel point is 45 degrees clockwise compared with the direction of the previous pixel point of the current pixel point;
2, the direction of the next pixel point is 90 degrees clockwise compared with the direction of the previous pixel point of the current pixel point;
3, the direction of the next pixel point is 135 degrees clockwise compared with the direction of the previous pixel point of the pixel point;
in the step 4, the code value is positive and also indicates that the code value is convex compared with the previous point and the next point, the code value is negative and indicates that the code value is concave compared with the previous point and the next point, and the absolute value of the code value indicates the obvious degree of the concave-convex characteristic;
in step 4, assuming that the direction from point a to point b represents the position of the pixel point in the direction of the previous pixel point, then:
when the code value is-3, the-3 point moves 135 degrees counterclockwise relative to the 0 point, and the a point to the b point form a concave angle with an angle of 45 degrees to the-3 point;
when the code value is-2, the-2 point moves 90 degrees counterclockwise relative to the 0 point, and the angle from the point a to the point b to the point-2 forms a concave angle with the angle of 90 degrees;
when the code value is-1, point-1 moves 45 ° counterclockwise relative to point 0, and point a to point b form a reentrant angle of 135 ° to point-1;
when the code value is 0, the point 0 moves counterclockwise by 0 degrees relative to the point 0, and a point a to a point b form a straight line to the point 0;
when the code value is 1, the 1 point moves clockwise 45 degrees relative to the 0 point, and a point a to a point b form a convex angle with an angle of 135 degrees to the 1 point;
when the code value is 2, the 2 point is moved 90 degrees counterclockwise relative to the 0 point, and a point a to a point b form a convex angle with an angle of 90 degrees to the 2 point;
when the code value is 3, point 3 is shifted counterclockwise by 135 ° with respect to point 0, and point a to point b to point 3 form a lobe having an angle of 45 °.
2. The method for rasterizing feature representation of the outline of a two-dimensional part as recited in claim 1, wherein in step 1, the AutoCAD is used to save the two-dimensional graph into DXF file format;
in step 2, reading the graph in step 1 by using a DXF reading program, specifically: and (3) extracting the data information of the LINE, CIRCLE, POLYLINE and ARC in the segments of the ENTITIES of the DXF file in the step (1) by using a DXF reading program.
3. A method for rasterizing features of the outline of a two-dimensional part as recited in claim 1, wherein in said step 5, convex angles in the concave-convex characteristic diagram, that is, points greater than 0, indicate that the outline is convex here; the re-entrant angle, i.e. the point less than 0, indicates that the profile is concave here; the concave-convex characteristic points are represented by 0 to show the concave-convex characteristic;
the degree of the conspicuousness of the contour concave-convex characteristic is judged by the sum of the magnitude of the absolute value of the numerical value and the superposition of the adjacent points smaller than or larger than 0.
4. The method for representing rasterized features of a two-dimensional part outline according to claim 1, characterized in that in step 5, the directional chain code constructed in step 4 is denoised, pixels which are complementary to salient points and recesses in the range of three adjacent pixels in the whole outline are removed, the pixels are replaced by straight line features, and the values of the concave-convex feature points are amplified to be more prominent.
CN202110590879.XA 2021-05-28 2021-05-28 Two-dimensional part outline rasterization feature representation method Active CN113408543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110590879.XA CN113408543B (en) 2021-05-28 2021-05-28 Two-dimensional part outline rasterization feature representation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110590879.XA CN113408543B (en) 2021-05-28 2021-05-28 Two-dimensional part outline rasterization feature representation method

Publications (2)

Publication Number Publication Date
CN113408543A CN113408543A (en) 2021-09-17
CN113408543B true CN113408543B (en) 2022-08-16

Family

ID=77675057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110590879.XA Active CN113408543B (en) 2021-05-28 2021-05-28 Two-dimensional part outline rasterization feature representation method

Country Status (1)

Country Link
CN (1) CN113408543B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446499A (en) * 2016-07-04 2017-02-22 北京理工大学 Three-dimensional chain code-based space curve identification method
CN107679333A (en) * 2017-10-19 2018-02-09 大连理工大学 A kind of method of two-dimensional topology optimum results geometry reconstruction
CN110838115A (en) * 2019-11-12 2020-02-25 武汉大学 Ancient cultural relic three-dimensional model change detection method by contour line extraction and four-dimensional surface fitting
CN112232209A (en) * 2020-10-16 2021-01-15 蓝普金睛(北京)科技有限公司 Pointer type instrument panel reading identification method for transformer substation inspection robot

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5854802B2 (en) * 2011-12-01 2016-02-09 キヤノン株式会社 Image processing apparatus, image processing method, and computer program
CN102647541B (en) * 2012-04-28 2014-08-20 大连民族学院 Picture encoding method based on lossy compression chain code
US10212457B1 (en) * 2015-11-17 2019-02-19 Evernote Corporation Coordinated piecewise bezier vectorization
CN109711418B (en) * 2019-01-29 2020-12-01 浙江大学 Contour corner detection method for object plane image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446499A (en) * 2016-07-04 2017-02-22 北京理工大学 Three-dimensional chain code-based space curve identification method
CN107679333A (en) * 2017-10-19 2018-02-09 大连理工大学 A kind of method of two-dimensional topology optimum results geometry reconstruction
CN110838115A (en) * 2019-11-12 2020-02-25 武汉大学 Ancient cultural relic three-dimensional model change detection method by contour line extraction and four-dimensional surface fitting
CN112232209A (en) * 2020-10-16 2021-01-15 蓝普金睛(北京)科技有限公司 Pointer type instrument panel reading identification method for transformer substation inspection robot

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Towards Measuring Shape Similarity of Polygons Based on Multiscale Features and Grid Context Descriptors;Hongchao Fan 等;《International Journal of Geo-Information》;20210428;第1-21页 *
基于HOG特征描述的轮廓匹配算法;童小彬 等;《东华大学学报(自然科学版)》;20201031;第46卷(第5期);第787-792页 *
基于改进遗传算法的铝合金型材下料方法研究;黄秀玲 等;《制造业自动化》;20210131;第43卷(第1期);第88-92、103页 *

Also Published As

Publication number Publication date
CN113408543A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN110866924A (en) Line structured light center line extraction method and storage medium
Liao et al. Stroke segmentation by Bernstein-Bezier curve fitting
CN107577979B (en) Method and device for quickly identifying DataMatrix type two-dimensional code and electronic equipment
Xiang et al. Optical and SAR image registration based on feature decoupling network
CN110570440A (en) Image automatic segmentation method and device based on deep learning edge detection
Olsen et al. Convolution approach for feature detection in topological skeletons obtained from vascular patterns
TWI497420B (en) Two-dimentional optical indetification device with same gray level for quickly decoding and method for decoding the same
CN111260564A (en) Image processing method and device and computer storage medium
Oka et al. Vectorization of contour lines from scanned topographic maps
CN113408543B (en) Two-dimensional part outline rasterization feature representation method
Wang et al. Spline-based medial axis transform representation of binary images
CN112712860B (en) Grain finite element model modeling method based on real metallographic structure
JP2006268804A (en) Thinning method of binary image
CN112435273A (en) Method for converting bitmap into vector diagram
CN112633070A (en) High-resolution remote sensing image building extraction method and system
CN110532826B (en) Bar code recognition device and method based on artificial intelligence semantic segmentation
JP2011210160A (en) Image processing method, image processor, program and program storage medium
CN107798663B (en) Partial differential equation and BM 3D-based non-parametric image recovery method
Kang et al. Direct gray-scale extraction of topographic features for vein recognition
CN109614952B (en) Target signal detection and identification method based on waterfall plot
CN114863043A (en) Map processing method, map processing device, robot and storage medium
CN112085816B (en) Font curve generation method and device
CN112580594B (en) Document identification method, device, computer equipment and storage medium
CN114332890A (en) Table structure extraction method and device, electronic equipment and storage medium
De Vectorization of architectural floor plans

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
GR01 Patent grant
GR01 Patent grant