Image dark field correction method and system
By monitoring the detector temperature in real time and maintaining the dark field template in the storage queue, the problem of low dark field correction efficiency and unsatisfactory effects in the X-ray imaging system is solved, achieving more efficient image correction and better imaging quality.
Patent Information
- Application Number
- CN201811573215.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-21
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2038-12-21
AI Technical Summary
In the X-ray imaging system, the original image output by the flat-panel detector has many defects, resulting in poor imaging quality, and the existing dark field correction method is inefficient and unsatisfactory, especially when the temperature of the detector changes, it is difficult to real-time Collect a suitable dark field template.
By monitoring the real-time temperature of the detector, dark field templates at different temperatures are collected and a storage queue is maintained. The corresponding dark field templates are obtained from the storage queue for correction according to the temperature at the time of target image acquisition. The circular queue and replacement rules are used to manage the templates. , ensuring real-time and accuracy.
It improves the efficiency and image quality of dark field correction, ensures that the dark field template is consistent with the detector state during target image acquisition, improves user experience, and improves the overall performance of the imaging system.
Smart Images

Figure CN109671033B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing, and in particular to a method and system for dark field correction of an image. Background Art
[0002] In X-ray imaging systems, X-ray energy is converted into electrical signals through flat-panel detectors. Due to the complex structure of flat-panel detectors and limitations in the manufacturing process, the original images output by the flat-panel detectors will have many defects, which directly affect the quality of the final imaging. Therefore, it is necessary to correct the images output by the flat-panel detectors.
[0003] The image correction of flat-panel detectors is divided into dark field correction, bright field correction and bad pixel correction. Among them, the dark field template required for dark field correction will be different when the flat-panel detector is at different temperatures. The dark field template at the corresponding temperature should be used for correction during image acquisition. At present, the real-time dark field mechanism is usually used to achieve this. Specifically, it can be divided into two types: the first is to collect one or more dark field images as the dark field template for this image acquisition before the start of an image acquisition; the second is to collect one or more dark field images as the dark field template for the next image acquisition after the end of one. However, for the first type, collecting multiple dark field images before the start of an image acquisition will cause the acquisition time to be extended, affecting the user experience; for the second type, the acquisition conditions of the dark field template may not be completely consistent with the acquisition conditions of the next image acquisition, resulting in unsatisfactory dark field correction effect. Therefore, how to improve the efficiency of dark field correction and improve the quality of the corrected image so that it meets the actual needs has become one of the problems that need to be solved urgently. Summary of the invention
[0004] One of the embodiments of the present application provides an image dark field correction method. The image dark field correction method includes: monitoring the real-time temperature of the detector, collecting dark field templates of the detector at different real-time temperatures, and maintaining a storage queue based on the collected dark field templates; the storage queue is used to store the collected dark field templates; monitoring the temperature of the detector when collecting the target image; obtaining the corresponding dark field template from the storage queue based on the temperature of the detector at the time of collecting the target image; and correcting the target image based on the corresponding dark field template.
[0005] In some embodiments, maintaining a storage queue based on the collected dark field template includes: monitoring the real-time temperature of the detector; querying the storage status of the dark field template at the real-time temperature in the storage queue; and determining whether to update the storage queue based on the dark field template at the real-time temperature based on the storage status.
[0006] In some embodiments, maintaining a storage queue based on the collected dark field template further comprises: in response to the dark field template at the real-time temperature not existing in the storage queue, storing the dark field template at the real-time temperature in the storage queue.
[0007] In some embodiments, the storage queue is a circular queue; dark field templates at different temperatures are stored in different nodes of the circular queue, and the number of the nodes is N, where N is an integer greater than 0.
[0008] In some embodiments, maintaining a storage queue based on the collected dark field template also includes: when the real-time temperature exceeds the temperature range corresponding to the dark field template in the circular queue, replacing the existing dark field template in the circular queue with the dark field template under the real-time temperature.
[0009] In some embodiments, replacing an existing dark field template in a circular queue with a dark field template at the real-time temperature is based on a replacement rule, wherein the replacement rule includes: in response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template corresponding to the minimum value of the temperature range in the circular queue with the dark field template at the real-time temperature; or, in response to the real-time temperature being less than the minimum value of the temperature range, replacing the dark field template corresponding to the maximum value of the temperature range in the circular queue with the dark field template at the real-time temperature.
[0010] In some embodiments, replacing an existing dark field template in a circular queue with a dark field template at the real-time temperature is based on a replacement rule, wherein the replacement rule includes: in response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template at the (T-Tmax) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmax is the maximum value in the temperature range, and a is the temperature interval; or, in response to the real-time temperature being less than the maximum value of the temperature range, replacing the dark field template at the (N+1)-(Tmin-T) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmin is the minimum value in the temperature range, and a is the temperature interval.
[0011] In some embodiments, the image dark field correction method further includes: when the detector is acquiring the target image, terminating the acquisition of the dark field template.
[0012] In some embodiments, the image dark field correction method also includes: when the dark field template corresponding to the temperature of the detector at the time of capturing the target image is not found in the storage queue, the target image is corrected based on the dark field templates corresponding to other temperatures adjacent to the temperature in the storage queue.
[0013] In some embodiments, the image dark field correction method also includes: when the dark field template corresponding to the temperature of the detector at the time of capturing the target image is not found in the storage queue, the dark field template corresponding to the temperature is obtained by interpolation or fitting based on the dark field templates of other temperatures in the storage queue, and the target image is corrected using the dark field model obtained by interpolation or fitting.
[0014] In some embodiments, the image dark field correction method further includes: when no dark field template corresponding to the temperature of the detector at the time of capturing the target image is found in the storage queue, obtaining a historical dark field template of the temperature from other storage areas to correct the target image.
[0015] One of the embodiments of the present application provides an image dark field correction system. The image dark field correction system includes: a dark field template collection module, which is used to monitor the real-time temperature of the detector, collect dark field templates of the detector at different real-time temperatures, and maintain a storage queue based on the collected dark field templates; the storage queue is used to store the collected dark field templates; a temperature detection module during target image collection, which is used to monitor the temperature of the detector when collecting the target image; a dark field template acquisition module, which is used to obtain the corresponding dark field template from the storage queue based on the temperature of the detector at the time of collecting the target image; and a target image correction module, which is used to correct the target image based on the corresponding dark field template.
[0016] In some embodiments, the dark field template collection module is further used to: monitor the real-time temperature of the detector; query the storage status of the dark field template at the real-time temperature in the storage queue; and determine whether to update the storage queue based on the dark field template at the real-time temperature based on the storage status.
[0017] In some embodiments, the dark field template collection module is further used to: in response to the dark field template under the real-time temperature not existing in the storage queue, store the dark field template under the real-time temperature in the storage queue.
[0018] In some embodiments, the storage queue is a circular queue; dark field templates at different temperatures are stored in different nodes of the circular queue, and the number of the nodes is N, where N is an integer greater than 0.
[0019] In some embodiments, the dark field template collection module is further used to: when the real-time temperature exceeds the temperature range corresponding to the dark field template in the circular queue, replace the existing dark field template in the circular queue with the dark field template under the real-time temperature.
[0020] In some embodiments, the dark field template collection module is further used to replace the existing dark field template in the circular queue with the dark field template at the real-time temperature based on a replacement rule, wherein the replacement rule includes: in response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template corresponding to the minimum value of the temperature range in the circular queue with the dark field template at the real-time temperature; or in response to the real-time temperature being less than the minimum value of the temperature range, replacing the dark field template corresponding to the maximum value of the temperature range in the circular queue with the dark field template at the real-time temperature.
[0021] In some embodiments, the dark field template collection module is further used to replace the existing dark field template in the circular queue with the dark field template at the real-time temperature based on a replacement rule, wherein the replacement rule includes: in response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template at the (T-Tmax) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmax is the maximum value in the temperature range, and a is the temperature interval; or, in response to the real-time temperature being less than the maximum value of the temperature range, replacing the dark field template at the (N+1)-(Tmin-T) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmin is the minimum value in the temperature range, and a is the temperature interval.
[0022] In some embodiments, the image dark field correction system further includes: an acquisition switching module, which is used to stop acquiring the dark field template when the detector is acquiring the target image.
[0023] In some embodiments, the image correction module is further used to: when the dark field template corresponding to the temperature of the detector at the time of capturing the target image is not found in the storage queue, correct the target image based on the dark field templates corresponding to other temperatures adjacent to the temperature in the storage queue.
[0024] In some embodiments, the image correction module is also used for: when the dark field template corresponding to the temperature of the detector at the time of capturing the target image is not found in the storage queue, obtaining the dark field template corresponding to the temperature by interpolation or fitting based on the dark field templates of other temperatures in the storage queue, and correcting the target image using the dark field model obtained by interpolation or fitting.
[0025] In some embodiments, the image correction module is further used to: when no dark field template corresponding to the temperature of the detector at the time of capturing the target image is found in the storage queue, obtain a historical dark field template of the temperature from other storage areas to correct the target image.
[0026] One of the embodiments of the present application provides an image dark field correction device, including a processor, wherein the processor is used to execute an image dark field correction method.
[0027] One of the embodiments of the present application provides a computer-readable storage medium, wherein the storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes an image dark field correction method.
[0028] One of the embodiments of the present application provides a dark field template collection method. The dark field template collection method includes: monitoring the real-time temperature of the detector, collecting the dark field template of the detector at different real-time temperatures; maintaining a storage queue based on the collected dark field template; the storage queue is used to store the collected dark field template.
[0029] In some embodiments, the dark field template collection method includes: performing dark field template collection when the detector is turned on and the target image is not collected; or stopping dark field template collection when the detector is collecting the target image.
[0030] In some embodiments, maintaining the storage queue based on the collected dark field template includes: monitoring the real-time temperature of the detector; querying the storage status of the dark field template at the real-time temperature in the storage queue; and determining whether to update the storage queue based on the dark field template at the real-time temperature based on the storage status.
[0031] In some embodiments, maintaining the storage queue based on the acquired dark field template includes: in response to the dark field template at the real-time temperature not existing in the storage queue, storing the dark field template at the real-time temperature in the storage queue.
[0032] In some embodiments, the storage queue is a circular queue; dark field templates at different real-time temperatures are stored in different nodes of the circular queue, and the number of the nodes is N, where N is an integer greater than 0.
[0033] In some embodiments, maintaining the storage queue based on the collected dark field template includes: when the real-time temperature exceeds the temperature range corresponding to the dark field template in the circular queue, replacing the existing dark field template in the circular queue with the dark field template under the real-time temperature.
[0034] In some embodiments, replacing an existing dark field template in a circular queue with a dark field template at the real-time temperature is based on a replacement rule, wherein the replacement rule includes: in response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template corresponding to the minimum value of the temperature range in the circular queue with the dark field template at the real-time temperature; or, in response to the real-time temperature being less than the minimum value of the temperature range, replacing the dark field template corresponding to the maximum value of the temperature range in the circular queue with the dark field template at the real-time temperature.
[0035] In some embodiments, replacing an existing dark field template in a circular queue with a dark field template at the real-time temperature is based on a replacement rule, wherein the replacement rule includes: in response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template at the (T-Tmax) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmax is the maximum value in the temperature range, and a is the temperature interval; or, in response to the real-time temperature being less than the maximum value of the temperature range, replacing the dark field template at the (N+1)-(Tmin-T) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmin is the minimum value in the temperature range, and a is the temperature interval.
[0036] One of the embodiments of the present application provides a dark field template collection system. The dark field template collection system includes: a dark field template collection module, which is used to monitor the real-time temperature of the detector and collect the dark field templates of the detector at different real-time temperatures; a storage maintenance module, which is used to maintain a storage queue based on the collected dark field templates; the storage queue is used to store the collected dark field templates.
[0037] In some embodiments, the dark field template acquisition module is further used to perform dark field template acquisition when the detector is turned on and target image acquisition is not performed; or to stop dark field template acquisition when the detector is performing target image acquisition.
[0038] In some embodiments, the storage maintenance module is also used to: monitor the real-time temperature of the detector; query the storage status of the dark field template at the real-time temperature in the storage queue; and determine whether to update the storage queue based on the dark field template at the real-time temperature based on the storage status.
[0039] In some embodiments, the storage maintenance module is further used to: in response to the dark field template at the real-time temperature not existing in the storage queue, store the dark field template at the real-time temperature in the storage queue.
[0040] In some embodiments, the storage queue is a circular queue; dark field templates at different temperatures are stored in different nodes of the circular queue, and the number of the nodes is N, where N is an integer greater than 0.
[0041] In some embodiments, the storage maintenance module is further used to: when the real-time temperature exceeds the temperature range corresponding to the dark field template in the circular queue, replace the existing dark field template in the circular queue with the dark field template under the real-time temperature.
[0042] In some embodiments, the storage maintenance module is also used to replace the existing dark field template in the circular queue with the dark field template at the real-time temperature based on a replacement rule, wherein the replacement rule includes: in response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template corresponding to the minimum value of the temperature range in the circular queue with the dark field template at the real-time temperature; or in response to the real-time temperature being less than the minimum value of the temperature range, replacing the dark field template corresponding to the maximum value of the temperature range in the circular queue with the dark field template at the real-time temperature.
[0043] In some embodiments, the storage maintenance module is also used to replace the existing dark field template in the circular queue with the dark field template at the real-time temperature based on a replacement rule, wherein the replacement rule includes: in response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template at the (T-Tmax) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmax is the maximum value in the temperature range, and a is the temperature interval; or, in response to the real-time temperature being less than the maximum value of the temperature range, replacing the dark field template at the (N+1)-(Tmin-T) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmin is the minimum value in the temperature range, and a is the temperature interval.
[0044] One of the embodiments of the present application provides a dark field template collection device, including a processor, wherein the processor is used to execute a dark field template collection method.
[0045] One of the embodiments of the present application provides a computer-readable storage medium, wherein the storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes a dark field template collection method. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The present application will be further described in the form of exemplary embodiments, which will be described in detail by way of the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0047] Figure 1is a schematic diagram of an application scenario of an image dark field correction system according to some embodiments of the present application;
[0048] Figure 2 A block diagram of an exemplary computing device for a dedicated system for implementing the technical solution of the present application;
[0049] Figure 3 A block diagram of an exemplary mobile device 300 for implementing a dedicated system of the technical solution of the present application;
[0050] Figure 4 is a module diagram of an image dark field correction system according to some embodiments of the present application;
[0051] Figure 5 is a module diagram of a dark field template collection system according to some embodiments of the present application;
[0052] Figure 6 is an exemplary flow chart of an image dark field correction method according to some embodiments of the present application;
[0053] Figure 7 is an exemplary flow chart of a method for maintaining a storage queue according to some embodiments of the present application;
[0054] Figure 8 is an exemplary flow chart of a dark field template collection method according to some embodiments of the present application;
[0055] Fig. 9 It is a schematic diagram of the structure of a circular queue according to some embodiments of the present application. DETAILED DESCRIPTION
[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0057] It should be understood that the "system", "device", "unit" and / or "module" used herein are a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.
[0058] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "comprises" and "includes" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0059] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, the various steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.
[0060] It should be understood that the application scenarios of the system and method of the present application are merely some examples or embodiments of the present application. For ordinary technicians in this field, without paying any creative work, they can also apply the present application to other similar scenarios based on these drawings.
[0061] Figure 1 Schematic diagram of application scenarios of the image dark field correction system according to some embodiments of the present application. Figure 1 As shown, the image processing system 100 may include a scanning imaging device 110 , a network 120 , a terminal 130 , a processing device 140 and a storage device 150 .
[0062] The scanning imaging device 110 can scan an object in the detection area to obtain scanning data of the object. The scanned object can be a part of an organ or tissue of a human body, such as a head, a chest, a limb, etc. In some embodiments, the scanning imaging device 110 may include a detection area (not shown in the figure), a scanning bed (not shown in the figure), and a detector (not shown in the figure). In some embodiments, the detector can detect radiation events of photons (e.g., X-rays) emitted from the detection area and output scanning data. In some embodiments, the detector can include but is not limited to a DR (Digital Radiography) detector, a DSA (digital subtraction angiography) detector, a CT (Computed Tomography) detector, etc. The scanning bed can move the scanned object into the detection area and / or out of the detection area, and / or facilitate the positioning of the scanned object in the detection area.
[0063] The network 120 may include any suitable network that facilitates the image processing system 100 to exchange information and / or data. In some embodiments, one or more other components of the image processing system 100 (e.g., the scanning imaging device 110, the terminal 130, the processing device 140, the storage device 150, etc.) may exchange information and / or data with each other through the network 120. For example, the processing device 140 may obtain image data from the scanning imaging device 110 through the network 120. For another example, the processing device 140 may obtain a user instruction from the terminal 130 through the network 120. The network 120 may be and / or include a public network (e.g., the Internet), a private network (e.g., a local area network (LAN), a wide area network (WAN), etc.), a wired network (e.g., Ethernet), a wireless network (e.g., an 802.11 network, a Wi-Fi network, etc.), a cellular network (e.g., an LTE network), a frame relay network, a virtual private network (“VPN”), a satellite network, a telephone network, a router, a hub, a switch, a server computer, and / or a combination of one or more thereof. For example, the network 120 may include a cable network, a wired network, an optical fiber network, a telecommunication network, a local area network, a wireless local area network (WLAN), a metropolitan area network (MAN), a public switched telephone network (PSTN), a Bluetooth TM Network, ZigBee TM A combination of one or more of a wireless network, a near field communication network (NFC), etc. In some embodiments, the network 120 may include one or more network access points. For example, the network 120 may include a wired and / or wireless network access point, such as a base station and / or a network switching point, through which one or more components of the system 100 may access the network 120 for data and / or information exchange.
[0064] In some embodiments, the user can operate the image processing system 100 through the terminal 130. The terminal 130 may include a combination of one or more of a mobile device 131, a tablet computer 132, a laptop computer 133, etc. In some embodiments, the mobile device 131 may include a combination of one or more of a smart home device, a wearable device, a mobile terminal, a virtual reality device, an augmented reality device, etc. In some embodiments, the smart home device may include a combination of one or more of a smart lighting device, a smart appliance control device, a smart monitoring device, a smart TV, a smart camera, an intercom, etc. In some embodiments, the wearable device may include a combination of one or more of a bracelet, shoes and socks, glasses, a helmet, a watch, clothing, a backpack, a smart accessory, etc. In some embodiments, the mobile terminal may include a combination of one or more of a mobile phone, a personal digital assistant (PDA), a gaming device, a navigation device, a point of sale (POS) device, a laptop computer, a tablet computer, a desktop computer, etc. In some embodiments, the virtual reality device and / or the augmented reality device may include a combination of one or more of a virtual reality helmet, virtual reality glasses, virtual reality goggles, an augmented reality helmet, augmented reality glasses, augmented reality goggles, etc. For example, the virtual reality device and / or the augmented reality device may include Google Glass TM 、Oculus Rift TM 、Hololens TM 、Gear VR TM Etc. In some embodiments, the terminal 130 may be a part of the processing device 140 .
[0065] The processing device 140 can process the data and / or information obtained from the scanning imaging device 110, the terminal 130 and / or the storage device 150, and process the data and / or information or control other devices in the system 100 based on the data, information and / or processing results. In some embodiments, the processing device 140 can control the scanning imaging device 110 to scan or image the scanned object. For example, the processing device 140 can control the radiation dose, exposure timing, imaging angle, etc. emitted by the imaging device 110; for another example, the processing device 140 can control the detector in the imaging device 110 to collect the dark field template after the imaging device 110 is started and the scanned object is not scanned or imaged. In some embodiments, the processing device 140 can process the scanned data / image data of the scanned object and evaluate the condition of the corresponding organ or tissue of the subject to be tested. In some embodiments, the processing device 140 can correct the image data output by the detector. For example, the processing device 140 can use the dark field template to perform dark field correction on the image data output by the detector. In some embodiments, the processing device 140 may also receive dark field templates of the detector at different temperatures, and control the storage and maintenance of these dark field templates in the storage device 150. For example, the processing device 140 may follow the temperature change of the detector, collect dark field templates at different temperatures in real time and store them in the storage device 150, so as to provide real-time dark field templates for dark field correction of one or more scanned object imaging that is temporally adjacent to the dark field template collection, thereby improving the accuracy of dark field correction. In some embodiments, the processing device 140 may be a server or a server group. The server group may be centralized or distributed. In some embodiments, the processing device 140 may be local or remote. For example, the processing device 140 may access information and / or data stored in the scanning imaging device 110, the terminal 130 and / or the storage device 150 through the network 120. For example, the processing device 140 may be directly connected to the scanning imaging device 110, the terminal 130 and / or the storage device 150 to access the information and / or data stored therein. In some embodiments, the processing device 140 may be executed on a cloud platform. For example, the cloud platform may include a combination of one or more of a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an interconnected cloud, a multi-cloud, etc. In some embodiments, the processing device 140 may be a computing device 200 having one or more components (such as Figure 2 as described) is executed.
[0066] The storage device 150 may store data, instructions, and / or other information. In some embodiments, the storage device 150 may store data obtained from the scanning imaging device 110, the terminal 130, and / or the processing device 140 via the network 120. In some embodiments, the storage device 150 may store dark field correction templates acquired historically or in real time. In some embodiments, the storage device 150 may store data and / or instructions executed or used by the processing device 140 to perform the exemplary methods described in the present application. In some embodiments, the storage device 150 may include a combination of one or more of a mass storage, a removable storage, a volatile read-write memory, a read-only memory (ROM), and the like. Exemplary mass storage may include a magnetic disk, an optical disk, a solid-state drive, and the like. Exemplary removable storage may include a flash drive, a floppy disk, an optical disk, a memory card, a zipper disk, a magnetic tape, and the like. Exemplary volatile read-write memory may include a random access memory (RAM). Exemplary random access memory RAM may include dynamic random access memory (DRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), static random access memory (SRAM), thyristor random access memory (T-RAM) and zero capacitance random access memory (Z-RAM), etc. Exemplary read-only memory (ROM) may include mask read-only memory (MROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) and digital versatile disc, etc. In some embodiments, the storage device 150 may be executed on a cloud platform. For example, the cloud platform may include a combination of one or more of private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, interconnected cloud, multiple clouds, etc.
[0067] In some embodiments, the storage device 150 may be connected to the network 120 to communicate with one or more other components in the system 100 (e.g., the processing device 140, the terminal 130, etc.). One or more components in the image processing system 100 may access data or instructions stored in the storage device 150 through the network 120. In some embodiments, the storage device 150 may be directly connected or communicate with one or more other components in the system 100 (e.g., the processing device 140, the terminal 130, etc.). In some embodiments, the storage device 150 may be part of the processing device 140.
[0068] Figure 2 FIG. 1 is a block diagram of an exemplary computing device of a dedicated system for implementing the technical solution of the present application. Figure 2 As described, the computing device 200 may include a processor 210 , a memory 220 , an input / output interface 230 , and a communication port 240 .
[0069] The processor 210 can execute computing instructions (program code) and perform the functions of the on-demand service system 100 described in this application. The computing instructions may include programs, objects, components, data structures, processes, modules and functions (the functions refer to specific functions described in this application). For example, the processor 210 can process image data obtained from any component of the image processing system 100. In some embodiments, the processor 210 may include a microcontroller, a microprocessor, a reduced instruction set computer (RISC), an application-specific integrated circuit (ASIC), an application-specific instruction set processor (ASIP), a central processing unit (CPU), a graphics processing unit (GPU), a physical processing unit (PPU), a microcontroller unit, a digital signal processor (DSP), a field programmable gate array (FPGA), an advanced RISC machine (ARM), a programmable logic device, and any circuits and processors capable of performing one or more functions, etc., or any combination thereof. For illustration only, Figure 2 The computing device 200 in the embodiment only describes one processor, but it should be noted that the computing device 200 in the present application may also include multiple processors.
[0070] The memory 220 may store data / information obtained from any other component of the image processing system 100. In some embodiments, the memory 220 may include a mass storage, a removable storage, a volatile read and write storage, and a read-only memory (ROM), etc., or any combination thereof. Exemplary mass storage may include a magnetic disk, an optical disk, and a solid-state drive, etc. The removable storage may include a flash drive, a floppy disk, an optical disk, a memory card, a compact disk, and a magnetic tape, etc. The volatile read and write storage may include a random access memory (RAM). The RAM may include a dynamic RAM (DRAM), a double rate synchronous dynamic RAM (DDR SDRAM), a static RAM (SRAM), a thyristor RAM (T-RAM), and a zero capacitance (Z-RAM), etc. The ROM may include a mask ROM (MROM), a programmable ROM (PROM), an erasable programmable ROM (PEROM), an electrically erasable programmable ROM (EEPROM), a compact disk ROM (CD-ROM), and a digital versatile disk ROM, etc.
[0071] The input / output interface 230 may be used to input or output signals, data, or information. In some embodiments, the input / output interface 230 may allow a user to communicate with the image processing system 100. In some embodiments, the input / output interface 230 may include an input device and an output device. Exemplary input devices may include one or more of a keyboard, a mouse, a touch screen, and a microphone, etc. in any combination. Exemplary output devices may include a display device, a speaker, a printer, a projector, etc., or any combination thereof. Exemplary display devices may include one or more of a liquid crystal display (LCD), a display based on a light emitting diode (LED), a flat panel display, a curved display, a television device, a cathode ray tube (CRT), etc. in any combination.
[0072] The communication port 240 can be connected to a network for data communication. The connection can be a wired connection, a wireless connection, or a combination of the two. The wired connection can include a cable, an optical cable, or a telephone line, etc., or any combination thereof. The wireless connection can include one or more of Bluetooth, Wi-Fi, WiMax, WLAN, ZigBee, a mobile network (e.g., 3G, 4G, or 5G, etc.), etc. In some embodiments, the communication port 240 can be a standardized port, such as RS232, RS485, etc. In some embodiments, the communication port 240 can be a specially designed port. For example, the communication port 240 can be designed according to the digital imaging and medical communication protocol (DICOM).
[0073] Figure 3 FIG. 3 is a block diagram of an exemplary mobile device 300 for implementing a dedicated system of the technical solution of the present application. Figure 3 As shown, the mobile device 300 may include a communication unit 310, a display unit 320, a graphics processor (GPU) 330, a central processing unit (CPU) 340, an input / output unit 350, a memory 360, a storage unit 370, etc. In some embodiments, an operating system 361 (e.g., iOS, Android, Windows Phone, etc.) and an application 362 may be loaded from the storage unit 370 into the memory 360 so as to be executed by the CPU 340. The application 362 may include a browser or an application for receiving imaging, graphics processing, or other related information from the image processing system 100.
[0074] Figure 4 4 is a block diagram of an image dark field correction system 400 according to some embodiments of the present application. Figure 4 As shown, the image dark field correction system 400 may include a dark field template collection module 410 , a target image acquisition temperature detection module 420 , a dark field template acquisition module 430 , a target image correction module 440 and an acquisition switching module 450 .
[0075] The dark field template collection module 410 can be used to monitor the real-time temperature of the detector, collect the dark field templates of the detector at different real-time temperatures, and maintain a storage queue based on the collected dark field templates; the storage queue is used to store the collected dark field templates. In some embodiments, the dark field template collection module 410 can maintain the storage queue by storing the dark field templates at the real-time temperature in the storage queue. In some embodiments, the dark field template collection module 410 can replace the existing dark field template in the storage queue with the dark field template at the real-time temperature to maintain the storage queue.
[0076] The target image acquisition temperature detection module 420 may be used to monitor the temperature of the detector when acquiring the target image.
[0077] The dark field template acquisition module 430 may be configured to acquire a corresponding dark field template from a storage queue based on the temperature of the detector at the time of acquiring the target image.
[0078] The target image correction module 440 can be used to correct the target image based on the corresponding dark field template. In some embodiments, the target image correction module 440 can correct the target image based on the dark field templates corresponding to other temperatures in the storage queue that are adjacent to the temperature at the time of capturing the target image. The target image correction module 440 can correct the target image based on historical dark field templates in other storage areas. The target image correction module 440 can obtain the dark field template corresponding to the temperature through interpolation or fitting based on the dark field templates of other temperatures in the storage queue, and use the dark field model obtained by interpolation or fitting to correct the target image.
[0079] The acquisition switching module 450 can be used to switch between dark field template acquisition and target image acquisition. In some embodiments, the acquisition switching module 450 can stop acquiring the dark field template when the detector is acquiring the target image. The acquisition switching module 450 can acquire the dark field template when the detector is not acquiring the target image.
[0080] Figure 5 is a module diagram of a dark field template collection system 500 according to some embodiments of the present application. Figure 5 As shown, the dark field template collection system 500 may include a dark field template acquisition module 510 and a storage and maintenance module 520 .
[0081] The dark field template acquisition module 510 can be used to monitor the real-time temperature of the detector and acquire the dark field template of the detector at different real-time temperatures. In some embodiments, the dark field template acquisition module 510 is used to acquire the dark field template when the detector is turned on and the target image is not acquired; or to stop acquiring the dark field template when the detector is acquiring the target image.
[0082] The storage maintenance module 520 may be used to maintain a storage queue based on the collected dark field template; the storage queue is used to store the collected dark field template. In some embodiments, the storage maintenance module 520 may maintain the storage queue by storing the dark field template at the real-time temperature in the storage queue. In some embodiments, the storage maintenance module 520 may maintain the storage queue by replacing the existing dark field template in the storage queue with the dark field template at the real-time temperature.
[0083] It should be understood that Figure 4 and Figure 5 The system and its modules shown can be implemented in various ways. For example, in some embodiments, the system and its modules can be implemented by hardware, software or a combination of software and hardware. Among them, the hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or a dedicated design hardware. Those skilled in the art will understand that the above-mentioned method and system can be implemented using computer executable instructions and / or included in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The system and its modules of the present application can not only be implemented by hardware circuits such as ultra-large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., but can also be implemented by software such as executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software (for example, firmware).
[0084] It should be noted that the above description of the candidate item display and determination system and its modules is only for convenience of description and does not limit the present application to the scope of the embodiments. It is understandable that, after understanding the principle of the system, those skilled in the art may arbitrarily combine the modules or form a subsystem to connect with other modules without deviating from the principle. For example, in some embodiments, Figure 4 The dark field template collection module 410, the temperature detection module 420 during image acquisition, the dark field template acquisition module 430, the image correction module 440 and the acquisition switching module 450 disclosed in the system can be different modules in a system, or a module can realize the functions of two or more of the above modules. For example, the dark field template collection module 410 and the acquisition switching module 450 can be two modules, or a module can have the functions of dark field template collection and acquisition switching at the same time. For example, each module can share a storage module, or each module can have its own storage module. Such variations are all within the protection scope of the present application.
[0085] Figure 6 FIG. 1 is an exemplary flow chart of an image dark field correction method according to some embodiments of the present application. Figure 6 As shown, the image dark field correction method 600 may include:
[0086] Step 610 , monitor the real-time temperature of the detector, collect dark field templates of the detector at different real-time temperatures, and maintain a storage queue based on the collected dark field templates. Specifically, step 610 may be performed by the dark field template collection module 410 .
[0087] The dark field template refers to an image collected when there is no photon (e.g., X-ray) irradiating the detector, also known as a dark field image. The target image refers to an image collected when photons (e.g., X-rays) irradiate the detector. For example, the photons emitted by the ray source are attenuated by the scanned object, and the remaining part of the photons are received by the detector, and then an image that can reflect the internal structure or tissue morphology of the scanned object is collected. In actual situations, in addition to the information reflecting the internal structure or tissue morphology of the scanned object, the target image is also superimposed with a dark field image, which interferes with the accurate expression of the internal structure or tissue morphology information of the scanned object. Therefore, it is necessary to correct the target image based on the dark field template. After the detector is powered on, the temperature will change in real time, and there will be differences in the dark field images of the detector at different temperatures. In order to ensure the accuracy of the dark field correction, it is necessary to collect dark field images (i.e., dark field templates) at different temperatures to correct the target image at the corresponding temperature. In some embodiments, the target image can be a medical image, i.e., a medical image of the object to be examined obtained by the detector, or other non-medical images. In some embodiments, the medical image may be acquired by a detector of an X-ray imaging device, such as a DR detector, a DSA detector, etc., or may be acquired by a detector of a CT device.
[0088] In some embodiments, the real-time temperature of the detector can be monitored, and dark field images at each monitored real-time temperature can be collected to obtain dark field templates at different real-time temperatures. In some embodiments, the real-time temperature of the detector can be monitored based on the temperature detection device set inside the detector, so as to know the real-time working temperature of the detector. In some alternative embodiments, a temperature detection device can also be installed on the detector to monitor the real-time temperature of the detector. The temperature detection device can be one or more temperature sensors, temperature measuring instruments, etc. In some embodiments, the temperature output by the temperature detection device built into or installed separately in the detector changes according to a certain temperature interval. Assume that the temperature interval a is the minimum temperature interval determined by the detection accuracy of the temperature detection device built into or installed separately in the detector (for example, 0.5°C, 1°C or 2°C, etc.). Then, the change according to a certain temperature interval can be understood as that the two adjacent temperature values output by the temperature detection device differ by the minimum temperature interval or by a multiple of the minimum temperature interval.
[0089] In some embodiments, the dark field templates collected at different temperatures can be stored in a storage queue, and the storage queue is maintained based on the collected dark field templates. In some embodiments, the storage queue can include but is not limited to: a circular queue, a chain queue, or a double-ended queue. For more details on maintaining the storage queue based on the collected dark field template, see Figure 7 and its related description.
[0090] Step 620, monitoring the temperature of the detector when acquiring the target image. Specifically, step 620 can be performed by the temperature detection module 420 when acquiring the target image.
[0091] The temperature of the detector when acquiring the target image refers to the temperature of the detector when acquiring the target image under the condition of photon (e.g., X-ray) radiation. In some embodiments, the temperature of the detector when acquiring the target image can be monitored based on a temperature detection device provided inside the detector, so as to know the working temperature of the detector when acquiring the target image. In some embodiments, it can also be based on a temperature detection device installed on the detector. For more details on acquiring the target image and monitoring the temperature of the detector, please refer to the relevant description of step 610.
[0092] Step 630 , based on the temperature of the detector at the time of capturing the target image, obtain the corresponding dark field template from the storage queue. Specifically, step 630 may be performed by the dark field template acquisition module 430 .
[0093] In some embodiments, the dark field template corresponding to the temperature of the detector at the time of capturing the target image can be obtained from the storage queue by means of indexing. For example, if the temperature of the detector when capturing the target image is 30°C, the dark field template of 30°C is queried and obtained from the storage queue by means of indexing. Specifically, the index structure can be a balanced tree. For example, B-Tree, or B+Tree. Methods for establishing indexes may include but are not limited to two-pass document traversal method (2-Pass In-Memory Inversion), two-pass document traversal method (2-Pass In-Memory Inversion), merge method (Merge-based Inversion), etc. It should be understood that for those skilled in the art, the corresponding dark field template can also be obtained by other methods. For example, based on other query methods, the query method includes but is not limited to sequential search, binary search, binary sorted tree search, hash hashing method (hash table) or block search, etc.
[0094] Step 640 , correcting the target image based on the corresponding dark field template. Specifically, step 640 may be performed by the target image correction module 440 .
[0095] In some embodiments, the target image can be corrected based on the dark field template at the temperature at the time of target image acquisition. In some embodiments, the correction of the target image can be achieved by subtracting the dark field image corresponding to the temperature at the time of target image acquisition from the target image. In some embodiments, the dark field image corresponding to the temperature at the time of target image acquisition can be subtracted from the target image based on the pixel point. Specifically, the pixel value of each pixel point in the target image can be subtracted from the pixel value of the corresponding pixel point in the corresponding dark field template (also referred to as the dark field value). In some embodiments, the pixel value can be the image gray value of each pixel point. Taking the temperature of 30°C at the time of acquiring the target image as an example, the gray value of each pixel point in the target image is subtracted from the gray value of the pixel point corresponding to each pixel point in the dark field image at 30°C, and finally the image after dark field correction is obtained. In some embodiments, the correspondence between each pixel point of the target image and the dark field template can be achieved by coordinates or coding. Specifically, the coordinate position or coding of a certain pixel point in the target image is the same as that of the corresponding pixel point in the dark field template.
[0096] In some embodiments, when the dark field template corresponding to the temperature of the detector at the time of collecting the target image is not queried in the storage queue, the target image can be corrected based on the dark field templates corresponding to other temperatures adjacent to the temperature in the storage queue. In some embodiments, when the dark field template corresponding to the temperature of the detector at the time of collecting the target image is not queried in the storage queue, the target image can be corrected based on the dark field templates corresponding to other temperatures closest to the temperature in the storage queue. In some embodiments, when the dark field template corresponding to the temperature of the detector at the time of collecting the target image is not queried in the storage queue, the target image can be corrected based on the dark field templates corresponding to other temperatures closest to the temperature in the storage queue that are lower than the temperature. For example, when the temperature at the time of collecting the target image is 33°C, and only dark field templates corresponding to 29°C, 30°C, 31°C, 34°C, and 35°C are stored in the storage queue, the target image is corrected based on the dark field template at 31°C.
[0097] In some embodiments, when the dark field template corresponding to the temperature of the detector at the time of capturing the target image is not queried in the storage queue, the dark field template corresponding to the temperature can be obtained based on the dark field templates of other temperatures in the storage queue to correct the target image. In some embodiments, the grayscale value of the dark field template of the temperature can be calculated through the dark field templates of two or more other temperatures adjacent to the temperature, and the target image can be corrected. Specifically, an interpolation or fitting method can be used to determine the grayscale value of the dark field template of the temperature based on the grayscale values of two or more other temperatures adjacent to the temperature, and the target image can be corrected based on the determined grayscale value. In some embodiments, the interpolation method can be linear interpolation, Lagrange interpolation, Newton interpolation, Hermite interpolation, etc. The fitting method can be curve fitting. Specifically, an exponential function, a quadratic function, etc. can be used for curve fitting.
[0098] In some embodiments, when the dark field template corresponding to the temperature of the detector at the time of collecting the target image is not queried in the storage queue, the historical dark field template of the temperature can be obtained from other storage areas to correct the target image. In some embodiments, other storage areas may refer to storage areas outside the storage queue. Just as an example, when the storage queue is stored in the memory, other storage areas may include but are not limited to disks, hard disks, clouds, etc. When the storage queue is stored in a certain area in the memory, other storage areas may include other areas of the memory. In some embodiments, the historical dark field template may refer to the dark field template collected by the detector in the past period of time. For example, the dark field template collected when the detector was turned on last time relative to the current detector. For another example, the historical dark field template may refer to the dark field template collected by the detector in the past day, week, or month. The temperature corresponding to the historical dark field template can cover the temperature value experienced by the detector from power on to off during one working process, or cover the temperature value in the range of the lowest temperature to the highest temperature that appeared in the detector's previous working processes. In some embodiments, the historical dark field template can be updated based on the dark field template newly collected by the detector. Specifically, the dark field template at different temperatures acquired recently is replaced with the historical dark field template corresponding to the different temperatures in the historical dark field template, so as to avoid the dark field image superimposed on the historical dark field template and the actually acquired target image being too different due to the detector itself, thereby affecting the correction quality of the target image. For example, as the detector is used for a longer time, the detection effect may differ to a certain extent due to the wear of a certain component.
[0099] In some embodiments, when the detector is turned on but the target image is not acquired, the dark field template acquisition may be performed all the time; when the detector is acquiring the target image, the acquisition of the dark field template is stopped. This ensures that the acquisition scene or acquisition condition of the dark field template in the storage queue follows the current target image acquisition in real time, and thus can provide the most appropriate dark field template for the subsequent dark field correction of the acquired target image. Specifically, this step can be performed by the acquisition switching module 450.
[0100] Since the detector does not require the action of photons (e.g., X-rays) when acquiring a dark field template, but requires the action of photons when acquiring a target image, the acquisition of a dark field template and the acquisition of a target image cannot be performed at the same time. In some embodiments, image acquisition and dark field template acquisition can be switched by instructions. Specifically, the acquisition of a dark field template can be performed immediately after the detector is turned on, and immediately terminated when an instruction to start target image acquisition is received, and resumed when an instruction to end target image acquisition is received until the detector is turned off.
[0101] Figure 7 FIG. 1 is an exemplary flow chart of a method for maintaining a storage queue according to some embodiments of the present application. Figure 7 As shown, the method 700 for maintaining a storage queue may include:
[0102] Step 710 , monitoring the real-time temperature of the detector. Specifically, step 710 may be performed by the dark field template collection module 410 .
[0103] In some embodiments, the real-time temperature of the detector may be monitored based on a temperature detection device disposed inside the detector or based on a temperature detection device installed on the detector, wherein the real-time temperature is represented by T. For more details on the temperature monitoring of the detector, see the relevant description of step 610.
[0104] Step 720 , querying the storage status of the dark field template under the real-time temperature in the storage queue. Specifically, step 720 may be performed by the dark field template collection module 410 .
[0105] In some embodiments, the storage state of the dark field template at the real-time temperature T in the storage queue can be queried based on the index. In some embodiments, the query can also be performed based on other query methods, such as sequential search, binary search, binary sorted tree search, hash hashing method (hash table) or block search, etc. In some embodiments, the storage state of the dark field template at the real-time temperature T can include two states: the dark field template at the real-time temperature T is stored in the storage queue, and the dark field template at the real-time temperature T is not stored in the storage queue.
[0106] Step 730 , based on the storage state, determines whether to update the storage queue based on the dark field template at the real-time temperature. Specifically, step 730 may be performed by the dark field template collection module 410 .
[0107] In some embodiments, whether to update the storage queue based on the dark field template at the real-time temperature T is determined according to whether the dark field template at the real-time temperature T is stored in the storage queue. Specifically, if the dark field template at the real-time temperature T does not exist in the storage queue, the dark field template at the real-time temperature T is stored in the storage queue, thereby updating the storage queue. If the dark field template at the real-time temperature T exists in the storage queue, it is not stored repeatedly.
[0108] In some embodiments, the storage queue is a circular queue, which contains N nodes, N is an integer greater than 0 (as shown in 9), and dark field templates at different temperatures are stored in different nodes of the circular queue. In some embodiments, dark field templates at different temperatures are randomly stored in different nodes of the circular queue. In some embodiments, dark field templates at different temperatures are stored in nodes in the circular queue in order based on the high and low order of temperature. For example, the order from high to low, and for example, the order from low to high. In some embodiments, the temperature difference between two adjacent nodes in the storage queue can be equal to the temperature interval a (for example, 0.5°C, 1°C, 2°C, etc.) of the temperature of the monitoring detector, and the temperature interval a is determined by the detection accuracy of the temperature detection device built into the detector or installed separately. In this embodiment, if the dark field template at a certain temperature determined by the temperature interval a is not collected, the corresponding node may temporarily not store the dark field templates of other temperatures and be in an empty state. For example, after the detector is turned on, dark field templates at 21°C, 22°C, and 24°C are collected, and the temperature interval is 1°C. Then, these three dark field templates are stored in the nodes of the circular queue in sequence, and the node that should store the dark field template corresponding to 23°C is vacant, that is, a node is vacant between the node corresponding to 22°C and the node corresponding to 24°C. Fig. 9 In the structure 900 of the circular queue shown, in some embodiments, the storage node corresponding to the lowest temperature can be marked as 1, the node adjacent to the left of the node can be marked as 2, the node adjacent to the left of the left adjacent node can be marked as 3, and so on. In some alternative embodiments, the left adjacent method can be replaced by the right adjacent. For example, the temperatures corresponding to the stored dark field templates are 21°C, 22°C, 23°C... Then the node storing 21°C in the circular queue is the first node, and the node storing 22°C is the second node... In some embodiments, the temperature difference between two adjacent nodes in the storage queue can also be equal to a multiple of the temperature interval a of the monitoring detector temperature (such as 2 or 3 times). In some embodiments, the temperature difference between adjacent nodes in the storage queue can be the same or different.
[0109] In some embodiments, if the dark field template at the real-time temperature T does not exist in the circular queue and does not exceed the temperature range corresponding to the dark field template in the circular queue, the dark field template at the real-time temperature T is directly stored in the node corresponding to the circular queue. In some embodiments, the temperature range corresponding to the dark field template in the circular queue is determined by the lowest temperature Tmin corresponding to the dark field template stored in the current circular queue and the number of nodes N in the circular queue. Specifically, the temperature range corresponding to the dark field template in the circular queue is Tmin~Tmin+(N-1)*a. For example, the number of nodes in the circular queue N=10, the temperature interval a=1°C, the real-time temperature T=27°C, the lowest temperature in the current circular queue is 21°C, and the nodes of the queue store dark field templates at 21°C, 22°C, and 24°C, respectively. Therefore, the temperature range corresponding to the dark field template in the circular queue is 21°C~30°C, and the dark field template at the real-time temperature of 27°C can be directly stored in the node of the circular queue.
[0110] In some embodiments, when the real-time temperature T exceeds the temperature range corresponding to the dark field template in the circular queue, the dark field template under the real-time temperature T can be used to replace the existing dark field template in the circular queue based on the replacement rule. In some embodiments, the replacement rule can be that in response to the real-time temperature T being greater than the maximum value Tmax of the temperature range, the dark field template under the real-time temperature T is used to replace the dark field template corresponding to the minimum value Tmin of the temperature range in the circular queue; or, in response to the real-time temperature T being less than the minimum value Tmin of the temperature range, the dark field template under the real-time temperature T is used to replace the dark field template corresponding to the maximum value Tmax of the temperature range in the circular queue. For example, the number of nodes in the circular queue is N=5, and the temperature interval a=1°C. The nodes of the current circular queue store dark field templates at 21°C, 22°C, 23°C, 24°C and 25°C respectively, that is, the temperature range corresponding to the dark field template in the circular queue is 21°C to 25°C. If the real-time temperature T=27°C, the dark field template at 27°C replaces the dark field template at 21°C; if the real-time temperature T=19°C, the dark field template at 19°C replaces the dark field template at 25°C.
[0111] In some embodiments, the replacement rule may also be that in response to the real-time temperature T being greater than the maximum value Tmax of the temperature range, the dark field template at the real-time temperature T is used to replace the dark field template at the node (T-Tmax) / a in the circular queue; or, in response to the real-time temperature being less than the maximum value Tmax of the temperature range, the dark field template at the real-time temperature is used to replace the dark field template at the node (N+1)-(Tmin-T) / a in the circular queue. For example, the number of nodes in the circular queue is N=5, and the temperature interval a=1°C. The 1st, 2nd, 3rd, 4th, and 5th nodes of the current circular queue store dark field templates at 21°C, 22°C, 23°C, 24°C, and 25°C, respectively. That is, the temperature range corresponding to the dark field template in the circular queue is 21°C to 25°C. If the real-time temperature T=27°C, the dark field template at 27°C replaces the dark field template at 22°C (the (27°C-25°C) / 1°C); if the real-time temperature T=19°C, the dark field template at 19°C replaces the dark field template at 24°C (the (5+1)-(21°C-19°C) / 1°C). When the real-time temperature drops to 18°C, the dark field template at 18°C replaces the dark field template at 23°C, and so on. One of the benefits of this is that it can ensure that the temperature value corresponding to the dark field template in the queue can follow the temperature change trend of the detector and cover all temperature values that continuously change from the lowest temperature to the maximum temperature at the temperature interval a.
[0112] Figure 8 is an exemplary flow chart of a dark field template collection method according to some embodiments of the present application, such as Figure 8 As shown, the dark field template collection method 800 may include:
[0113] Step 810, monitor the real-time temperature of the detector and collect dark field templates of the detector at different real-time temperatures. Specifically, step 810 can be performed by the dark field template collection module 510. For more details on monitoring the real-time temperature of the detector and collecting dark field templates of the detector at different temperatures, see step 610 and its related description.
[0114] Step 820: Maintain a storage queue based on the collected dark field template. Specifically, step 820 may be performed by the storage maintenance module 520. For more details on maintaining a storage queue based on the collected dark field template, see Figure 7 and its related description.
[0115] The beneficial effects that may be brought about by the embodiments of the present application include but are not limited to: (1) shortening the time of target image acquisition; (2) dark field template collection can closely follow the target image acquisition, maximally ensuring that the state of the detector during dark field template acquisition is consistent with the state of the detector during target image acquisition, thereby ensuring the quality of dark field correction; (3) improving the user experience. It should be noted that different embodiments may produce different beneficial effects. In different embodiments, the beneficial effects that may be produced may be any one or a combination of the above, or any other possible beneficial effects.
[0116] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0117] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0118] In addition, it will be appreciated by those skilled in the art that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may all be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of the present application may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.
[0119] A computer storage medium may include a propagated data signal containing computer program code, for example, in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination. A computer storage medium may be any computer-readable medium other than a computer-readable storage medium, which can be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit the program for use. The program code on the computer storage medium may be transmitted via any suitable medium, including radio, cable, fiber optic cable, RF, or similar media, or any combination of the above media.
[0120] The computer program coding required for the operation of each part of the application can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., conventional procedural programming languages such as C language, Visual Basic, Fortran 2003, Perl, COBOL 2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages, etc. The program coding can be run completely on the user's computer, or run on the user's computer as an independent software package, or run partly on the user's computer and partly on the remote computer, or run completely on the remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).
[0121] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this application, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this application. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this application. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.
[0122] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0123] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0124] Each patent, patent application, patent application disclosure, and other materials, such as articles, books, instructions, publications, documents, etc., cited in this application are hereby incorporated by reference in their entirety. Except for application history documents that are inconsistent with or conflicting with the content of this application, documents that limit the broadest scope of the claims of this application (currently or later attached to this application) are also excluded. It should be noted that if the descriptions, definitions, and / or use of terms in the attached materials of this application are inconsistent or conflicting with the content described in this application, the descriptions, definitions, and / or use of terms in this application shall prevail.
[0125] Finally, it should be understood that the embodiments described in this application are only used to illustrate the principles of the embodiments of the present application. Other variations may also fall within the scope of the present application. Therefore, as an example and not a limitation, the alternative configurations of the embodiments of the present application may be considered to be consistent with the teachings of the present application. Accordingly, the embodiments of the present application are not limited to the embodiments explicitly introduced and described in the present application.
Claims
1. A dark field image correction method, characterized in that: include: Monitoring the real-time temperature of the detector, collecting dark field templates of the detector at different real-time temperatures, and maintaining a storage queue based on the collected dark field templates; The storage queue is used to store the collected dark field template; Monitor the temperature of the detector when acquiring target images; Acquire a corresponding dark field template from the storage queue based on the temperature of the detector at the time of acquiring the target image; Correcting the target image based on the corresponding dark field template; The storage queue is a circular queue, and dark field templates at different temperatures are stored in different nodes of the circular queue, the number of the nodes is N, and N is an integer greater than 0; and maintaining a storage queue based on the collected dark field template includes: when the real-time temperature exceeds the temperature range corresponding to the dark field template in the circular queue, based on a replacement rule, replacing the existing dark field template in the circular queue with the dark field template at the real-time temperature, wherein the replacement rule includes: In response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template corresponding to the minimum value of the temperature range in the circular queue or the dark field template of the (T-Tmax) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmax is the maximum value in the temperature range, and a is the temperature interval; or In response to the real-time temperature being less than the minimum value of the temperature range, replacing the dark field template corresponding to the maximum value of the temperature range in the circular queue with the dark field template at the real-time temperature; or In response to the real-time temperature being less than the maximum value of the temperature range, the dark field template at the (N+1)-(Tmin-T) / ath node in the circular queue is replaced with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmin is the minimum value in the temperature range, and a is the temperature interval.
2. The dark field correction method of image according to claim 1, characterized in that: The maintaining a storage queue based on the collected dark field template includes: Monitor the real-time temperature of the detector; Query the storage status of the dark field template at the real-time temperature in the storage queue; Based on the storage status, it is determined whether to update the storage queue based on the dark field template at the real-time temperature.
3. The dark field correction method of image according to claim 2, characterized in that: The maintaining a storage queue based on the collected dark field template also includes: In response to the dark field template under the real-time temperature not existing in the storage queue, storing the dark field template under the real-time temperature in the storage queue.
4. The dark field correction method of an image according to claim 1, characterized in that: Also includes: When the detector is acquiring the target image, the acquisition of the dark field template is stopped.
5. The dark field correction method of an image according to claim 1, characterized in that: Also includes: When the dark field template corresponding to the temperature of the detector at the time of capturing the target image is not found in the storage queue, the target image is corrected based on the dark field templates corresponding to other temperatures adjacent to the temperature in the storage queue.
6. The dark field correction method of an image according to claim 1, characterized in that: Also includes: When the dark field template corresponding to the temperature of the detector at the time of capturing the target image is not found in the storage queue, the dark field template corresponding to the temperature is obtained by interpolation or fitting based on the dark field templates of other temperatures in the storage queue, and the target image is corrected using the dark field template obtained by interpolation or fitting.
7. The dark field correction method of an image according to claim 1, characterized in that: Also includes: When no dark field template corresponding to the temperature of the detector at the time of collecting the target image is found in the storage queue, a historical dark field template of the temperature is obtained from other storage areas to correct the target image.
8. An image dark field correction system, characterized in that: include: A dark field template collection module, used to monitor the real-time temperature of the detector, collect dark field templates of the detector at different real-time temperatures, and maintain a storage queue based on the collected dark field templates; the storage queue is used to store the collected dark field templates; A temperature detection module during target image acquisition, used to monitor the temperature of the detector when acquiring the target image; A dark field template acquisition module, used to acquire a corresponding dark field template from the storage queue based on the temperature of the detector at the time of acquiring the target image; as well as A target image correction module, used for correcting the target image based on the corresponding dark field template; The storage queue is a circular queue, and dark field templates at different temperatures are stored in different nodes of the circular queue, the number of the nodes is N, and N is an integer greater than 0; and maintaining a storage queue based on the collected dark field template includes: when the real-time temperature exceeds the temperature range corresponding to the dark field template in the circular queue, replacing the existing dark field template in the circular queue with the dark field template at the real-time temperature based on a replacement rule, wherein the replacement rule includes: In response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template corresponding to the minimum value of the temperature range in the circular queue or the dark field template of the (T-Tmax) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmax is the maximum value in the temperature range, and a is the temperature interval; or In response to the real-time temperature being less than the minimum value of the temperature range, replacing the dark field template corresponding to the maximum value of the temperature range in the circular queue with the dark field template at the real-time temperature; or In response to the real-time temperature being less than the maximum value of the temperature range, the dark field template at the (N+1)-(Tmin-T) / ath node in the circular queue is replaced with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmin is the minimum value in the temperature range, and a is the temperature interval.
9. The dark field image correction system according to claim 8, characterized in that: The dark field template collection module is further used for: Monitor the real-time temperature of the detector; Query the storage status of the dark field template at the real-time temperature in the storage queue; Based on the storage status, it is determined whether to update the storage queue based on the dark field template at the real-time temperature.
10. The dark field image correction system according to claim 9, characterized in that: The dark field template collection module is further used for: In response to the dark field template under the real-time temperature not existing in the storage queue, storing the dark field template under the real-time temperature in the storage queue.
11. The dark field image correction system according to claim 8, characterized in that: Also includes: The acquisition switching module is used to stop acquiring the dark field template when the detector is acquiring the target image.
12. The dark field image correction system according to claim 8, characterized in that: The target image correction module is further used for: When the dark field template corresponding to the temperature of the detector at the time of capturing the target image is not found in the storage queue, the target image is corrected based on the dark field templates corresponding to other temperatures adjacent to the temperature in the storage queue.
13. The dark field image correction system according to claim 8, characterized in that: The target image correction module is further used for: When the dark field template corresponding to the temperature of the detector at the time of capturing the target image is not found in the storage queue, the dark field template corresponding to the temperature is obtained by interpolation or fitting based on the dark field templates of other temperatures in the storage queue, and the target image is corrected using the dark field template obtained by interpolation or fitting.
14. The dark field image correction system according to claim 8, characterized in that: The target image correction module is further used for: When the dark field template corresponding to the temperature of the detector at the time of collecting the target image is not found in the storage queue, the historical dark field template of the temperature is obtained from other storage areas to correct the image of the target.
15. An image dark field correction device, characterized in that: include: at least one storage medium and at least one processor; The at least one storage medium stores computer instructions; The at least one processor is configured to execute computer instructions to implement the method according to any one of claims 1 to 7. 16 . A computer-readable medium storing computer instructions, wherein when the computer instructions are executed by a processor, the method according to claim 1 is implemented.
17. A dark field template collection method, characterized in that: include: Monitoring the real-time temperature of the detector and collecting dark field templates of the detector at different real-time temperatures; Maintaining a storage queue based on the acquired dark field template; The storage queue is used to store the collected dark field template; The storage queue is a circular queue, and dark field templates at different temperatures are stored in different nodes of the circular queue, the number of the nodes is N, and N is an integer greater than 0; and maintaining a storage queue based on the collected dark field template includes: when the real-time temperature exceeds the temperature range corresponding to the dark field template in the circular queue, replacing the existing dark field template in the circular queue with the dark field template at the real-time temperature based on a replacement rule, wherein the replacement rule includes: In response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template corresponding to the minimum value of the temperature range in the circular queue or the dark field template of the (T-Tmax) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmax is the maximum value in the temperature range, and a is the temperature interval; or In response to the real-time temperature being less than the minimum value of the temperature range, replacing the dark field template corresponding to the maximum value of the temperature range in the circular queue with the dark field template at the real-time temperature; or In response to the real-time temperature being less than the maximum value of the temperature range, the dark field template at the (N+1)-(Tmin-T) / ath node in the circular queue is replaced with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmin is the minimum value in the temperature range, and a is the temperature interval.
18. The dark field template collection method according to claim 17, characterized in that: After the detector is turned on and the target image is not acquired, dark field template acquisition is performed; Or, when the detector is acquiring the target image, stop the dark field template acquisition.
19. The dark field template collection method according to claim 17, characterized in that: The maintaining the storage queue based on the acquired dark field template includes: Monitor the real-time temperature of the detector; Query the storage status of the dark field template at the real-time temperature in the storage queue; Based on the storage status, it is determined whether to update the storage queue based on the dark field template at the real-time temperature.
20. The dark field template collection method according to claim 19, characterized in that: The maintaining the storage queue based on the acquired dark field template includes: In response to the dark field template under the real-time temperature not existing in the storage queue, storing the dark field template under the real-time temperature in the storage queue.
21. A dark field template collection system, characterized in that: include: A dark field template acquisition module is used to monitor the real-time temperature of the detector and acquire the dark field template of the detector at different real-time temperatures; A storage maintenance module, used for maintaining a storage queue based on the collected dark field template; The storage queue is used to store the collected dark field template; The storage queue is a circular queue, and dark field templates at different temperatures are stored in different nodes of the circular queue, the number of the nodes is N, and N is an integer greater than 0; and maintaining a storage queue based on the collected dark field template includes: when the real-time temperature exceeds the temperature range corresponding to the dark field template in the circular queue, replacing the existing dark field template in the circular queue with the dark field template at the real-time temperature based on a replacement rule, wherein the replacement rule includes: In response to the real-time temperature being greater than the maximum value of the temperature range, replacing the dark field template corresponding to the minimum value of the temperature range in the circular queue or the dark field template of the (T-Tmax) / ath node in the circular queue with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmax is the maximum value in the temperature range, and a is the temperature interval; or In response to the real-time temperature being less than the minimum value of the temperature range, replacing the dark field template corresponding to the maximum value of the temperature range in the circular queue with the dark field template at the real-time temperature; or In response to the real-time temperature being less than the maximum value of the temperature range, the dark field template at the (N+1)-(Tmin-T) / ath node in the circular queue is replaced with the dark field template at the real-time temperature, wherein T is the real-time temperature, Tmin is the minimum value in the temperature range, and a is the temperature interval.
22. The dark field template collection system according to claim 21, characterized in that: The dark field template acquisition module is also used for: After the detector is turned on and the target image is not acquired, dark field template acquisition is performed; Or it can be used to stop dark field template acquisition when the detector is acquiring the target image.
23. The dark field template collection system according to claim 21, characterized in that: The storage maintenance module is also used for: Monitor the real-time temperature of the detector; Query the storage status of the dark field template at the real-time temperature in the storage queue; Based on the storage status, it is determined whether to update the storage queue based on the dark field template at the real-time temperature.
24. The dark field template collection system according to claim 23, characterized in that: The storage maintenance module is also used for: In response to the dark field template under the real-time temperature not existing in the storage queue, storing the dark field template under the real-time temperature in the storage queue.
25. A dark field template collection device, characterized in that: include: at least one storage medium and at least one processor; The at least one storage medium stores computer instructions; The at least one processor is configured to execute computer instructions to implement the method according to any one of claims 17 to 20.
26. A computer-readable medium storing computer instructions, wherein when the computer instructions are executed by a processor, the method according to any one of claims 17 to 20 is implemented.
