Image stitching system, method, electronic device and medium
Through the coordinated work of the diagnostic bed computer module, dynamic flat panel detection module and high-frequency and high-voltage generator module of the image splicing system, the inaccurate positioning and increased workload caused by the lag of manual operation response of the image diagnosis equipment is solved, and high-precision panoramic image splicing is achieved.
Patent Information
- Application Number
- CN202310259070.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-16
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2043-03-16
AI Technical Summary
In medical imaging examination, the prior art has problems such as lagging in manual operation response of imaging diagnostic equipment, resulting in inaccurate positioning, a significant increase in workload, and low image stitching accuracy.
The image splicing system is adopted, including a diagnostic bed computer module, a dynamic flat panel detection module, a high-frequency and high-voltage generator module and an image acquisition and processing module. Several image acquisitions are carried out by receiving splicing instructions until the preset conditions are met, and the target panoramic image is generated to achieve accurate splicing of the image.
It improves image splicing accuracy, reduces labor costs, improves image splicing efficiency, and reduces operational complexity.
Smart Images

Figure CN116405617B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an image stitching system, method, electronic device and medium. Background Art
[0002] During medical imaging examinations, doctors typically need to enter the scanning room where the imaging equipment resides. They use the control panel to control the scanner's lift, in-and-out position, and activate the external laser light. They then visually observe the location of the laser spot on the patient to achieve initial positioning of the patient. Due to a certain degree of lag in the imaging equipment's response to manual commands, visual positioning accuracy is limited. Furthermore, doctors often rely on experience to estimate the scanning interval during initial positioning, which can lead to problems such as inaccurate positioning, insufficient scanning intervals, and excessive radiation exposure to the patient. Sometimes, doctors must travel back and forth between the operating room and the scanning room several times to complete a series of scans, which is laborious and time-consuming. Lack of hardware support significantly increases the workload of this approach. For example, with some outdated manual displacement microscopes or inconsistent settings of displacement directions and paths between different models of scanning devices, this approach can rely solely on manual sorting, significantly increasing the workload. Furthermore, the stitched images produced by this approach may contain subtle positional discrepancies, affecting image accuracy. Summary of the Invention
[0003] The embodiments of the present application provide an image stitching system, method, electronic device, and medium, which can achieve stitching of the entire image of step-by-step photography and improve the image stitching accuracy.
[0004] In a first aspect, an embodiment of the present application provides an image stitching system, the system comprising:
[0005] The diagnostic bed host computer module includes a hand brake switch, and the diagnostic bed host computer module is used to generate a hand brake switch signal according to the trigger state of the hand brake switch;
[0006] A dynamic flat panel detection module, responding to the handbrake switch signal to perform image acquisition;
[0007] A high-frequency and high-voltage generator module, comprising a high-frequency and high-voltage generator, and configured to adjust exposure parameters of the high-frequency and high-voltage generator;
[0008] An image acquisition and processing module is connected to the high-frequency and high-voltage generator module, the diagnostic bed host computer module and the dynamic flat-panel detection module, and is used to receive a stitching instruction, wherein the stitching instruction includes a target stitching step number and multiple exposure parameters; performing several image acquisitions according to the stitching instruction until a preset image acquisition condition is met, the image acquisition including: sending one of the exposure parameters to the high-frequency and high-voltage generator module, and driving the dynamic flat-panel detection module to perform image acquisition according to the stitching instruction and the handbrake switch signal to obtain a stitched image corresponding to the exposure parameter, wherein the handbrake switch signal is obtained by triggering the handbrake switch in the diagnostic bed host computer module; the image acquisition condition is that the current stitching step number reaches the target stitching step number, and the current stitching step number is obtained by counting the number of all image acquisitions that have been performed after each image acquisition; image stitching is performed on all the stitched images to generate a target panoramic image.
[0009] In some embodiments, a diagnostic bed lower computer module is further included, which is connected to the diagnostic bed upper computer module. The diagnostic bed lower computer module is used to drive the diagnostic bed sheet box to move to a preset splicing position, generate a move-in-place signal, and return the move-in-place signal to the diagnostic bed upper computer module.
[0010] In some embodiments, a step-by-step photography synchronization module is further included, which is connected to the high-frequency and high-voltage generator module, the image acquisition and processing module, the dynamic flat-panel detection module and the diagnostic bed host computer module. The step-by-step photography synchronization module is used to transmit the handbrake switch signal and receive the response signal returned by the dynamic flat-panel detection module and the status signal sent by the high-frequency and high-voltage generator module, wherein the status signal is used to represent the abnormal state of the high-frequency and high-voltage generator module.
[0011] In a second aspect, an embodiment of the present application provides an image stitching method of an image stitching system, the image stitching system comprising: a diagnostic bed host computer module including a hand brake switch;
[0012] Dynamic flat panel detection module;
[0013] High frequency and high voltage generator module;
[0014] The method comprises:
[0015] receiving a stitching instruction, wherein the stitching instruction includes a target stitching step number and a plurality of exposure parameters;
[0016] Perform several image acquisitions according to the stitching instruction until a preset image acquisition condition is met, wherein the image acquisition includes:
[0017] sending one of the exposure parameters to the high-frequency and high-voltage generator module, and driving the dynamic flat-panel detection module to acquire images according to the stitching instruction and the hand brake switch signal, to obtain a stitched image corresponding to the exposure parameter, wherein the hand brake switch signal is obtained by triggering the hand brake switch in the diagnostic bed host computer module;
[0018] The image acquisition condition is that the current number of stitching steps reaches the target number of stitching steps, and the current number of stitching steps is obtained by counting the number of times all image acquisitions have been performed after each image acquisition;
[0019] Perform image stitching on all the stitched images to generate a target panoramic image.
[0020] In some embodiments, the image stitching system further includes a diagnostic bed lower computer module and a step-by-step photography synchronization module; and before driving the dynamic flat panel detection module to acquire images according to the stitching instruction and the hand switch signal to obtain a stitched image corresponding to the exposure parameters, the system further includes:
[0021] Sending the splicing instruction to the diagnostic bed host computer module, so that the diagnostic bed host computer module controls the diagnostic bed slave computer module to drive the diagnostic bed slide box to move to a preset splicing position;
[0022] The hand brake switch signal sent by the step-by-step photography synchronization module is received, and the hand brake switch signal is sent to the dynamic flat panel detection module to switch the working mode of the dynamic flat panel detection module to the photography mode.
[0023] In some embodiments, the step of driving the dynamic flat panel detection module to acquire images according to the stitching instruction and the hand brake switch signal to obtain a stitched image corresponding to the exposure parameters includes:
[0024] Sending the splicing instruction to the diagnostic bed host computer module, so that the diagnostic bed host computer module sends the hand brake switch signal to the high-frequency and high-voltage generator module for pre-setting and generates a preparation signal;
[0025] receiving a preparation signal sent by the high-frequency and high-voltage generator module, wherein the preparation signal is used to indicate a current voltage preparation state and an exposure preparation state of the high-frequency and high-voltage generator module;
[0026] Sending the preparation signal to the step-by-step photography synchronization module to receive a response signal generated by the dynamic flat-panel detection module according to the preparation signal, so that the step-by-step photography synchronization module generates a step-by-step photography exposure signal according to the response signal, controls the high-frequency and high-voltage generator module to perform exposure according to the exposure parameters, and controls the dynamic flat-panel detection module to perform image acquisition under the exposure parameters to generate a stitched image;
[0027] The spliced image collected by the dynamic flat panel detection module is received according to the step-by-step photography exposure signal.
[0028] In some embodiments, the image stitching system includes an image receiving module connected to the dynamic flat panel detection module; receiving the stitched image captured by the dynamic flat panel detection module according to the step-by-step photography exposure signal includes:
[0029] receiving an exposure instruction signal sent by the high-frequency and high-voltage generator module, wherein the exposure instruction signal is obtained by the high-frequency and high-voltage generator module performing exposure according to the step-by-step photography exposure signal;
[0030] The image receiving module is turned on according to the exposure instruction signal, so that the dynamic flat panel detection module uploads the collected stitching image.
[0031] In some embodiments, the image stitching system includes a display; and before stitching all the stitched images to generate a target panoramic image, further includes:
[0032] performing parameter set processing on the stitched image to obtain a processed stitched image;
[0033] displaying the spliced image on the display;
[0034] The parameter set processing includes at least one of the following:
[0035] Multi-band local filtering processing;
[0036] Multi-band global filtering processing;
[0037] contrast processing;
[0038] Background suppression processing;
[0039] Denoising;
[0040] Detail enhancement processing.
[0041] In a third aspect, an embodiment of the present application further provides an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the image stitching method as described in the second aspect is implemented.
[0042] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the image stitching method as described in the second aspect.
[0043] The image stitching system provided by the embodiment of the present application has at least the following beneficial effects: the image stitching system includes a diagnostic bed host module, a dynamic flat-panel detection module, a high-frequency and high-voltage generator module, and an image acquisition and processing module, wherein the diagnostic bed host module, the high-frequency and high-voltage generator module, and the dynamic flat-panel detection module are respectively connected to the image acquisition and processing module, and the image acquisition and processing module first receives a stitching instruction, and performs several image acquisitions according to the stitching instruction until the preset image acquisition conditions are met, thereby enabling step-by-step photography, wherein image acquisition includes sending one of the exposure parameters to the high-frequency and high-voltage generator module, and driving the dynamic platform detection module to perform image acquisition according to the stitching instruction and the handbrake switch signal to obtain a stitched image under the current exposure parameter, thereby realizing image acquisition under different exposure parameters, and when the current stitching step number reaches the target stitching step number, all stitched images are stitched to generate a target panoramic image, thereby realizing image stitching, improving the accuracy of panoramic image stitching, improving image stitching efficiency, and reducing labor costs.
[0044] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the structures particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a schematic diagram of a framework of an image stitching system provided by one embodiment of the present invention;
[0046] Figure 2 is a flow chart of an image stitching method of an image stitching system provided by one embodiment of the present invention;
[0047] Figure 3 is a flow chart of an image stitching method of an image stitching system provided by another embodiment of the present invention;
[0048] Figure 4 yes Figure 2 Specific method flow chart of step S102 in FIG;
[0049] Figure 5 yes Figure 4 Specific method flow chart of step S304 in FIG;
[0050] Figure 6 is a flow chart of an image stitching method of an image stitching system provided by another embodiment of the present invention;
[0051] Figure 7 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0053] It should be noted that although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the flowcharts. The terms "first," "second," and the like in the specification, claims, and drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0054] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. 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.
[0055] It should be noted that in the description of the embodiments of the present invention, the terms "first", "second" and the like in the specification, claims and the above-mentioned drawings are used to distinguish similar objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features. "At least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can indicate the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. Although the functional modules are divided in the device schematic and the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flow chart.
[0056] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0057] The present invention provides an image stitching system, method, electronic device and medium. According to the technical solution of the present application, the image stitching system includes a diagnostic bed host module, a dynamic flat-panel detection module, a high-frequency and high-voltage generator module and an image acquisition and processing module, wherein the diagnostic bed host module, the high-frequency and high-voltage generator module and the dynamic flat-panel detection module are respectively connected to the image acquisition and processing module. The image acquisition and processing module first receives a stitching instruction and performs several image acquisitions according to the stitching instruction until the preset image acquisition conditions are met, thereby enabling step-by-step photography. The image acquisition includes sending one of the exposure parameters to the high-frequency and high-voltage generator module, and driving the dynamic platform detection module to perform image acquisition according to the stitching instruction and the handbrake switch signal to obtain a stitched image under the current exposure parameter, thereby realizing image acquisition under different exposure parameters, and when the current stitching step number reaches the target stitching step number, all stitched images are stitched to generate a target panoramic image, thereby realizing image stitching, improving the accuracy of panoramic image stitching, improving image stitching efficiency and reducing labor costs.
[0058] The embodiments of the present application are further described below with reference to the accompanying drawings.
[0059] refer to Figure 1 , Figure 1 1 is a schematic diagram of the framework of an image stitching system provided by an embodiment of the present invention.
[0060] In some embodiments, the diagnostic bed host computer module 100 includes a hand brake switch, and the diagnostic bed host computer module 100 is configured to generate a hand brake switch signal according to a triggering state of the hand brake switch;
[0061] The dynamic flat panel detection module 200 is responsive to the hand brake switch signal to perform image acquisition;
[0062] The high-frequency and high-voltage generator module 300 includes a high-frequency and high-voltage generator and is used to adjust the exposure parameters of the high-frequency and high-voltage generator;
[0063] The image acquisition and processing module 400 is connected to the high-frequency and high-voltage generator module 300, the diagnostic bed host computer module 100 and the dynamic flat-panel detection module 200, and is used to receive stitching instructions, wherein the stitching instructions include a target stitching step number and multiple exposure parameters; perform several image acquisitions according to the stitching instructions until the preset image acquisition conditions are met, and the image acquisition includes: sending one of the exposure parameters to the high-frequency and high-voltage generator module 300, and driving the dynamic flat-panel detection module 200 to perform image acquisition according to the stitching instructions and the hand brake switch signal to obtain a stitched image corresponding to the exposure parameters, wherein the hand brake switch signal is obtained by triggering the hand brake switch in the diagnostic bed host computer module 100; the image acquisition condition is that the current stitching step number reaches the target stitching step number, and the current stitching step number is obtained by counting the number of all image acquisitions that have been performed after each image acquisition; image stitching is performed on all stitched images to generate a target panoramic image, thereby achieving image stitching, improving the accuracy of panoramic image stitching, improving image stitching efficiency, and reducing labor costs.
[0064] In some embodiments, the image stitching system also includes a diagnostic bed lower computer module 500, which is connected to the diagnostic bed upper computer module 100. The diagnostic bed lower computer module 500 is used to drive the diagnostic bed film box to move to a preset stitching position, generate a move-in-place signal, and return the move-in-place signal to the diagnostic bed upper computer module 100, so as to perform the next movement, save manpower operation costs, and achieve precise positioning.
[0065] In some embodiments, the image stitching system also includes a step-by-step photography synchronization module 600, which is connected to the high-frequency and high-voltage generator module 300, the image acquisition and processing module 400, the dynamic flat-panel detection module 200 and the diagnostic bed host module 100. The step-by-step photography synchronization module is used to transmit the hand switch signal, and receive the response signal returned by the dynamic flat-panel detection module 200 and the status signal sent by the high-frequency and high-voltage generator module 300, thereby realizing real-time acquisition and transmission of images and avoiding image delays.
[0066] It should be noted that the status signal is used to indicate the abnormal state of the high-frequency and high-voltage generator module and is used to determine whether the current photographic state is abnormal.
[0067] like Figure 2 As shown, Figure 2 This is a flowchart of an image stitching method of an image stitching system provided by an embodiment of the present invention. The image stitching method is applied to, but not limited to, an image acquisition and processing module in an image stitching system. The image stitching method includes, but is not limited to, step S101 and step S104.
[0068] Step S101: receiving a splicing instruction;
[0069] It should be noted that the stitching instruction includes a target stitching step number and multiple exposure parameters.
[0070] It is understandable that the splicing instruction can be triggered automatically by an operator, an engineer, or the system, wherein the splicing instruction also includes parameters such as splicing direction, operating voltage, and operating mode, which are not specifically limited in this embodiment.
[0071] It is worth noting that the stitching direction can be from head to toe or from toe to head, and the target stitching steps can be set according to the needs of the user. For example, when collecting spine stitching images, the target stitching steps are three steps; when collecting lower limb stitching images, the target stitching steps can be two steps or three steps. This embodiment does not impose any specific restrictions.
[0072] Step S102: performing several image acquisitions according to the stitching instruction. The image acquisition includes: sending one exposure parameter to the high-frequency and high-voltage generator module, and driving the dynamic flat-panel detection module to acquire images according to the stitching instruction and the hand brake switch signal, to obtain a stitched image corresponding to the exposure parameter.
[0073] In some embodiments, image acquisition is performed several times according to the stitching instruction until a preset image acquisition condition is met, thereby obtaining multiple stitched images. In this embodiment, the number of image acquisitions is greater than or equal to two times.
[0074] Step S103: until a preset image acquisition condition is met, the image acquisition condition being that the current number of stitching steps reaches the target number of stitching steps;
[0075] It should be noted that the handbrake switch signal is obtained by triggering the handbrake switch in the diagnostic bed host computer module. The image acquisition condition is that the current stitching step number reaches the target stitching step number. The current stitching step number is obtained by counting the number of all image acquisitions that have been performed after each image acquisition.
[0076] In some embodiments, during the image acquisition process, it is necessary to send an exposure parameter in the stitching instruction to the high-frequency and high-voltage generator module, and drive the dynamic flat-panel detection module to perform image acquisition according to the stitching instruction and the handbrake switch signal, so as to obtain a stitched image corresponding to the exposure parameter, thereby realizing the acquisition of the stitched image.
[0077] It is understandable that the exposure parameters can be set according to the needs of the user. For example, under normal circumstances, the spine splicing program uses the automatic exposure mode of 75-90KV 200ma AEC, and the lower limb splicing uses the exposure parameters of 65-75KV 160ma 80ms.
[0078] It is worth noting that the handbrake switch signal includes a first switch signal and a second switch signal. The first switch signal and the second switch signal stop being sent after the handbrake switch is triggered again, or they also stop being sent during the movement of the diagnostic bed box. Among them, the first switch signal is a signal used to indicate the start of photography, and the second switch signal is a signal used to indicate that exposure is allowed.
[0079] It can be understood that the hand brake switch signal is output by the diagnostic bed host computer module using a relay contact signal after status judgment.
[0080] In some embodiments, if the current number of stitching steps does not reach the target number of stitching steps, step S102 is repeated until the current number of stitching steps reaches the target number of stitching steps, completing the entire image stitching process.
[0081] Step S104: stitching all stitched images to generate a target panoramic image.
[0082] In some embodiments, all the stitched images collected by the dynamic flat-panel detection module are stitched together to generate a target panoramic image, thereby achieving stitching of the entire image step-by-step photography images and improving image stitching accuracy.
[0083] Reference Figure 3 , Figure 3 is a flowchart of an image stitching method provided by another embodiment of the present invention, including but not limited to steps S201 to S202.
[0084] It should be noted that steps S201 to S202 occur before obtaining the stitched image corresponding to the exposure parameters.
[0085] Step S201: sending a splicing instruction to the diagnostic bed host computer module, so that the diagnostic bed host computer module controls the diagnostic bed slave computer module to drive the diagnostic bed slide box to move to a preset splicing position;
[0086] It should be noted that the diagnostic bed host computer module also includes bed control software.
[0087] In some embodiments, before driving the dynamic flat-panel detection module to acquire images, a splicing instruction is sent to the diagnostic bed host module, so that the diagnostic bed host module controls the sending of the splicing instruction to the diagnostic bed lower module, thereby controlling the diagnostic bed lower module to drive the diagnostic bed film box to move to a preset splicing position, and after the diagnostic bed film box moves into place, the diagnostic bed lower module feeds back a moving-in-place signal to the diagnostic bed host module, and the diagnostic bed host module displays the current splicing status through the bed control software. The user or operator can confirm the current splicing status through the bed control software, thereby realizing real-time display of the splicing status, performing positioning confirmation of the patient's position, and avoiding position errors.
[0088] Step S202: receiving a hand switch signal sent by the step-by-step photography synchronization module, and sending the hand switch signal to the dynamic flat panel detection module to switch the working mode of the dynamic flat panel detection module to the photography mode.
[0089] In some embodiments, after triggering the handbrake switch in the diagnostic bed host computer module, the diagnostic bed host computer module will send the handbrake switch signal to the step-by-step photography synchronization module, then receive the handbrake switch signal sent by the step-by-step photography synchronization module, and send the handbrake switch signal to the dynamic flat-panel detection module to switch the working mode of the dynamic flat-panel detection module to the photography mode, thereby facilitating the subsequent image acquisition.
[0090] It should be noted that the working modes of the dynamic flat panel detection module include but are not limited to continuous acquisition mode, photo mode, image playback mode, photography mode, etc., and this embodiment does not impose any specific restrictions.
[0091] Reference Figure 4 In some embodiments, step S102 may include but is not limited to steps S301 to S304:
[0092] Step S301: sending a splicing instruction to the diagnostic bed host computer module, so that the diagnostic bed host computer module sends a hand brake switch signal to the high-frequency high-voltage generator module for presetting and generates a preparation signal;
[0093] In some embodiments, a splicing instruction is sent to the diagnostic bed host computer module so that the diagnostic bed host computer module sends the received handbrake switch signal to the step-by-step photography synchronization module, and the step-by-step photography synchronization module then sends the handbrake switch signal to the high-frequency high-voltage generator module for pre-setting and generates a preparation signal, wherein the pre-setting operations of the high-frequency high-voltage generator module include but are not limited to operations such as anode start-up and filament heating of the high-frequency high-voltage generator, thereby speeding up the speed of image acquisition and improving the efficiency of image acquisition.
[0094] It should be noted that after the step-by-step photography synchronization module receives the hand switch signal, it needs to control the high level or low level to effectively drive the optocoupler to output the signal.
[0095] Step S302: receiving a preparation signal sent by the high-frequency and high-voltage generator module;
[0096] It should be noted that the preparation signal is used to represent the current voltage preparation state and exposure preparation state of the high-frequency and high-voltage generator module.
[0097] In some embodiments, a preparation signal sent by the high-frequency and high-voltage generator module is received, so that the exposure preparation state and voltage preparation state of the high-frequency and high-voltage generator module can be determined, which facilitates subsequent image acquisition.
[0098] Step S303: Sending a preparation signal to the step-by-step photography synchronization module to receive a response signal generated by the dynamic flat panel detection module based on the preparation signal, so that the step-by-step photography synchronization module generates a step-by-step photography exposure signal based on the response signal, controls the high-frequency high-voltage generator module to perform exposure according to the exposure parameters, and controls the dynamic flat panel detection module to perform image acquisition under the exposure parameters to generate a stitched image;
[0099] In some embodiments, a preparation signal is sent to a step-by-step photography synchronization module, so that the preparation signal can be sent to a dynamic flat-panel detection module through the step-by-step photography synchronization module, and a response signal sent by the dynamic flat-panel detection module according to the preparation signal is obtained, and the step-by-step photography synchronization module can generate a step-by-step photography exposure signal according to the response signal, so as to control the high-frequency high-voltage generator module to perform exposure according to the exposure parameters, and control the dynamic flat-panel detection module to perform image acquisition under the exposure parameters, so that images can be acquired under specific exposure parameters and stitching positions, thereby improving the accuracy of image acquisition.
[0100] It should be noted that after the step-by-step photography synchronization module receives the preparation signal, it will send a preparation signal to the dynamic flat-panel detection module. After receiving the preparation signal sent by the step-by-step photography synchronization module, the dynamic flat-panel detection module will first perform operations such as image clearing and cache cleaning, generate a response signal, and send the response signal to the step-by-step photography synchronization module, so that the step-by-step photography synchronization module generates a step-by-step photography exposure signal to control the high-frequency and high-voltage generator module for exposure, and then control the dynamic flat-panel detection module to perform image acquisition under the exposure parameters to generate a stitched image.
[0101] Step S304: receiving the stitched image captured by the dynamic flat panel detection module according to the step-by-step photography exposure signal.
[0102] In some embodiments, the stitched image captured by the dynamic flat panel detection module is received according to the step-by-step photography exposure signal, thereby facilitating subsequent stitching of the stitched image.
[0103] It should be noted that X-ray photons are generated by the high-speed collision of electrons within a high-voltage accelerator tube with the anode target. After penetrating the object being inspected, they undergo a fluorescence effect in the scintillator layer of the dynamic flat-panel detector module and are converted into visible light. The visible light photons are directed by the needle-shaped cesium iodide crystal to the photodiode of the thin-film transistor (TFT) and captured by the electrons therein, generating photoelectrons through the photoelectric effect. The photoelectrons are collected by a collection capacitor and converted into voltage signals by an external electronic circuit, forming a visual digital image. Due to the varying thickness and density of the object being inspected, X-rays undergo a photoelectric effect after passing through the object and are absorbed to varying degrees, forming a latent image. This latent image is ultimately displayed on the digital image as grayscale differences in various parts of the object being inspected. This requires the dynamic flat-panel detector module to perform operations such as image sequence sorting and weighted calibration on the stitched images acquired under the exposure parameters to produce the processed stitched image.
[0104] Reference Figure 5 In some embodiments, step S304 may include but is not limited to steps S401 to S402:
[0105] It should be noted that the image stitching system includes an image receiving module, which is connected to the dynamic flat panel detection module.
[0106] Step S401: receiving an exposure instruction signal sent by a high-frequency and high-voltage generator module;
[0107] It should be noted that the exposure command signal is obtained by the high-frequency and high-voltage generator module by exposing according to the step-by-step photography exposure signal in accordance with preset exposure parameters, wherein the step-by-step photography exposure signal is sent by the step-by-step photography synchronization module to the high-frequency and high-voltage generator module.
[0108] Step S402: The image receiving module is turned on according to the exposure instruction signal, so that the dynamic flat panel detection module uploads the acquired stitched image.
[0109] In steps S401 to S402 of some embodiments, during the process of receiving the stitched image, the exposure instruction signal sent by the high-frequency high-voltage generator module in response to the step-by-step photography exposure signal is first received, and then the image receiving module is turned on according to the exposure instruction signal to prepare for receiving the stitched image captured by the dynamic flat-panel detection module, thereby realizing real-time uploading of the stitched image.
[0110] Reference Figure 6 , Figure 6 4 is a flowchart of an image stitching method provided by another embodiment of the present invention, including but not limited to steps S501 to S502.
[0111] It should be noted that the image stitching system includes a display, and steps S501 to S502 occur before stitching all the stitching images.
[0112] Step S501: performing parameter set processing on the stitched image to obtain a processed stitched image;
[0113] Step S502: Display the stitched image on a display.
[0114] It should be noted that the parameter set processing includes at least one of the following: multi-band local filtering processing; multi-band global filtering processing; contrast processing; background suppression processing; denoising processing; and detail enhancement processing.
[0115] In steps S501 to S502 of some embodiments, after receiving the stitched image sent by the dynamic flat-panel detection module, parameter set processing is performed on the stitched image to improve the clarity of the image, and a processed stitched image is obtained. The stitched image is then displayed on a display and saved in the storage space of a disk to improve the clarity of the image and further improve the accuracy of image stitching.
[0116] It should be noted that, after the current number of splicing steps reaches the target number of splicing steps, this embodiment will also send a splicing end instruction to the diagnostic bed host computer module to end the entire splicing process.
[0117] In order to further illustrate the image stitching method of the above-mentioned image stitching system, a specific example is given below.
[0118] Example 1:
[0119] Example 1 is the specific process of the image stitching method of the image stitching system:
[0120] Step 1: The operator establishes a stitching inspection in the image acquisition and processing module. At this time, the image acquisition and processing module sends a stitching instruction (from head to toe or from toe to head, number of stitching steps, etc.) to the diagnostic bed host module. The diagnostic bed host module sends a stitching movement instruction to the diagnostic bed lower computer module. The diagnostic bed lower computer module controls the diagnostic bed cassette to move to the preset stitching starting position through the diagnostic bed cassette motor. After the diagnostic bed cassette moves into position, it feeds back a moving-in-place signal, and transmits the moving-in-place signal to the diagnostic bed host module through the diagnostic bed lower computer module. The diagnostic bed host module displays the stitching start status through the bed control software for the operator to confirm. At the same time, the image acquisition and processing module sends the first exposure parameter of the step-by-step photography to the high-frequency high-voltage generator, so that the high-frequency high-voltage generator is adjusted to the preset first exposure parameter.
[0121] It is worth noting that the stitching instructions in this example include the target stitching steps, the stitching direction, the first exposure parameter and the second exposure parameter. The target stitching steps are two, and the stitching direction can be stitching from head to toe or from toe to head, etc.
[0122] Step 2: The image acquisition and processing module allows the operator to use the dynamic images captured by the dynamic flat panel to perform step-by-step photography and confirm the patient's position before image stitching begins;
[0123] Step 3: The operator presses the hand switch in the diagnostic bed host module, and the diagnostic bed host module transmits the hand switch signal to the image step-by-step photography synchronization module, wherein the hand switch signal includes a first switch signal Hand I and a second switch signal Hand II. After receiving the first switch signal Hand I, the image step-by-step photography synchronization module transmits the first switch signal Hand I to the image acquisition and processing module in the form of an instruction. The image acquisition and processing module sends a spot mode switching instruction to the dynamic flat panel detection module, instructing the dynamic flat panel detection module to switch from the continuous acquisition mode to the photography mode.
[0124] It should be noted that Hand I means the start of photography, and Hand II means permission for exposure.
[0125] Step 4: The image step-by-step photography synchronization module processes the received handbrake switch signal and transmits it to the high-frequency high-voltage generator. After receiving the handbrake switch signal, the high-frequency high-voltage generator begins preparations for photography.
[0126] It should be noted that the preparation work before photography includes but is not limited to operations such as anode starting and filament heating.
[0127] Step 5: The high-frequency high-voltage generator transmits the current high-voltage preparation state and exposure preparation state to the image acquisition and processing module in the form of instructions. After receiving the preparation signal, the image acquisition and processing module transmits the preparation signal to the image step-by-step photography synchronization module in the form of instructions;
[0128] Step 6: After receiving the preparation signal, the image step-by-step photography synchronization module sends a flat-panel image acquisition request signal to the dynamic flat-panel detection module. After completing image clearing and a series of actions, the dynamic flat-panel detection module returns a response signal of the flat-panel image acquisition request to the image step-by-step photography synchronization module.
[0129] Step 7: After receiving the response signal, the image step-by-step photography synchronization module sends a step-by-step photography exposure signal to the high-frequency high-voltage generator;
[0130] Step 8: After receiving the step-by-step photography exposure signal, the high-frequency high-voltage generator performs exposure according to the preset first exposure parameters and transmits the step-by-step photography exposure signal to the image acquisition and processing module in the form of a command. The image acquisition and processing module opens the image receiving module and begins to prepare to receive the stitched image uploaded by the dynamic flat panel detection module.
[0131] Step 9: The dynamic flat panel detection module sorts, processes, and performs weighted calibration on the spliced images collected by the exposure, and then uploads them to the image acquisition and processing module via the Gigabit network;
[0132] Step 10: After receiving the uploaded stitched image, the image acquisition and processing module processes the stitched image with parameter sets, saves it in the disk storage space, and displays it on the monitor at the same time;
[0133] It should be noted that parameter set processing is to perform multi-band local filtering processing, multi-band global filtering processing, contrast processing, background suppression, denoising, high brightness denoising, high brightness enhancement and detail enhancement on the stitched image.
[0134] Step 11: The image acquisition and processing module sends the second exposure parameter of the second frame of step-by-step photography to the high-frequency high-voltage generator, and at the same time, the image acquisition and processing module transmits the second frame of step-by-step photography instruction to the diagnostic bed host computer module;
[0135] Step 12: The diagnostic bed host module disconnects the hand switch signal transmitted to the image step-by-step photography synchronization module, and at the same time sends a splicing movement instruction to the diagnostic bed lower computer module. The diagnostic bed lower computer module controls the diagnostic bed film box motion system through the motor to move the film box to the preset second splicing position;
[0136] Step 13: After the diagnostic bed cassette motion system detects that the cassette has moved to the preset second splicing position, it stops moving the cassette and returns a motion status instruction to the diagnostic bed host computer module;
[0137] Step 14: The diagnostic bed host computer module transmits the hand switch signal to the image step-by-step photography synchronization module;
[0138] Step 15: Repeat the image stitching method from step 4 to step 10 to capture the second step-stitched image;
[0139] Step 16: Determine whether to perform the third step image stitching according to the stitching step number in the stitching instruction sent by the image acquisition and processing module in the first step;
[0140] Step 17: When it is determined that the current stitching step number reaches the target stitching step number, the acquired stitching images are stitched to obtain the target panoramic image, and the image acquisition and processing module sends an end stitching instruction to the diagnostic bed host computer module to end the entire stitching process.
[0141] In addition, if Figure 7 As shown, an embodiment of the present application further provides an electronic device 1000 , which includes: a memory 1002 , a processor 1001 , and a computer program stored in the memory 1002 and executable on the processor 1001 .
[0142] The processor 1001 and the memory 1002 may be connected via a bus or other means.
[0143] The memory 1002 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory 1002 may include a high-speed random access memory and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 1002 may optionally include a memory 1002 remotely located relative to the processor 1001, and these remote memories may be connected to the processor 1001 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0144] The non-transitory software program and instructions required to implement the image stitching method of the image stitching system of the above embodiment are stored in the memory 1002 . When executed by the processor 1001 , the image stitching method of the image stitching system of the above embodiment is executed.
[0145] In addition, an embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. The computer-executable instructions are executed by a processor or controller, for example, by a processor in the above-mentioned device embodiment, so that the above-mentioned processor can execute the image stitching method of the image stitching system in the above-mentioned embodiment.
[0146] In addition, an embodiment of the present invention also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. The processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device executes the image stitching method of the image stitching system of any of the previous embodiments.
[0147] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0148] Those skilled in the art will appreciate that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be stored in a computer-readable medium in steps, and the computer-readable medium can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media is included in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data) and is volatile and non-volatile, removable, and non-removable. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage, or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0149] The above is a specific description of the preferred embodiments of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. An image stitching system, characterized in that: The system comprises: The diagnostic bed host computer module includes a hand brake switch, and the diagnostic bed host computer module is used to generate a hand brake switch signal according to the trigger state of the hand brake switch; A dynamic flat panel detection module, responding to the handbrake switch signal to perform image acquisition; A high-frequency and high-voltage generator module, comprising a high-frequency and high-voltage generator, and configured to adjust exposure parameters of the high-frequency and high-voltage generator; An image acquisition and processing module is connected to the high-frequency and high-voltage generator module, the diagnostic bed host computer module and the dynamic flat-panel detection module, and is used to receive a stitching instruction, wherein the stitching instruction includes a target stitching step number and multiple exposure parameters; performing several image acquisitions according to the stitching instruction until a preset image acquisition condition is met, wherein the image acquisition includes: sending one of the exposure parameters to the high-frequency and high-voltage generator module, and driving the dynamic flat-panel detection module to perform image acquisition according to the stitching instruction and the handbrake switch signal to obtain a stitched image corresponding to the exposure parameter, wherein the handbrake switch signal is obtained by triggering the handbrake switch in the diagnostic bed host computer module; the image acquisition condition is that the current stitching step number reaches the target stitching step number, and the current stitching step number is obtained by counting the number of all image acquisitions that have been performed after each image acquisition; image stitching is performed on all the stitched images to generate a target panoramic image; The step-by-step photography synchronization module is connected to the high-frequency and high-voltage generator module, the image acquisition and processing module, the dynamic flat-panel detection module, and the diagnostic bed host computer module. The step-by-step photography synchronization module is used to transmit the handbrake switch signal and receive the response signal returned by the dynamic flat-panel detection module and the status signal sent by the high-frequency and high-voltage generator module, wherein the status signal is used to indicate the abnormal state of the high-frequency and high-voltage generator module.
2. The image stitching system according to claim 1, wherein: It also includes a diagnostic bed lower computer module, which is connected to the diagnostic bed upper computer module. The diagnostic bed lower computer module is used to drive the diagnostic bed sheet box to move to a preset splicing position, generate a move-in-place signal, and return the move-in-place signal to the diagnostic bed upper computer module.
3. An image stitching method of an image stitching system, characterized in that: The image stitching system includes: a diagnostic bed host computer module, including a hand brake switch; Dynamic flat panel detection module; High frequency and high voltage generator module; Diagnostic bed lower computer module; Step-by-step photography synchronization module; The method comprises: receiving a stitching instruction, wherein the stitching instruction includes a target stitching step number and a plurality of exposure parameters; Perform several image acquisitions according to the stitching instruction until a preset image acquisition condition is met, wherein the image acquisition includes: sending one of the exposure parameters to the high-frequency and high-voltage generator module, and driving the dynamic flat-panel detection module to acquire images according to the stitching instruction and the hand brake switch signal, to obtain a stitched image corresponding to the exposure parameter, wherein the hand brake switch signal is obtained by triggering the hand brake switch in the diagnostic bed host computer module; The image acquisition condition is that the current number of stitching steps reaches the target number of stitching steps, and the current number of stitching steps is obtained by counting the number of times all image acquisitions have been performed after each image acquisition; Performing image stitching on all the stitched images to generate a target panoramic image; Wherein, before driving the dynamic flat panel detection module to acquire images according to the stitching instruction and the hand brake switch signal to obtain a stitched image corresponding to the exposure parameter, the method further includes: Sending the splicing instruction to the diagnostic bed host computer module, so that the diagnostic bed host computer module controls the diagnostic bed slave computer module to drive the diagnostic bed slide box to move to a preset splicing position; receiving a hand brake switch signal sent by the step-by-step photography synchronization module, and sending the hand brake switch signal to the dynamic flat panel detection module to switch the working mode of the dynamic flat panel detection module to a photography mode; The step of driving the dynamic flat panel detection module to acquire images according to the stitching instruction and the hand brake switch signal to obtain a stitched image corresponding to the exposure parameters includes: Sending the splicing instruction to the diagnostic bed host computer module, so that the diagnostic bed host computer module sends the hand brake switch signal to the high-frequency and high-voltage generator module for pre-setting and generates a preparation signal; receiving a preparation signal sent by the high-frequency and high-voltage generator module, wherein the preparation signal is used to indicate a current voltage preparation state and an exposure preparation state of the high-frequency and high-voltage generator module; Sending the preparation signal to the step-by-step photography synchronization module to receive a response signal generated by the dynamic flat-panel detection module according to the preparation signal, so that the step-by-step photography synchronization module generates a step-by-step photography exposure signal according to the response signal, controls the high-frequency and high-voltage generator module to perform exposure according to the exposure parameters, and controls the dynamic flat-panel detection module to perform image acquisition under the exposure parameters to generate a stitched image; The spliced image collected by the dynamic flat panel detection module is received according to the step-by-step photography exposure signal.
4. The image stitching method according to claim 3, wherein: The image stitching system includes an image receiving module connected to the dynamic flat panel detection module; the stitching image collected by the dynamic flat panel detection module is received according to the step-by-step photography exposure signal, including: receiving an exposure instruction signal sent by the high-frequency and high-voltage generator module, wherein the exposure instruction signal is obtained by the high-frequency and high-voltage generator module performing exposure according to the step-by-step photography exposure signal; The image receiving module is turned on according to the exposure instruction signal, so that the dynamic flat panel detection module uploads the collected stitching image.
5. The image stitching method according to claim 3, wherein: The image stitching system includes a display; and before stitching all the stitched images to generate a target panoramic image, it also includes: performing parameter set processing on the stitched image to obtain a processed stitched image; displaying the spliced image on the display; The parameter set processing includes at least one of the following: Multi-band local filtering processing; Multi-band global filtering processing; contrast processing; Background suppression processing; Denoising; Detail enhancement processing.
6. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the image stitching method according to any one of claims 3 to 5 when executing the computer program.
7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the image stitching method according to any one of claims 3 to 5.
Citation Information
Patent Citations
Amorphous silicon flat panel detector, image processing method thereof, and DR equipment
CN106131463A
Methods and systems for camera-aided X-ray imaging
CN111466932A