Image splicing system and method based on DR imaging, program product, medium and equipment

By calculating the feature value of the DR imaging images of long workpieces and updating the adjustment coefficient, simple and accurate stitching of the images is achieved, solving the problems of complex and low efficiency of image stitching in the prior art, and improving the overall imaging and evaluation efficiency of the workpiece.

CN119809924APending Publication Date: 2025-04-11CHONGQING ZHENCE SCI & TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411678683.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

There is a lack of a simple and accurate image stitching method in the prior art, resulting in the DR imaging of long workpieces requiring multiple scans to be completed, and the operator can only perform independently for each image when judging the image, lacking an overall view.

Method used

By acquiring multiple continuous DR images of a single workpiece, selecting any column of the overlapping area, calculating its distance from the center of the overlapping area, selecting preset image features and calculating statistical image feature values, calculating adjustment coefficients based on these values, updating the feature values ​​of adjacent images and deleting the overlapping area, and achieving stitching of images.

Benefits of technology

Image stitching without obvious stitching traces is achieved, the overall image of the workpiece is completed, the efficiency of operators in judging images is accelerated, and the complexity of the system and algorithm is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119809924A_ABST
    Figure CN119809924A_ABST
Patent Text Reader

Abstract

The invention provides an image splicing system and method based on DR imaging, a program product, a medium and equipment. The image splicing method based on DR imaging comprises the following steps that S1, a plurality of continuous DR images of a single workpiece are obtained, and a fixed-size overlapping area exists between the connected DR images; s2, for any two adjacent DR images, selecting any column in the overlapping area, and calculating the distance between any column and the center of the overlapping area; s3, selecting a preset image feature, and calculating a statistical image feature value of any column; s4, for two adjacent DR images, calculating an adjustment coefficient based on the statistical image feature values of all columns in the overlapping region and the distance between any column and the center of the overlapping region; and S5, updating all image feature values of the latter image in the two adjacent DR images based on the adjustment coefficient, deleting the overlapping region of the latter image, and splicing the remaining part of the image behind the former image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of nondestructive testing, and in particular to an image stitching system and method, program product, medium and equipment based on radiation digital DR imaging. Background Art

[0002] Digital Radiography (DR) imaging is a non-destructive testing technology that can identify the internal structure (whether there are obvious defects) and even measure its parameters without disassembling the workpiece. DR imaging is similar to traditional X-ray filming, the difference is that X-ray filming irradiates a fixed area to make the film after the workpiece sensitive to light, and the image obtained is on the film. DR imaging is to make the rays pass through the object to be tested in a scanning manner from a single direction, reconstruct the detected information, and show the density distribution in the detected direction in the form of a two-dimensional image.

[0003] Due to the limitation of the size of the detector, for DR imaging of long workpieces, only a part of the workpiece can be obtained at one time. To complete the DR imaging of the entire workpiece, multiple scans are required to obtain multiple images. When the operator evaluates the image, he can only evaluate each image independently. When the feature of interest is on two images, the feature on each image can only be evaluated independently.

[0004] In response to the above problems, patent CN202010004119.1 proposed a camera-assisted x-ray image stitching method; CN201110394051.3 proposed a method for stitching x-ray images based on genetic algorithms; patent CN201910456211.9 proposed dual-energy rays to obtain enhanced images, obtain feature points, and obtain stitched images after a series of processing when the position information is known; patent 201510770120.4 proposed a method for image stitching based on the features of the positioning ruler; CN201610891042.8 proposed a stitching method for grayscale fusion of the stitching area and elimination of stitching seams, which greatly reduced the radiation dose and patient placement time. The stitching methods of the first four patents all need to be stitched based on feature points, and the implementation methods are relatively complicated. The stitching method of the latter patent is to stitch images obtained by different detectors under the same beam, which has high requirements on the system hardware. Therefore, a simple and accurate image stitching method is needed. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides an image stitching system and method, program product, medium and device based on radiation digital DR imaging, which mainly solves the problem of lack of a simple and accurate image stitching method in the prior art.

[0006] The objective of the present invention is achieved through the following solutions:

[0007] In the first aspect, according to an embodiment of the present invention, there is provided an image stitching method based on radiation digital DR imaging, comprising the following steps: S1, acquiring multiple continuous DR images of a single workpiece, wherein there is an overlapping area of ​​a fixed size between the connected DR images; S2, for any two adjacent DR images, selecting any column in the overlapping area, and calculating the distance of the any column from the center of the overlapping area; S3, selecting a preset image feature, and calculating the statistical image feature value of the any column; S4, for two adjacent DR images, calculating an adjustment coefficient based on the statistical image feature values ​​of all columns in the overlapping area and the distance of the any column from the center of the overlapping area; S5, updating all image feature values ​​of the latter image of the two adjacent DR images based on the adjustment coefficient, deleting the overlapping area of ​​the latter image, and stitching the remaining part of the image after the previous image.

[0008] According to an embodiment of the present invention, the distance between any one column and the center of the overlapping area is:

[0009] λ i =abs(X i -X middle ),

[0010] Among them, X i is the size of any column in the X-axis direction, X middle is the size of the center of the overlapping area in the X-axis direction.

[0011] According to an embodiment of the present invention, the preset image feature includes grayscale.

[0012] According to an embodiment of the present invention, the statistical image characteristic value is a grayscale average value, a maximum value or a minimum value.

[0013] According to an embodiment of the present invention, the adjustment coefficient is:

[0014]

[0015] Among them, Value j and Value i are the statistical image feature values ​​of any column in the previous image and the next image in the connected image, Former and Latter represent the previous image and the next image respectively, λ j and λ i Respectively represent the distance from any column in the previous image and the next image to the overlapping center.

[0016] In a second aspect, according to another embodiment of the present invention, there is provided an image stitching system based on radiation digital DR imaging, comprising: a radiation source, for emitting radiation to irradiate a workpiece; a detector, placed opposite to the radiation source, for capturing radiation emitted by the radiation source and passing through the workpiece to form an image; an image stitching module, connected to the detector, and stitching adjacent images using an image stitching method based on radiation digital DR imaging as described in the first aspect.

[0017] According to another embodiment of the present invention, the overlap size in adjacent images is based on the distance L from the workpiece to the radiation source. SOD , the distance between the radiation source and the detector L SDD , the distance L of the workpiece translation when adjacent images are collected MOVE Sure.

[0018] According to a third aspect, a computer program product is provided according to another embodiment of the present invention. The computer program product includes a computer program code. When the computer program code runs on an electronic device, the electronic device executes the method as described in the first aspect.

[0019] In a fourth aspect, according to another embodiment of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the steps of the method described in the first aspect.

[0020] In the fifth aspect, according to another embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the steps of the method described in the first aspect.

[0021] Compared with the prior art, the present invention has the following beneficial effects: by processing overlapping images, no obvious stitching marks are achieved; the overall imaging of the workpiece is achieved and the efficiency of the operator in judging the image is accelerated; in addition, compared with the complexity of the existing stitching algorithm or system, the structure and algorithm are simpler. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The embodiments of the present invention are further described below with reference to the accompanying drawings:

[0023] Figure 1 Schematic diagram of the process of an image stitching method based on radiometric digital DR imaging according to an embodiment of the present invention;

[0024] Figure 2 Schematic diagram of the composition of an image stitching system based on radiation digital DR imaging according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] Before proceeding to the following detailed description, it may be advantageous to set forth the definitions of certain words and phrases used throughout this patent document. The terms "coupling", "connection" and their derivatives refer to any direct or indirect communication or connection between two or more elements, regardless of whether those elements are in physical contact with each other. The terms "transmission", "reception" and "communication" and their derivatives cover direct and indirect communication. The terms "include" and "comprising" and their derivatives refer to including but not limited to. The term "or" is inclusive, meaning and / or. The phrase "associated with..." and its derivatives refer to including, including within, interconnecting, containing, contained within, connecting or connecting with, coupling or coupling with, communicating with, cooperating, interweaving, parallel, close to, binding or binding with, having, having attributes, having a relationship or having a relationship with, etc. The term "controller" refers to any device, system or part thereof that controls at least one operation. Such a controller can be implemented with hardware, or a combination of hardware and software and / or firmware. The functions associated with any particular controller can be centralized or distributed, whether local or remote. The phrase "at least one of", when used with a list of items, means that different combinations of one or more of the listed items may be used, and only one of the items in the list may be required. For example, "at least one of A, B, C" includes any of the following combinations: A, B, C, A and B, A and C, B and C, A and B and C.

[0026] Definitions for other specific words and phrases are provided throughout this patent document. Those of ordinary skill in the art should understand that in many, if not most instances, such definitions apply to prior and future uses of such defined words and phrases.

[0027] In this patent document, the application combination of modules and the division level of sub-modules are only used for illustration, and the application combination of modules and the division level of sub-modules may have different forms without departing from the scope of the present disclosure.

[0028] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below through specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0029] As described in the background technology, the prior art lacks a simple and accurate image stitching method. Figure 1As shown, according to an embodiment of the present invention, an image stitching method based on radiation digital DR imaging is provided, comprising the following steps: S1, obtaining multiple continuous DR images of a single workpiece, wherein there is an overlapping area of ​​fixed size between the connected DR images; S2, for any two adjacent DR images, selecting any column in the overlapping area, and calculating the distance of the any column from the center of the overlapping area; S3, selecting a preset image feature, and calculating the statistical image feature value of the any column; S4, for two adjacent DR images, calculating an adjustment coefficient based on the statistical image feature values ​​of all columns in the overlapping area and the distance of the any column from the center of the overlapping area; S5, updating all image feature values ​​of the latter image of the two adjacent DR images based on the adjustment coefficient, deleting the overlapping area of ​​the latter image, and stitching the remaining part of the image after the previous image. By processing the overlapping images, no obvious stitching marks are achieved; the overall imaging of the workpiece is achieved and the efficiency of the operator's image evaluation is accelerated; in addition, compared with the complexity of the existing stitching algorithm or system, the structure and algorithm are simpler.

[0030] After the direction of movement is selected, if the workpiece moves from right to left, the overlap area can be determined based on the movement distance. It can be concluded that the rightmost side of the first image in the adjacent images overlaps the leftmost side of the first image. In addition, the size of the overlap area depends on the settings of the entire system. Combining the distances of the various parts of the system and the movement distance of the workpiece, the size of the overlap area can be determined, which is fixed and can be calibrated through the calibration process.

[0031] The image attributes of the overlapping areas are different. In order to ensure the consistency of comparison, in an embodiment of the present invention, the distance between any column and the center of the overlapping area is:

[0032] λ i =abs(X i -X middle ),

[0033] Among them, X i is the size of any column in the X-axis direction, X middle is the size of the center of the overlapping area in the X-axis direction.

[0034] Furthermore, in order to compare the similarity of images, according to an embodiment of the present invention, the preset image feature includes grayscale. According to an embodiment of the present invention, the statistical image feature value is the grayscale average value, maximum value or minimum value.

[0035] In order to ensure that the image properties of the position on the workpiece in two adjacent images are the same, combined with the distance from each column of pixels to the overlapping center and the grayscale statistical value of each column of pixels, according to an embodiment of the present invention, the adjustment coefficient is:

[0036]

[0037] Among them, Value j and Value i are the statistical image feature values ​​of any column in the previous image and the next image in the connected image, Former and Latter represent the previous image and the next image respectively, λ j and λ i Respectively represent the distance from any column in the previous image and the next image to the overlapping center.

[0038] In one example, after obtaining the adjustment coefficient, the previous image ImageFormer is kept unchanged, the latter image ImageLatter is adjusted, the overlapping area of ​​the latter is deleted, and the remaining part is spliced ​​onto the previous image, thus forming:

[0039] ImagePinjie i =(ImageFormer i ,ImageLatter j ×δ),

[0040] Wherein, i represents any column in the previous image, and j represents any column in the non-overlapping area in the next image.

[0041] According to another embodiment of the present invention, Figure 2 As shown, an image stitching system 100 based on radiation digital DR imaging is provided, comprising: a radiation source 110, for emitting radiation to irradiate a workpiece; a detector 120, placed opposite to the radiation source, for capturing the radiation emitted by the radiation source and passing through the workpiece to form an image; an image stitching module, connected to the detector, and stitching adjacent images using an image stitching method based on radiation digital DR imaging as described above.

[0042] In order to ensure that adjacent images have overlapping areas, the smaller the workpiece moving distance is, the better, and the stitching effect is better at this time. However, from an engineering perspective, the larger the moving distance is, the fewer times the movement is required, and the higher the efficiency is. Therefore, the moving distance needs to be set according to specific circumstances. According to another embodiment of the present invention, the overlapping size in adjacent images is based on the distance L from the workpiece to the radiation source. SOD , the distance between the radiation source and the detector L SDD , the distance L of the workpiece translation when adjacent images are collected MOVE Sure.

[0043] According to another embodiment of the present invention, a computer program product is provided, which includes a computer program code. When the computer program code runs on an electronic device, the electronic device executes the image stitching method based on radiation digital DR imaging as described above.

[0044] In a fourth aspect, according to another embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. The computer program can be executed by a processor to implement the steps of the aforementioned image stitching method based on radiation digital DR imaging.

[0045] In the fifth aspect, according to another embodiment of the present invention, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the steps of an image stitching method based on radiation digital DR imaging as described above.

[0046] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0047] Computer readable storage medium can be a tangible device that holds and stores instructions used by an instruction execution device. Computer readable storage medium can include, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a protruding structure in a groove on which instructions are stored, and any suitable combination thereof.

[0048] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. An image stitching method based on radiometric digital DR imaging, characterized in that: The following steps are involved: S1, acquiring multiple continuous DR images of a single workpiece, wherein there is an overlapping area of ​​a fixed size between the continuous DR images; S2. For any two adjacent DR images, select any column in the overlapping area, and calculate the distance between the any column and the center of the overlapping area; S3, selecting a preset image feature, and calculating a statistical image feature value of any column; S4. For two adjacent DR images, an adjustment coefficient is calculated based on the statistical image feature values ​​of all columns in the overlapping area and the distance between any column and the center of the overlapping area; S5. Based on the adjustment coefficient, all image feature values ​​of the latter image of two adjacent DR images are updated, the overlapping area of ​​the latter image is deleted, and the remaining part of the image is spliced ​​after the former image.

2. The image stitching method based on radiometric digital DR imaging according to claim 1, characterized in that: The distance between any column and the center of the overlapping area is: λ i =abs(X i -X middle ), Among them, X i is the size of any column in the X-axis direction, X middle is the size of the center of the overlapping area in the X-axis direction.

3. The image stitching method based on radiation digital DR imaging according to claim 1, characterized in that: Preset image features include grayscale.

4. The image stitching method based on radiation digital DR imaging according to claim 3, characterized in that: The statistical image characteristic value is the grayscale average value, maximum value or minimum value.

5. The image stitching method based on radiometric digital DR imaging according to claim 1, characterized in that: The adjustment factor is: Among them, Value j and Value i are the statistical image feature values ​​of any column in the previous image and the next image in the connected image, Former and Latter represent the previous image and the next image respectively, λ j and λ i Respectively represent the distance from any column in the previous image and the next image to the overlapping center.

6. An image stitching system based on radiometric digital DR imaging, characterized in that: include: A radiation source, used for emitting radiation to irradiate a workpiece; A detector, placed opposite to the radiation source, captures the radiation emitted by the radiation source and passing through the workpiece to form an image; An image stitching module is connected to the detector and stitches adjacent images using an image stitching method based on radiation digital DR imaging as described in any one of claims 1 to 5.

7. The image stitching system based on radiometric digital DR imaging according to claim 6, characterized in that: The overlap size in adjacent images is based on the distance L from the workpiece to the radiation source. SOD , the distance between the radiation source and the detector L SDD , the distance L of the workpiece translation when adjacent images are collected MOVE Sure.

8. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is run on an electronic device, the electronic device is enabled to perform the method according to any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the steps of any method described in claims 1-5.

10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement the steps of the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Electrical equipment X ray digital image processing algorithm support system

    CN102496032A

  • X-ray image processing method and apparatus

    CN105405101A

  • A method and system for stitching digital X-ray images

    CN106651771B

  • A Dynamic DR Image Stitching Method and Terminal Based on Multi-Sensor Fusion

    CN110084753B

  • Methods and systems for camera-assisted X-ray imaging

    CN111466932B