CN115830181B - Image processing method and device for laser imaging and related equipment - Google Patents

Image processing method and device for laser imaging and related equipment Download PDF

Info

Publication number
CN115830181B
CN115830181B CN202310007022.XA CN202310007022A CN115830181B CN 115830181 B CN115830181 B CN 115830181B CN 202310007022 A CN202310007022 A CN 202310007022A CN 115830181 B CN115830181 B CN 115830181B
Authority
CN
China
Prior art keywords
image
alpha
arc
included angle
intersection
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
CN202310007022.XA
Other languages
Chinese (zh)
Other versions
CN115830181A (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.)
Shenzhen Anteland Technology Co Ltd
Original Assignee
Shenzhen Anteland Technology Co Ltd
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 Shenzhen Anteland Technology Co Ltd filed Critical Shenzhen Anteland Technology Co Ltd
Priority to CN202310007022.XA priority Critical patent/CN115830181B/en
Publication of CN115830181A publication Critical patent/CN115830181A/en
Application granted granted Critical
Publication of CN115830181B publication Critical patent/CN115830181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides an image processing method, an image processing device and related equipment for laser imaging, wherein the method comprises the following steps: step 1: a coordinate origin O (0, 0) is arranged outside a region formed by surrounding an image to be exposed; step 2: taking a coordinate origin O (0, 0) as a circle center, and drawing concentric circles from inside to outside with successively increased different radiuses rK and intersecting the boundary of the image to be exposed to obtain a plurality of sections of circular arcs; step 3: solving alpha K1', alpha K2' and alpha K of any kth arc image segment; step 4: and filling all pixel points of the K-segment arc image segments into corresponding positions in the two-dimensional matrix. In the process of processing the vector image of the image to be exposed into the two-dimensional matrix image under the polar coordinate, the process that each pixel point in the vector image is firstly converted into the corresponding position under the rectangular coordinate system is omitted, and the image processing process and the processing precision are improved.

Description

Image processing method and device for laser imaging and related equipment
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to an image processing method and apparatus for laser imaging, and related devices.
Background
In the laser imaging field, it is generally required to convert a vector image into a two-dimensional matrix image, and in the conversion process, all pixel points in the vector image need to be converted into corresponding positions under a rectangular coordinate system, and then each pixel point under the rectangular coordinate system needs to be converted into the two-dimensional matrix image. In the process of converting the vector diagram into the rectangular graph, each pixel point in the vector diagram needs to be converted into a corresponding position in the rectangular graph, so that each pixel point in the rectangular graph needs to be converted into a two-dimensional matrix diagram until each pixel point, the calculation workload is large, and the efficiency is low. And the accuracy of the finally obtained image is lower after multiple conversions.
Disclosure of Invention
One technical problem to be solved by the present application is: in the field of laser imaging, how to improve image processing accuracy and efficiency when processing a vector image into a two-dimensional matrix image.
To solve the above technical problems, an embodiment of the present disclosure provides an image processing method for laser imaging, including:
step 1: setting a coordinate origin O (0, 0) outside the region of the image to be exposed;
step 2: and (3) taking O (0, 0) as a circle center, drawing a plurality of concentric circles with gradually increased different radiuses rK from inside to outside and intersecting the boundary of the image to be exposed to obtain a plurality of arc image sections, wherein two intersecting points formed by intersecting the arc image sections are respectively defined as: a first intersection point and a second intersection point;
step 3: a value obtained by reserving integer digits of a first included angle alpha K1 formed by a connecting line of a first intersection point of any K-th arc image section and a circle center and a horizontal reference line passing through the circle center is expressed by alpha K1', a value obtained by reserving integer digits of a second included angle alpha K2 formed by a connecting line of the second intersection point and the circle center and a horizontal reference line passing through the circle center is expressed by alpha K2', and the arc included angle alpha K corresponding to the K-th arc image section is obtained according to alpha K= (alpha K2 '-alpha K1').
Step 4: establishing a two-dimensional matrix with O (0, 0) as an origin, the radius of the circular arc as an ordinate and the angle component as an abscissa, taking the radius rK of the image section of the circular arc of the K section as an ordinate, taking alpha K1 'as the starting point of the abscissa and alpha K2' as the end point of the abscissa, and horizontally filling total (alpha K+1) pixel points on the two-dimensional matrix to obtain the horizontal pixel section of the K section.
In some embodiments, the arc angle αk obtaining module further includes: the device comprises a first included angle alpha K1 rounding module, a second included angle alpha K2 rounding module and a calculating module;
the first included angle alpha K1 rounding module is used for reserving a whole digital value and expressing alpha K1' of a first included angle alpha K1 formed by a connecting line of a first intersection point and a circle center of any K-th arc image segment and a horizontal reference line passing through the circle center;
the second included angle alpha K2 rounding module is used for: a second included angle alpha K2 formed by a connecting line from the second intersection point to the circle center and a horizontal reference line passing through the circle center is reserved with an integer digital value and is expressed by alpha K2';
the calculation module is used for calculating the arc included angle alpha K obtained by the (alpha K2 '-alpha K1').
In some embodiments, if any concentric circle with radius rK coincides with the first intersection point and the second intersection point where the image to be exposed intersects, yk1=yk2, xk1=xk2, αk1=αk2, and αk=0.
The application also discloses an image processing device for laser imaging, comprising:
the concentric arc obtaining module is used for: setting a coordinate origin O (0, 0) outside the region of the image to be exposed; taking a coordinate origin O (0, 0) as a circle center, and drawing concentric circles with successively increased different radiuses rK from inside to outside to intersect an image to be exposed to obtain a plurality of concentric circle arc image segments;
the arc included angle alpha K obtaining module is used for: according to the coordinate origins O (0, 0) and rK, obtaining coordinate values of two intersection points obtained by intersecting each concentric circle with the boundary of the image to be exposed, and according to the connection line of the two intersection points and the coordinate origins O (0, 0), obtaining an arc included angle alpha K corresponding to the arc image section;
an image processing module for: establishing a two-dimensional matrix with O (0, 0) as an origin, rK as an ordinate and an angle component as an abscissa, and filling all pixel points contained in each arc image segment on the two-dimensional matrix after processing to obtain a two-dimensional matrix diagram.
In some embodiments, the arc angle αk obtaining module further includes: the device comprises a first included angle alpha K1 rounding module, a second included angle alpha K2 rounding module and a calculating module; the first included angle alpha K1 rounding module is used for reserving an integer digital value for a first included angle alpha K1 formed by a connecting line of a first intersection point and a circle center of any K-th arc image segment and a horizontal reference line passing through the circle center so as to obtain alpha K1'; the second included angle alpha K2 rounding module is used for reserving a whole digital value for a second included angle alpha K2 formed by a connecting line of the second intersection point and the circle center and a horizontal reference line passing through the circle center so as to obtain alpha K2'; the calculation module is used for calculating (alpha K2 '-alpha K1') to obtain alpha K.
In some embodiments, the specific steps of the image processing module for filling all the pixel points included in each circular arc image segment on the two-dimensional matrix after processing are as follows: taking the radius rK of the Kth arc image segment as an ordinate, taking alpha K1 'as a starting point of an abscissa and taking alpha K2' as an end point of the abscissa, and horizontally filling total (alpha K+1) pixel points to obtain the Kth horizontal pixel segment.
In some embodiments, the first angle αk1 and the second angle αk2 are measured or calculated: αk1=arctg (YK 1/xK 1), αk2=arctg (YK 2/xK 2), where xK1 is the abscissa of the first intersection of the kth arc image segment, YK1 is the ordinate of the first intersection of the kth arc image segment, xK2 is the abscissa of the second intersection of the kth arc image segment, and YK2 is the ordinate of the second intersection of the kth arc image segment.
In some embodiments, if the first intersection point and the second intersection point coincide, yk1=yk2, xk1=xk2, αk1=αk2, αk=0.
The application also discloses a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the image processing method.
The application also discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the image processing method when executing the program.
The beneficial effects of this application:
1. in the process of directly converting the image to be exposed into a two-dimensional matrix diagram under polar coordinates from the vector diagram, the process of converting all pixel points under the vector diagram into the two-dimensional matrix diagram under the rectangular coordinates and then converting the pixel points into the two-dimensional matrix diagram under the polar coordinates through the rectangular coordinates is omitted, so that the image processing process is simplified, and the image processing precision is improved.
2. Only the coordinate positions of the first and the last two pixel points of each arc image section in a plurality of arc image sections obtained by dividing the image to be exposed through a plurality of concentric circles are needed to be calculated, the coordinate positions of the middle pixel points are not needed to be calculated, and the image processing efficiency and the image processing process are improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a diagram of method steps disclosed in an embodiment of the present disclosure;
FIG. 2 is a schematic illustration of a vector diagram disclosed in an embodiment of the present disclosure divided into segments of concentric circular image segments by concentric circles;
FIG. 3 is a two-dimensional matrix diagram obtained after processing using the method of the present application;
fig. 4 is a schematic diagram of an arc EE1 obtained after intersecting the concentric circle No. 2 and the pentagonal image ABCDE in fig. 2;
fig. 5 is a schematic diagram of the arc image segment EE1 in fig. 4 formed by a plurality of pixel points;
fig. 6 is a block diagram of the image processing apparatus of the present application.
Detailed Description
Embodiments of the present disclosure are described in further detail below with reference to the drawings and examples. The following detailed description of the embodiments and the accompanying drawings are provided to illustrate the principles of the disclosure and not to limit the scope of the disclosure, which may be embodied in many different forms and not limited to the specific embodiments disclosed herein, but rather to include all technical solutions falling within the scope of the claims.
The present disclosure provides these embodiments in order to make the present disclosure thorough and complete, and fully convey the scope of the disclosure to those skilled in the art. It should be noted that: the relative arrangement of parts and steps, the composition of materials, numerical expressions and numerical values set forth in these embodiments should be construed as exemplary only and not limiting unless otherwise specifically stated.
In the description of the present disclosure, unless otherwise indicated, the meaning of "plurality" is greater than or equal to two; the terms "upper," "lower," "left," "right," "inner," "outer," and the like indicate an orientation or positional relationship merely for convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the devices or elements being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus are not to be construed as limiting the present disclosure. When the absolute position of the object to be described is changed, the relative positional relationship may be changed accordingly.
Furthermore, the use of the terms first, second, and the like in this disclosure do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The "vertical" is not strictly vertical but is within the allowable error range. "parallel" is not strictly parallel but is within the tolerance of the error. The word "comprising" or "comprises" and the like means that elements preceding the word encompass the elements recited after the word, and not exclude the possibility of also encompassing other elements.
It should also be noted that, in the description of the present disclosure, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be directly connected or indirectly connected through an intermediate medium. The specific meaning of the terms in the present disclosure may be understood as appropriate by those of ordinary skill in the art. When a particular device is described as being located between a first device and a second device, there may or may not be an intervening device between the particular device and either the first device or the second device.
All terms used in the present disclosure have the same meaning as understood by one of ordinary skill in the art to which the present disclosure pertains, unless specifically defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, an embodiment of the present disclosure provides an image processing method for laser imaging, including:
step 1: setting a coordinate origin O (0, 0) outside the region of the image to be exposed;
step 2: and (3) taking O (0, 0) as a circle center, drawing a plurality of concentric circles with gradually increased different radiuses rK from inside to outside and intersecting the boundary of the image to be exposed to obtain a plurality of arc image sections, wherein two intersecting points formed by intersecting the arc image sections are respectively defined as: a first intersection point and a second intersection point;
step 3: a value obtained by reserving integer digits of a first included angle alpha K1 formed by a connecting line of a first intersection point and a circle center of any kth arc image segment and a horizontal reference line passing through the circle center is expressed by alpha K1', a value obtained by reserving integer digits of a second included angle alpha K2 formed by a connecting line of the second intersection point and the circle center and the horizontal reference line passing through the circle center is expressed by alpha K2', and an arc included angle alpha K corresponding to the kth arc image segment is obtained according to alpha K= (alpha K2 '-alpha K1').
Step 4: establishing a two-dimensional matrix with O (0, 0) as an origin, the radius of the circular arc as an ordinate and the angle component as an abscissa, taking the radius rK of the image section of the circular arc of the K section as an ordinate, taking alpha K1 'as the starting point of the abscissa and alpha K2' as the end point of the abscissa, and horizontally filling total (alpha K+1) pixel points on the two-dimensional matrix to obtain the horizontal pixel section of the K section.
The contents of the above steps are specifically described below with reference to fig. 2 to 5.
Referring to fig. 2, the image to be exposed is illustratively an irregular pentagon image, which is composed of five edges AB, BC, CD, DE and EA to form a closed area ABCDE, and within the closed area ABCDE, a number of pixels are filled.
First, outside the region ABCDE, the origin of coordinates O (0, 0) is established, and concentric circles are drawn from inside to outside with different radius values rK. Wherein, K is the number of concentric circles, and the K value gradually increases when expanding from inside to outside. In FIG. 2, 10 concentric circles are drawn in an exemplary way, that is, K is equal to or greater than 1 and equal to or less than 10, and K is an integer, that is, the number of each concentric circle, which is also the number of each obtained concentric arc. Each concentric circle needs to intersect with an irregular pentagonal image ABCDE (hereinafter referred to as pentagonal image ABCDE). It will be appreciated that the radius r1 of concentric circle No. 1 is the smallest and its value is the length of line segment OA, that is, concentric circle No. 1 and pentagonal image ABCDE have only one intersection point a. The radius of the No. 2 concentric circle is r2, r2 is larger than r1, the No. 2 concentric circle and the pentagon image ABCDE are intersected at two intersection points, namely an E point and an E1 point, wherein the E1 point is located on the edge AB, and E is one corner of the pentagon image ABCDE. Similarly, the radii of concentric circles 3 to 9 are respectively r3 which increases in order ~ r9. Concentric circles No. 3 through No. 9 intersect pentagonal ABCDE images at two intersection points. FinallyThe radius of a 10 th concentric circle is r10, r10 is larger than r9, and only one intersection point C exists between the 10 th concentric circle and the pentagonal image ABCDE. In the application, when the intersection point of the concentric circle and the pentagonal image ABCDE is one, it is treated as a special case that the two intersection points are overlapped together.
Since the concentric circle No. 1 and the pentagonal image ABCDE intersect at the point a, the first coordinate defining the point a is (x 11, Y11), the horizontal line OM defining the origin of coordinates O (0, 0) is taken as a reference line, the radius r1 of the concentric circle No. 1 is exemplified by 7 mm, the angle α11 formed by the first line passing through the point a and the origin of coordinates O (0, 0) and the reference line is 56.96 °, the value obtained by rounding the α11 is denoted by α11', α11' is 56 °, and the values are recorded in table 1. Since the concentric circle No. 1 and the pentagonal image ABCDE have only 1 intersection, that is, the coordinates (x 12, Y12) of the second intersection coincide with the first coordinates (x 11, Y11), y11=y12, x11=x12, and the arc angle α1=1°, the arc length is the length of one pixel.
The radius r2 of the concentric circle No. 2 is taken as 8 mm, and two intersecting points are formed between the concentric circle No. 2 and the pentagonal image ABCDE, and are a first intersecting point E and a second intersecting point E1 respectively, wherein the point E1 is a point on the edge AB, and the point E is a vertex of the pentagonal image ABCDE. The coordinates of the first intersection point E are defined as (xK 1, YK 1), the coordinates of the second intersection point E1 are defined as (xK 2, YK 2), a first included angle formed by a first connecting line formed by the first intersection point E and a circle center O (0, 0) and a reference line OM is defined as alpha 21, and a second included angle formed by a second connecting line formed by the second intersection point E1 and the circle center O (0, 0) and the reference line OM is defined as alpha 22. The value of the first included angle alpha 21 after rounding is calculated to be 32 degrees, and the value is expressed by alpha 21'; the rounded value of the second included angle αk2 is denoted by α22', where α22' is 55 °, and the arc included angle α2 corresponding to the arc image segment EE1 is (α22'- α21') and is equal to 24 °. R2, α21', α22' and α2 are recorded in the corresponding positions in table 1. It should be noted that α21 and α22 may be calculated from the corresponding coordinate values thereof, in addition to the measurement, where α21=arctg (Y21/x 21), and α22=arctg (Y22/x 22). The measured angle values are rounded because the minimum unit of the abscissa in the two-dimensional matrix is 1 °.
Since the concentric circles No. 3 to No. 9 each have two intersections with the pentagonal image ABCDE, the parameters related to the arc image segments obtained after the concentric circles No. 3 to No. 9 intersect with the pentagonal image ABCDE were obtained in the same manner as the α21, α22, and α2, and are recorded in table 1. The specific calculation process is as follows: radius r3 of concentric circle No. 3 is exemplified by 9 mm, radius r4 of concentric circle No. 4 is exemplified by 10 mm, radius r5 of concentric circle No. 5 is exemplified by 11 mm, radius r6 of concentric circle No. 6 is exemplified by 12 mm, radius r7 of concentric circle No. 7 is exemplified by 13 mm, radius r8 of concentric circle No. 8 is exemplified by 14 mm, and radius r9 of concentric circle No. 9 is exemplified by 15 mm. After rounding (i.e., only the integer bits of the angle value are reserved):
α31 'is 30 °, α32' is 53 °, α3= (α32'- α31') is 23 °;
α41 'is 28 °, α42' is 52 °, α4= (α42'- α41') is 24 °;
α51 'is 26 °, α52' is 51 °, α5= (α52'- α51') is 25 °;
α61 'is 25 °, α62' is 50 °, α6= (α62'- α61'), 25 °;
α71 'is 24 °, α72' is 50 °, α7= (α72'- α71') is 26 °;
α81 'is 30 °, α82' is 49 °, α8= (α82'- α81'), is 19 °;
α91 'is 34 °, α92' is 42 °, α9= (α92'- α91') is 8 °.
Finally, the intersection point of the 10 th concentric circle and the pentagonal image ABCDE is a point C, and the radius of the 10 th concentric circle is defined as r10, and the value of r10 is 16 millimeters. The values of α101', α102', α10 are rounded to 37 °, 37 ° and 0, respectively. α101', α102', α10 are recorded in table 1.
Table 1: parameter table corresponding to each concentric arc image segment
Figure 165990DEST_PATH_IMAGE001
Referring to table 1 and fig. 3, a matrix is created in which the origin of coordinates o (0, 0) is set, and after intersecting the pentagonal image ABCDE with a plurality of concentric circles, the intersection point is set to be the abscissa, and the line connecting the intersection point with the origin of coordinates o (0, 0) and the horizontal reference line is set to be the ordinate, and the radius rK of the plurality of concentric circles is set to be the ordinate, and all the pixel points included in the 10 circular arc image segments in table 1 are filled in the corresponding positions on the two-dimensional matrix, so as to form the matrix diagram shown in fig. 3. On the two-dimensional matrix chart shown in fig. 3, the starting angle of the abscissa is the minimum included angle formed by the line from the first intersection point of the plurality of circular arc image segments to the origin and the horizontal reference line passing through the origin, specifically in this embodiment, the minimum included angle is the first included angle α71 formed by the line from the point D where the 7 th concentric circle intersects with the pentagonal image ABCDE to the origin o (0, 0) and the horizontal reference line OM, and the first included angle α71 is 24 ° after being rounded; the starting point of the ordinate is the minimum value of rK, in particular r1 in this example. An exemplary value for r1 is 7 mm.
The two-dimensional matrix diagram is explained in detail below. For the concentric circle No. 1, the ordinate corresponding to the point a is 7 mm, α11 is 56.96 °, the rounded α11' is 56 °, and the position corresponding to the abscissa of 56 °, since there is only one intersection point a between the concentric circle No. 1 and the pentagonal image ABCDE, there is only one pixel point a on the two-dimensional matrix diagram of fig. 3. For a circular arc image segment EE1 obtained after intersecting the concentric circle No. 2 with the pentagonal image ABCDE, the starting point is E1, the end point is E (counterclockwise rotation), and the radius is r 2. After the arc image segment EE1 is processed, in fig. 3, E1 is at a position with 8 on the ordinate and 32 on the abscissa, E is at a position with 8 on the ordinate and 55 on the abscissa, and the length of the entire horizontal pixel segment is 24 pixels. Referring to fig. 4 and 5, fig. 4 is a schematic diagram of a circular arc image segment EE1 obtained after intersecting the concentric circle No. 2 and the pentagonal image ABCDE in fig. 2, and fig. 5 is a schematic diagram of the circular arc image segment EE1 in fig. 4 composed of a plurality of pixels. As is known from fig. 5 and 3, 24 pixels constituting the circular arc image segment EE1 in fig. 5 are changed from original circular arc distribution to linear segment distribution in the second row in the matrix diagram in fig. 3 after image processing. It can be understood that, among the 24 pixels of the arc image segment EE1, the coordinates of the first pixel E and the last pixel E1 (see 32 and 55 corresponding to the concentric circle number 2 in fig. 3) are required, and the 22 pixels in the middle can be filled to the corresponding positions in fig. 3 except the first and last pixels without calculating the corresponding coordinates, so that the processing speed of the image is greatly improved.
Similarly, for each pixel point in the 7-segment arc image segment obtained after intersecting the concentric circles No. 3 to No. 9 with the pentagon image ABCDE, the processing method is the same as the processing method for each pixel point in the arc image segment obtained after intersecting the concentric circle No. 2 with the pentagon image ABCDE. For example, in fig. 2, for the concentric circle No. 3, the arc image segment FF1 obtained after it intersects with the pentagonal image ABCDE, the first angle α31 formed by the first line of the point F and the origin o (0, 0) and the horizontal reference line OM is rounded to be 30 °, the second angle α32 formed by the second line of the point F1 and the origin o (0, 0) and the horizontal reference line OM is rounded to be 53 °, α3=23°, and it is reflected on the matrix diagram of fig. 3 that the point F is at a start position on the matrix diagram with the ordinate of 9, the abscissa of 30, the point F1 is at an end position with the ordinate of 9, and the abscissa of 53, and the length of the entire horizontal pixel segment is 24 pixels. The distribution of the other pixel points constituting the 4 th to 9 th arc image segments on the matrix diagram is not further exemplified. For concentric circle No. 10, the values of α101, α102, α10 are rounded to 37 °, 37 ° and 0, respectively, with a radius of 16 mm, and therefore the position of point C on the two-dimensional matrix diagram is at the ordinate 16 and abscissa 37. The size of the C dot is 1 pixel.
It should be noted that the pentagonal image ABCDE of the image to be exposed is merely exemplary, and the shape of the image to be exposed may be other shapes such as a rectangle and an ellipse, but regardless of the pattern, the condition that the two intersecting points with the concentric circular arcs intersect must be satisfied. If two points of intersection coincide as one point of intersection, such as point a and point C, this is to be understood as a particular case.
It should be noted that, the values of r1-r10 are merely exemplary, in fact, if the DPI (Dots Per Inch) of the image to be exposed in fig. 2 is higher, the smaller each pixel is, the more concentric circles can be divided between every two adjacent concentric circles in fig. 2, the more pixels are included in each circular arc image segment, and finally, the more closely spaced each two adjacent horizontal pixel segments are reflected in the two-dimensional matrix in fig. 3, and the more pixels are included in each horizontal pixel segment.
Referring to fig. 6, the present application also discloses an image processing apparatus for laser imaging, comprising:
the concentric arc obtaining module is used for: setting a coordinate origin O (0, 0) outside the region of the image to be exposed; taking a coordinate origin O (0, 0) as a circle center, and drawing concentric circles with successively increased different radiuses rK from inside to outside to intersect an image to be exposed to obtain a plurality of concentric circle arc image segments;
the arc included angle alpha K obtaining module is used for: according to the coordinate origins O (0, 0) and rK, obtaining coordinate values of two intersection points obtained by intersecting each concentric circle with the boundary of the image to be exposed, and according to the connection line of the two intersection points and the coordinate origins O (0, 0), obtaining an arc included angle alpha K corresponding to the arc image section;
an image processing module for: establishing a two-dimensional matrix with O (0, 0) as an origin, rK as an ordinate and an angle component as an abscissa, and filling all pixel points contained in each arc image segment on the two-dimensional matrix after processing to obtain a two-dimensional matrix diagram.
In some embodiments, the arc angle αk obtaining module further includes: the device comprises a first included angle alpha K1 rounding module, a second included angle alpha K2 rounding module and a calculating module; the first included angle alpha K1 rounding module is used for reserving a whole digital value of a first included angle alpha K1 formed by a connecting line of a first intersection point and a circle center of any kth arc and a horizontal reference line passing through the circle center so as to obtain alpha K1'; the second included angle alpha K2 rounding module is used for reserving a whole digital value for a second included angle alpha K2 formed by a connecting line of the second intersection point and the circle center and a horizontal reference line passing through the circle center so as to obtain alpha K2'; the calculation module is used for calculating (alpha K2 '-alpha K1') to obtain alpha K.
In some embodiments, the specific steps of the image processing module for filling all the pixel points included in each circular arc image segment on the two-dimensional matrix after processing are as follows: taking the radius rK of the Kth arc image segment as an ordinate, taking alpha K1 'as a starting point of an abscissa and taking alpha K2' as an end point of the abscissa, and horizontally filling total (alpha K+1) pixel points to obtain the Kth horizontal pixel segment.
In some embodiments, the first angle αk1 and the second angle αk2 are measured or calculated: αk1=arctg (YK 1/xK 1), αk2=arctg (YK 2/xK 2), where xK1 is the abscissa of the first intersection of the kth arc, YK1 is the ordinate of the first intersection of the kth arc image segment, xK2 is the abscissa of the second intersection of the kth arc image segment, and YK2 is the ordinate of the second intersection of the kth arc image segment.
In some embodiments, if the first intersection point and the second intersection point of a certain arc image segment overlap, yk1=yk2, xk1=xk2, αk1=αk2, αk=0.
The specific roles of the above modules are specifically described in the foregoing image processing method, and are not described here.
The application also discloses a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above. A storage medium refers to a carrier that stores data. Such as floppy disk, optical disk, DVD, hard disk, flash Memory, U-disk, CF card, SD card, MMC card, SM card, memory Stick (Memory Stick), xD card, etc. Popular storage media are flash-based (Nand flash) memory such as usb, CF, SD, SDHC, MMC, SM, memory stick, xD, etc.
The application also discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods described above when the program is executed.
The method disclosed by the application has the following advantages:
1. in the process of converting the image to be exposed from the vector image to the two-dimensional lattice image under the polar coordinates, the middle does not need to be subjected to the process of converting all pixel points under the vector image to the rectangular coordinates, so that the image processing process is simplified, and the image processing precision is improved.
2. Only the coordinate positions of the first and the last two pixel points of each arc image segment are calculated, the coordinate position of the middle pixel point is not calculated, and the image processing efficiency and the image processing process are improved.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods, and apparatus should be considered part of the specification.
Thus, various embodiments of the present disclosure have been described in detail. In order to avoid obscuring the concepts of the present disclosure, some details known in the art are not described. How to implement the solutions disclosed herein will be fully apparent to those skilled in the art from the above description.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It will be understood by those skilled in the art that the foregoing embodiments may be modified and equivalents substituted for elements thereof without departing from the scope and spirit of the disclosure. In particular, the technical features mentioned in the respective embodiments may be combined in any manner as long as there is no structural conflict.

Claims (9)

1. An image processing method for laser imaging, comprising:
step 1: setting a coordinate origin O (0, 0) outside the region of the image to be exposed;
step 2: drawing a plurality of concentric circles with gradually increased different radiuses rK from inside to outside by taking O (0, 0) as a circle center and intersecting the boundary of an image to be exposed to obtain a plurality of arc image sections, wherein the head and the tail of each arc image section are a first intersection point and a second intersection point which are formed by intersecting;
step 3: a value obtained by reserving integer digits of a first included angle alpha K1 formed by a connecting line of a K-th arc image section in a plurality of arc image sections and the circle center and a horizontal reference line passing through the circle center is represented by alpha K1', a value obtained by reserving integer digits of a second included angle alpha K2 formed by a connecting line of a second intersection point and the circle center and a horizontal reference line passing through the circle center is represented by alpha K2', and an arc included angle alpha K corresponding to the K-th arc image section is obtained according to a formula alpha K= (alpha K2 '-alpha K1');
step 4: establishing a two-dimensional matrix with O (0, 0) as an origin, the radius of the circular arc as an ordinate and the angle component as an abscissa, taking the radius rK of the image section of the circular arc of the K section as an ordinate, taking alpha K1 'as the starting point of the abscissa and alpha K2' as the end point of the abscissa, horizontally filling total (alpha K+1) pixel points on the two-dimensional matrix to obtain the horizontal pixel section of the K section, and forming a two-dimensional matrix diagram by all the horizontal pixel sections;
wherein K is the number of concentric circles.
2. The image processing method according to claim 1, wherein αk1 and αk2 are obtained by measurement or calculation: αk1=arctg (YK 1/xK 1), αk2=arctg (YK 2/xK 2), where xK1 is the abscissa of the first intersection of the kth arc image segment, YK1 is the ordinate of the first intersection of the kth arc image segment, xK2 is the abscissa of the second intersection of the kth arc image segment, and YK2 is the ordinate of the second intersection of the kth arc image segment.
3. The image processing method according to claim 2, wherein if any one of concentric circles having a radius rK coincides with the first intersection point and the second intersection point at which the image to be exposed intersects, yk1=yk2, xk1=xk2, αk1=αk2, αk=0.
4. An image processing apparatus for laser imaging, comprising:
the concentric arc obtaining module is used for: setting a coordinate origin O (0, 0) outside the region of the image to be exposed; taking a coordinate origin O (0, 0) as a circle center, and drawing concentric circles with gradually increased different radiuses rK from inside to outside to intersect with the image to be exposed to obtain a plurality of arc image segments;
the arc included angle alpha K obtaining module is used for: according to the coordinate origins O (0, 0) and rK, obtaining coordinate values of two intersection points obtained by intersecting each concentric circle with the boundary of the image to be exposed, and according to the connection line of the two intersection points and the coordinate origins O (0, 0), obtaining an arc included angle alpha K corresponding to the arc image section;
an image processing module for: establishing a two-dimensional matrix with O (0, 0) as an origin, rK as an ordinate and an angle component as an abscissa, taking the radius rK of a K-th arc image segment as an ordinate, taking alpha K1 'as a starting point of the abscissa and alpha K2' as an end point of the abscissa, horizontally filling total (alpha K+1) pixel points on the two-dimensional matrix to obtain a K-th horizontal pixel segment, and forming a two-dimensional matrix diagram by all the horizontal pixel segments; wherein K is the number of concentric circles.
5. The image processing apparatus according to claim 4, wherein the circular arc included angle αk obtaining module further includes: the device comprises a first included angle alpha K1 rounding module, a second included angle alpha K2 rounding module and a calculating module;
the first included angle alpha K1 rounding module is used for reserving a whole digital value and expressing alpha K1' of a first included angle alpha K1 formed by a connecting line of a first intersection point and a circle center of any K-th arc image segment and a horizontal reference line passing through the circle center;
the second included angle alpha K2 rounding module is used for: reserving a whole digital value of a second included angle alpha K2 formed by a connecting line of a second intersection point of any K-th arc image segment to the circle center and a horizontal reference line passing through the circle center, and expressing the second included angle alpha K2 'by alpha K2'; the calculation module is used for calculating the arc included angle alpha K obtained by the (alpha K2 '-alpha K1').
6. The image processing apparatus according to claim 5, wherein the first included angle αk1 and the second included angle αk2 are obtained by measurement or calculated: αk1=arctg (YK 1/xK 1), αk2=arctg (YK 2/xK 2), where xK1 is the abscissa of the first intersection of the kth arc image segment, YK1 is the ordinate of the first intersection of the kth arc image segment, xK2 is the abscissa of the second intersection of the kth arc image segment, and YK2 is the ordinate of the second intersection of the kth arc image segment.
7. The image processing apparatus according to claim 6, wherein if the first intersection point and the second intersection point overlap, yk1=yk2, xk1=xk2, αk1=αk2, αk=0.
8. A storage medium having stored thereon a computer program, which when executed by a processor realizes the steps of the image processing method for laser imaging according to any one of claims 1 to 3.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the image processing method for laser imaging according to any of claims 1 to 3 when the program is executed.
CN202310007022.XA 2023-01-04 2023-01-04 Image processing method and device for laser imaging and related equipment Active CN115830181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310007022.XA CN115830181B (en) 2023-01-04 2023-01-04 Image processing method and device for laser imaging and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310007022.XA CN115830181B (en) 2023-01-04 2023-01-04 Image processing method and device for laser imaging and related equipment

Publications (2)

Publication Number Publication Date
CN115830181A CN115830181A (en) 2023-03-21
CN115830181B true CN115830181B (en) 2023-05-09

Family

ID=85520088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310007022.XA Active CN115830181B (en) 2023-01-04 2023-01-04 Image processing method and device for laser imaging and related equipment

Country Status (1)

Country Link
CN (1) CN115830181B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246195B (en) * 2013-05-08 2015-12-02 苏州苏大维格光电科技股份有限公司 Three-dimensional laser Method of printing and system
CN105222724B (en) * 2015-09-10 2018-09-18 北京天远三维科技股份有限公司 Multi-thread array laser 3 D scanning system and multi-thread array laser 3-D scanning method
CN113379651B (en) * 2021-08-11 2021-11-19 深圳市先地图像科技有限公司 Image processing method and system in laser imaging process and related equipment
CN114125335B (en) * 2022-01-26 2022-04-15 深圳市先地图像科技有限公司 Image processing method, storage medium and related equipment
CN114710628B (en) * 2022-04-21 2023-12-05 深圳市先地图像科技有限公司 Image exposure method, computer equipment and storage medium
CN115170413A (en) * 2022-06-27 2022-10-11 北京奕斯伟计算技术股份有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN115830181A (en) 2023-03-21

Similar Documents

Publication Publication Date Title
KR102151906B1 (en) Method and apparatus for generating and identifying identification code
CN106529635B (en) A kind of generation of coding pattern, recognition methods and device
CN104346597A (en) QR (quick response) code detection and correction extraction method and IP (intellectual property) core
CN103593826A (en) Image ring artifact correcting method
US9646221B2 (en) Image recognition apparatus and storage medium
Gonzalez-Diaz et al. 3D well-composed polyhedral complexes
EP3996283B1 (en) Coding pattern, coding and reading methods for same, calibration board, and calibration method
AU2014277854A1 (en) Emboldening of outline fonts
CN115830181B (en) Image processing method and device for laser imaging and related equipment
CN103927575B (en) By coding pattern to form the method and device of dot pattern
JP5067882B2 (en) Image processing apparatus, image processing method, and program
WO2019019681A1 (en) Method and apparatus for acquiring tilt value of identity card image, terminal and storage medium
CN106570547B (en) A kind of generation of coding pattern, recognition methods and device
CN110751732B (en) Method for converting 2D image into 3D image
CN109801223A (en) A kind of cloud denoising and empty method for repairing and mending
CN115294277B (en) Three-dimensional reconstruction method and device of object, electronic equipment and storage medium
CN115147511B (en) Edge component detailed diagram generation method, device, equipment and readable medium
US10140681B2 (en) Caching method of graphic processing unit
CN110282073B (en) Ship hydrodynamic prediction method and system based on ship body wet surface grid in waves
CN115239884A (en) Reconstruction method and device for medium-assembled three-dimensional model
CN103944584A (en) Method and device for decoding two-dimension codes
CN113627548A (en) Planar workpiece template matching method, device, medium and computer equipment
US20160104319A1 (en) Method and apparatus for modeling target object to represent smooth silhouette
CN111191759A (en) Two-dimensional code generation method and positioning and decoding method based on GPU
CN112419459B (en) Method, apparatus, computer device and storage medium for baking model AO mapping

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