Linewidth measurement method and apparatus, computing and processing device, computer program and computer readable medium
Abstract
A linewidth measurement method includes: obtaining a target image of the line, the line including a first line segment; performing region connecting on an edge image or binary image of the target image to obtain a region connected image, the region connected image including a target connected region corresponding to a pattern of the line, and a pixel value of each pixel in the target connected region being different from that of each pixel outside the target connected region; determining a first edge point and a second edge point of the first line segment based on the region connected image; and determining a width of the first line segment according to the first edge point and the second edge point, and determining the width of the line according to the width of the first line segment.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A linewidth measurement method, for measuring a width of a line, comprising: obtaining a target image of the line, wherein the line comprises a first line segment; performing region connecting on an edge image or binary image of the target image to obtain a region connected image, wherein the edge image is an image obtained by edge detection of the target image, the binary image is an image obtained by image binarization of the target image, and the region connected image comprises a target connected region corresponding to a pattern of the line, and a pixel value of each pixel in the target connected region is different from that of each pixel outside the target connected region; determining a first edge point and a second edge point of the first line segment based on the region connected image, wherein the first edge point is located on a first edge line of the first line segment, the second edge point is located on a second edge line of the second line segment, and the first edge li
- Claim 2Depends on #1
The linewidth measurement method according to claim 1, wherein performing region connecting on an edge image or binary image of the target image to obtain a region connected image comprises: performing expansion treatment and flood filling treatment sequentially on the edge image or the binary image to obtain an expanded image; performing corrosion treatment on the expanded image to obtain a corroded image, wherein the corroded image comprises a plurality of connected regions, a pixel value of each pixel in the plurality of connected regions is a first pixel value, and a pixel value of each pixel outside the plurality of connected regions is a second pixel value, the plurality of connected regions comprises isolated connected regions and the target connected region, the isolated connected regions are connected regions with an area less than a preset threshold, and the target connected regions are connected regions with an area greater than or equal to the preset threshold; and setting
- Claim 3Depends on #2
The linewidth measurement method according to claim 2, wherein a convolution kernel used in the expansion treatment is with a same size as a convolution kernel used in the corrosion treatment.
- Claim 4Depends on #1
The linewidth measurement method according to claim 1, wherein the first line segment further comprises a third branch line located at the other side of the intersection, and the second line segment further comprises a fourth branch located at the other side of the intersection; the sampling region further comprises a second sampling region, the second sampling region comprises a fifth boundary and a sixth boundary which are oppositely arranged in the column direction, and a seventh boundary and an eighth boundary which connect the fifth boundary with the sixth boundary; a target connected region in the second sampling region comprises a third sub-connected region corresponding to the third branch line and a fourth sub-connected region corresponding to the fourth branch line, two oppositely arranged sides of the third sub-connected region in the first direction and two oppositely arranged sides of the fourth sub-connected region in the second direction are connected with both the fifth
- Claim 5Depends on #1
The linewidth measurement method according to claim 1, wherein determining the width of the first line segment according to the first edge point and the second edge point comprises: performing straight line fitting on a plurality of first edge points to obtain the first edge line; and performing straight line fitting on a plurality of second edge points to obtain the second edge line; calculating a first distance from the first edge point to the second edge line and a second distance from the second edge point to the first edge line; and calculating an average of the first distance and the second distance to obtain a width of the first line segment; before determining the width of the line according to the width of the first line segment, the method further comprises: performing straight line fitting on a plurality of third edge points to obtain the third edge line and performing straight line fitting on a plurality of fourth edge points to obtain the fourth edge line; calculating a th
- Claim 6Depends on #4
The linewidth measurement method according to claim 4, wherein the target connected region further comprises a second connected region corresponding to the second line segment, and determining the sampling region in the region connected image comprises: determining overlapping coordinates of the first connected region and the second connected region based on the region connected image, wherein the overlapping coordinates are coordinates of an overlapping pixel located in an overlapping region of the first connected region and the second connected region; and determining the first sampling region and the second sampling region according to the overlapping coordinates and a ninth boundary and a tenth boundary of the region connected image which are oppositely arranged in the column direction, wherein the first boundary is determined by translation of the ninth boundary by a first preset distance in the column direction towards a direction of the overlapping pixel, the second boundary is
- Claim 7Depends on #6
The linewidth measurement method according to claim 6, wherein the region connected image further comprises a reference boundary connecting the ninth boundary and the tenth boundary, and an extension direction of the first line segment and/or the second line segment is different from the column direction, and determining the overlapping coordinates of the first connected region and the second connected region based on the region connected image comprises: performing progressive scanning on the pixels in the region connected image from the ninth boundary, wherein the progressive scanning comprises: if a distance between a reference pixel of a current scanning row and the reference boundary is greater than or equal to a distance between a reference pixel of a previous scanning row and the reference boundary, and greater than or equal to a distance between a reference pixel of a next scanning row and the reference boundary, determining coordinates of the reference pixel of the current sca
- Claim 8Depends on #6
The linewidth measurement method according to claim 6, wherein determining the overlapping coordinates of the first connected region and the second connected region based on the region connected image comprises: performing straight line detection on the pixels in the first connected region and the second connected region to obtain a plurality of detected line segments; clustering the plurality of detected line segments to obtain two clusters; and determining intersection coordinates of two line segments corresponding to cluster centers of the two clusters as the overlapping coordinates.
Technical Overview & Description
TECHNICAL FIELD The disclosure relates to the technical field of computers and more particular, to a linewidth measurement method and apparatus, a computing and processing device, a computer program and a computer readable medium. BACKGROUND In a line preparation process, it is necessary to perform linewidth measurement on each batch of products to determine whether the batch of products is qualified, or to adjust the preparation process according to linewidth measurement results. SUMMARY The present disclosure provides a linewidth measurement method, for measuring a width of a line, including: obtaining a target image of the line, wherein the line comprises a first line segment; performing region connecting on an edge image or binary image of the target image to obtain a region connected image, wherein the edge image is an image obtained by edge detection of the target image, the binary image is an image obtained by image binarization of the target image, and the region connected image comprises a target connected region corresponding to a pattern of the line, and a pixel value of each pixel in the target connected region is different from that of each pixel outside the target connected region; determining a first edge point and a second edge point of the first line segment based on the region connected image, wherein the first edge point is located on a first edge line of the first line segment, the second edge point is located on a second edge line of the second line segment, and the first edge line and the second edge line are oppositely arranged in a first direction; and determining a width of the first line segment according to the first edge point and the second edge point, and determining the width of the line according to the width of the first line segment. In an alternative implementation, performing region connecting on an edge image or binary image of the target image to obtain a region connected image includes: performing expansion treatment and flood
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (6)
| Patent | Title | Year | Citations |
|---|