Image correction method and related apparatus

By using a temperature compensation function to correct images in an X-ray detector, the impact of temperature changes on image quality is resolved, improving image clarity and correction efficiency.

WO2026026241A1PCT designated stage Publication Date: 2026-02-05BOE TECHNOLOGY GROUP CO LTD +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/100340
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-30
Filing Date
2025-06-11
Publication Date
2026-02-05

AI Technical Summary

Technical Problem

The image quality of X-ray detectors is affected by temperature changes, leading to a decrease in image sharpness.

Method used

By obtaining the pixel temperature and pixel values ​​of the original image, the image is corrected using a temperature compensation function to generate target pixel values, thus correcting the deviation caused by temperature changes.

Benefits of technology

This improves the imaging quality of the X-ray detector, ensures image correction efficiency, and reduces errors caused by temperature changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025100340_05022026_PF_FP_ABST
    Figure CN2025100340_05022026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing, and discloses an image correction method and a related apparatus. The method comprises: acquiring an original image to be corrected, wherein the original image is an image generated by an X-ray detector; on the basis of an original pixel value of a target pixel point and an original temperature value corresponding to the target pixel point, determining a target pixel value of the target pixel point by means of a temperature compensation function, wherein the target pixel point is any pixel point in the original image, the original temperature value is the temperature value of the target pixel point at a corresponding point position on the X-ray detector, and the temperature compensation function is used for indicating the relationships among original pixel values of pixel points in the original image, original temperature values corresponding to the pixel points, and target pixel values corresponding to the pixel points; and correcting the original image on the basis of the corresponding target pixel values of the pixel points in the original image. In the present application, target pixel values are directly calculated by means of the temperature compensation function, so that the deviation caused by temperature change can be corrected, and the image correction efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Image correction method and related device

[0001] The present application claims priority to the Chinese patent application No. 202411035105.0, filed on July 30, 2024, and entitled "Image correction method and related device", the entire content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the field of image processing, in particular to an image correction method and related device. BACKGROUND

[0003] An X-ray detector refers to an image sensor capable of converting X-rays into electrical signals and forming an image output. The X-ray detector includes a photoelectric conversion device for converting X-rays into electrical signals, and a TFT (Thin Film Transistor) switching device for reading the electrical signals to form an image. Both devices are sensitive to temperature, and when the ambient temperature of the X-ray detector changes, the working performance of the two devices will be affected, thereby affecting the clarity of the final imaging.

[0004] Therefore, there is an urgent need for an image correction method to compensate for the original image output by the X-ray detector for temperature, so as to correct the deviation caused by temperature changes and ensure the imaging quality. SUMMARY

[0005] The present application provides an image correction method and related device, which can compensate for the original image output by the X-ray detector for temperature, so as to correct the deviation caused by temperature changes. The technical solution is as follows:

[0006] In a first aspect, an image correction method is provided, the method comprising:

[0007] obtaining an original image to be corrected, the original image being an image generated by an X-ray detector;

[0008] determining a target pixel value of a target pixel point based on an original pixel value of the target pixel point and an original temperature value corresponding to the target pixel point through a temperature compensation function;

[0009] wherein the target pixel point is any one pixel point in the original image, the original temperature value is a temperature value of a corresponding point on the X-ray detector, and the temperature compensation function is used to indicate the relationship between the original pixel value of each pixel point in the original image, the original temperature value corresponding to each pixel point, and the target pixel value;

[0010] correcting the original image based on the corresponding target pixel value of each pixel point in the original image.

[0011] Optionally, before the original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point are used to determine the target pixel value of the target pixel point through the temperature compensation function, the method further comprises:

[0012] obtaining a first sample image, a plurality of second sample images and a polynomial function with unknown polynomial coefficients, the first sample image being an image generated by the X-ray detector at a reference temperature point, the plurality of second sample images being images respectively generated by the X-ray detector at a plurality of temperature sampling points, the temperature values of the reference temperature point and the plurality of temperature sampling points being different;

[0013] determining the polynomial coefficients based on the first sample image and the plurality of second sample images, and determining the polynomial function with known polynomial coefficients as the temperature compensation function.

[0014] Optionally, the independent variable in the polynomial function is a second sample pixel value and a sample temperature value, and the dependent variable in the polynomial function is a first sample pixel value, the first sample pixel value corresponding to the same pixel point as the second sample pixel value;

[0015] wherein the second sample pixel value is a pixel value of any one pixel point in the second sample image, the sample temperature value is a temperature value of a temperature sampling point corresponding to the second sample image, and the first sample pixel value is a pixel value of a corresponding pixel point in the first sample image.

[0016] Optionally, determining the polynomial coefficients based on the first sample image and the plurality of second sample images comprises:

[0017] fitting the polynomial coefficients through the least square method based on the first sample pixel value, the second sample pixel value and the sample temperature value.

[0018] Optionally, the original image comprises a plurality of image regions, each image region corresponding to a temperature compensation function;

[0019] The original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point are used to determine the target pixel value of the target pixel point through the temperature compensation function, comprising:

[0020] determining a target region to which the target pixel point belongs in the original image;

[0021] determining the target pixel value of the target pixel point through the temperature compensation function corresponding to the target region based on the original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point.

[0022] Optionally, before the target pixel value of the target pixel point is determined based on the original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point through the temperature compensation function, the method further comprises:

[0023] obtaining a bias correction coefficient corresponding to the X-ray detector;

[0024] correcting the original image based on the bias correction coefficient.

[0025] Optionally, before the target pixel value of the target pixel point is determined based on the original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point through the temperature compensation function, the method further comprises:

[0026] obtaining a gain correction coefficient corresponding to the X-ray detector;

[0027] correcting the original image based on the gain correction coefficient.

[0028] In a second aspect, an image correction device is provided, and the device comprises:

[0029] an image acquisition module configured to acquire an original image to be corrected, the original image being an image generated by an X-ray detector;

[0030] a pixel value determination module configured to determine a target pixel value of a target pixel point based on an original pixel value of the target pixel point and an original temperature value corresponding to the target pixel point through a temperature compensation function, wherein the target pixel point is any one of pixel points in the original image, the original temperature value is a temperature value of a corresponding point on the X-ray detector corresponding to the target pixel point, and the temperature compensation function is used to indicate a relationship between the original pixel value of each pixel point in the original image, the original temperature value corresponding to each pixel point, and the target pixel value;

[0031] an image correction module configured to correct the original image based on the corresponding target pixel value of each pixel point in the original image.

[0032] Optionally, the device further comprises:

[0033] a sample acquisition module configured to acquire a first sample image, a plurality of second sample images, and a polynomial function with unknown polynomial coefficients, the first sample image being an image generated by the X-ray detector at a reference temperature point, the plurality of second sample images being images respectively generated by the X-ray detector at a plurality of temperature sampling points, and the reference temperature point and the plurality of temperature sampling points having different temperature values;

[0034] The function determining module is configured to determine the polynomial coefficients based on the first sample image and the plurality of second sample images, and determine a polynomial function with the polynomial coefficients as the temperature compensation function.

[0035] Optionally, the independent variable in the polynomial function is a second sample pixel value and a sample temperature value, and the dependent variable in the polynomial function is a first sample pixel value corresponding to the same pixel point as the second sample pixel value.

[0036] Optionally, the second sample pixel value is a pixel value of any pixel point in the second sample image, the sample temperature value is a temperature value of a temperature sampling point corresponding to the second sample image, and the first sample pixel value is a pixel value of a corresponding pixel point in the first sample image.

[0037] Optionally, the function determining module is specifically configured to:

[0038] The polynomial coefficients are fitted by a least square method based on the first sample pixel value, the second sample pixel value, and the sample temperature value.

[0039] Optionally, the original image includes a plurality of image regions, and each image region corresponds to a temperature compensation function; and the pixel value determining module includes:

[0040] A first determining unit is configured to determine a target region to which the target pixel point belongs in the original image.

[0041] A second determining unit is configured to determine a target pixel value of the target pixel point by using a temperature compensation function corresponding to the target region based on an original pixel value of the target pixel point and an original temperature value corresponding to the target pixel point.

[0042] Optionally, the device further includes:

[0043] A coefficient obtaining module is configured to obtain a bias correction coefficient corresponding to the X-ray detector.

[0044] The image correcting module is further configured to correct the original image based on the bias correction coefficient.

[0045] Optionally, the device further includes:

[0046] A coefficient obtaining module is configured to obtain a gain correction coefficient corresponding to the X-ray detector.

[0047] The image correcting module is further configured to correct the original image based on the gain correction coefficient.

[0048] In a third aspect, an X-ray detector is provided, comprising an image generation device, at least one temperature sensor, a memory, and a processor;

[0049] The image generation device is configured to convert received X-rays into electrical signals and generate an original image based on the electrical signals;

[0050] The at least one temperature sensor is configured to collect original temperature values corresponding to each pixel point in the original image, the original temperature value being a temperature value of the corresponding point on the X-ray detector.

[0051] The memory is configured to store a computer program, and the processor is configured to execute the computer program to implement the image correction method of the first aspect.

[0052] In a fourth aspect, a computer device is provided, comprising a memory and a processor;

[0053] The memory is configured to store a computer program;

[0054] The processor is configured to execute the computer program to implement the image correction method of the first aspect.

[0055] In a fifth aspect, an image correction system is provided, comprising an X-ray detector and an image correction device;

[0056] The X-ray detector comprises an image generation device and at least one temperature sensor, the image generation device being configured to convert received X-rays into electrical signals and generate an original image based on the electrical signals, and the at least one temperature sensor being configured to collect original temperature values corresponding to each pixel point in the original image, the original temperature value being a temperature value of the corresponding point on the X-ray detector.

[0057] The image correction device is configured to execute the image correction method of the first aspect based on the original image and the original temperature values corresponding to each pixel point in the original image.

[0058] In a sixth aspect, a computer readable storage medium is provided, the storage medium storing a computer program, the computer program being executed by a processor to implement the image correction method of the first aspect.

[0059] In a seventh aspect, a computer program product is provided, the computer program product storing computer instructions, the computer instructions being executed by a processor to implement the image correction method of the first aspect.

[0060] The technical scheme provided by the present application can at least bring the following beneficial effects:

[0061] For the original image generated by the X-ray detector, for any one pixel point in the original image, the present application determines the target pixel value of the pixel point through a temperature compensation function based on the original pixel value of the pixel point and the original temperature value corresponding to the pixel point, and then corrects the original image through the target pixel value of each pixel point. Since the temperature compensation function is used to indicate the relationship between the original pixel value of each pixel point, the original temperature value corresponding to each pixel point and the target pixel value in the original image, therefore, the temperature compensation function can correct the deviation caused by temperature change, thereby ensuring the imaging quality of the X-ray detector; and based on the temperature compensation function, the target pixel value of each pixel point can be quickly and effectively calculated, thereby improving the image correction efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0063] FIG. 1 is a structural schematic diagram of an X-ray detector according to an embodiment of the present application;

[0064] FIG. 2 is a distribution schematic diagram of a temperature sensor according to an embodiment of the present application;

[0065] FIG. 3 is a structural schematic diagram of a computer device according to an embodiment of the present application;

[0066] FIG. 4 is a system architecture diagram of an image correction system according to an embodiment of the present application;

[0067] FIG. 5 is a flow schematic diagram of an image correction method according to an embodiment of the present application;

[0068] FIG. 6 is a structural schematic diagram of an image correction device according to an embodiment of the present application. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the drawings.

[0070] Before the image correction method provided by the embodiments of the present application is explained in detail, the application scenarios and implementation environments involved in the embodiments of the present application are introduced.

[0071] Firstly, the application scenarios involved in the embodiments of the present application are introduced.

[0072] An X-ray detector refers to an image sensor that converts X-rays into electrical signals and forms an image output. An X-ray detector generally includes an array of photosensitive elements, each of which works independently during the scanning process of an object to be detected, detects X-rays incident on its surface, and converts the received X-ray intensity into a measurable electrical signal. These electrical signals are then processed and converted into pixel values in a digital image, thereby forming a complete image.

[0073] In general, the photosensitive elements are micro-units made of semiconductor materials such as silicon (Si) or tellurium (Te). To capture an image, these photosensitive elements are organized in the form of a two-dimensional array, i.e., a photosensitive element array. Each individual photosensitive element corresponds to a "point" or "position" in the image, i.e., a pixel, so it can also be said that the photosensitive element array constitutes a pixel array in the image.

[0074] For a scanned image, each pixel (i.e., each photosensitive element) in the image corresponds to a specific position of the object to be detected and carries information about the X-ray intensity at that position. Therefore, by arranging these pixels in a specific order and format and combining their brightness (or grayscale) values, a complete digital X-ray image can be constructed. In other words, the collection of these pixels in the image collectively represents information about the internal structure, density distribution, etc. of the object to be detected.

[0075] Further, X-ray detectors can be divided into direct X-ray detectors and indirect X-ray detectors according to their structure.

[0076] A direct X-ray detector mainly consists of an amorphous selenium (A-Se) photoelectric conversion layer, a TFT (Thin Film Transistor) array, a driving circuit, and a readout circuit. The amorphous selenium layer serves as a photoelectric conversion layer. When X-rays are directly incident on these materials, X-ray photons interact with atoms in the material to generate electron-hole pairs. These electron-hole pairs are separated and moved under the action of an electric field, forming an electrical signal. That is, X-rays are directly converted into electrical signals without the need for intermediate conversion steps.

[0077] The TFT array, as a switching device, is used to control the switching of each pixel to achieve row-by-row signal reading. The driving circuit is responsible for controlling the switching operation of the TFT array and reading the original electrical signal.

[0078] The indirect X-ray detector mainly consists of a scintillator, an amorphous silicon (A-Si) photodiode array, a TFT array, a driving circuit and a readout circuit. The scintillator is a converter from X-ray to visible light, the A-Si photodiode array is used to convert the visible light into an electrical signal, and the TFT array and the driving circuit have the same functions as the direct detector, which are used to control the switching of the pixels and read the electrical signal.

[0079] The scintillator is usually made of gadolinium oxysulfide (GOS) or cesium iodide (CsI) and other scintillator materials, which convert X-rays into visible light of a fixed wavelength. That is, when X-rays irradiate the scintillator, the scintillator absorbs the X-ray energy and emits visible light. Subsequently, the visible light is absorbed by the A-Si photodiode, which converts the optical signal into an electrical signal.

[0080] Both types of detectors involve photoelectric conversion devices and TFT switching devices made of semiconductor materials in the signal pickup and conversion process. In addition to the leakage current (i.e. the current in the abnormal working state), as a characteristic of semiconductor materials, they are also very sensitive to temperature, which not only affects the amount of charge caused by leakage current per unit time, but also causes the change of the bias voltage of the photoelectric conversion device due to charge leakage. These will cause the charge separation ability of the photoelectric conversion device to differ with the change of the ambient temperature, and its sensitivity will also change.

[0081] Moreover, during the use of the X-ray detector, the temperature of the X-ray detector itself will gradually rise with the continuous irradiation of X-rays, and the circuit board itself will generate a large amount of heat. Compared with medical imaging, the working temperature range of the X-ray detector used in industrial environments is extremely large. If the change of temperature is not compensated, it will cause the image output by the X-ray detector to be abnormal, which is easy to cause misjudgment, and even cause loss of life and property.

[0082] As an example, the abnormality of the image can be manifested as a decrease in the sensitivity of the photoelectric conversion device and / or the TFT switching device after the temperature change, which may result in the inability to image the object being inspected.

[0083] Therefore, considering the sensitivity of the elements of the X-ray detector to temperature, in the scenario of using the X-ray detector, the original image output by the X-ray detector needs to be temperature compensated to correct the deviation caused by the change of temperature, so as to ensure the imaging quality.

[0084] Based on this, the embodiment of the present application provides an image correction method, for the original image generated by the X-ray detector, for any one pixel point in the original image, based on the original pixel value of the pixel point and the original temperature value corresponding to the pixel point, the target pixel value of the pixel point is determined through the temperature compensation function, and then the original image is corrected through the target pixel value of each pixel point. Since the temperature compensation function is used to indicate the relationship between the original pixel value of each pixel point in the original image, the original temperature value corresponding to each pixel point and the target pixel value, therefore, the temperature compensation function can correct the deviation caused by temperature change, thereby ensuring the imaging quality of the X-ray detector; and based on the temperature compensation function, the target pixel value of each pixel point in the original image can be quickly and effectively determined, thereby improving the image correction efficiency.

[0085] Secondly, the implementation environment related to the embodiment of the present application is introduced.

[0086] Regarding the image correction method provided by the embodiment of the present application, the execution subject can be an X-ray detector, a computer device, or an image correction system composed of an X-ray detector and an image correction device. Next, the possible implementation environments are introduced in turn.

[0087] In the first possible implementation environment, the X-ray detector can be used as the execution subject to independently execute the steps in the image correction method provided by the embodiment of the present application.

[0088] Referring to FIG. 1, the X-ray detector includes an image generation device 101, at least one temperature sensor 102, a memory 103 and a processor 104. Wherein, the image generation device 101 is used to convert the received X-ray into an electrical signal, and generate an original image based on the electrical signal; the temperature sensor 102 is used to collect the original temperature value corresponding to each pixel point in the original image, the original temperature value is the temperature value of each pixel point at the corresponding point position on the X-ray detector; the memory 103 is used to store the computer program (i.e. program code), and the processor 104 is used to execute the computer program to realize the image correction method provided by the embodiment of the present application.

[0089] It should be understood that the image generation device 101 as a functional module can include one or more physical hardware. For example, when the X-ray detector is a direct X-ray detector, the image generation device 101 can include an A-Se photoelectric conversion layer, a TFT array, a driving circuit and a readout circuit, etc.; when the X-ray detector is an indirect X-ray detector, the image generation device 101 can include a scintillator, an A-Si photodiode array, a TFT array, a driving circuit and a readout circuit, etc. The embodiment of the present application does not limit this.

[0090] It should be noted that, with the development of technology, the devices related to signal pickup and image generation in the X-ray detector can be part of the image generation apparatus 101 and included in the above-mentioned image generation apparatus 101.

[0091] In actual implementation, the image generation apparatus 101 and the at least one temperature sensor 102 are respectively connected to the processor 104 to send the original image and the original temperature value corresponding to each pixel point to the processor 104. The processor 104 is connected to the memory 103, so that the processor 104 can call and execute the computer program stored in the memory 103. The connection here can be wired connection, for example, connection through a communication bus.

[0092] In some embodiments, considering that the X-ray detector is affected by the heat source of the peripheral equipment when working, the temperature changes of different regions in the photosensitive element array on the X-ray detector can be different, and the heat generated by the devices on the circuit board of the X-ray detector itself during the working process also has differences, especially the processor chip, which has the largest heat dissipation. Based on this, multiple temperature sensors can be deployed on the X-ray detector in a regional manner to monitor the temperature changes of the X-ray detector in a partitioned manner.

[0093] In a possible implementation, the X-ray detector can include multiple temperature sensors, and the multiple temperature sensors are arranged in a matrix form to be uniformly distributed on the X-ray detector.

[0094] As an example, as shown in FIG. 2, assuming that the number of temperature sensors is 6, the region where the circuit board of the X-ray detector is located can be divided into 6 sub-regions, so that one temperature sensor is deployed in each sub-region.

[0095] Optionally, the multiple sub-regions can also be determined based on the photosensitive element array on the X-ray detector. The embodiments of the present application do not limit this.

[0096] In this way, by deploying the temperature sensors in a partitioned manner, the temperature of each point on the X-ray detector can be accurately measured, the accuracy of temperature measurement is improved, and the accuracy of calculating the target pixel value based on the original temperature value of the pixel point in the embodiments of the present application is improved, so that the image correction effect is better.

[0097] It should be noted that, for the at least one temperature sensor, it can not cover all pixel points corresponding to the X-ray detector, and therefore, when determining the original temperature value corresponding to a pixel point, the temperature value collected by the temperature sensor closest to the pixel point can be taken as the original temperature value corresponding to the pixel point, or the temperature value collected by the temperature sensor corresponding to a certain region can be taken as the original temperature value of all pixel points in the region. The embodiment of the present application does not limit the specific implementation manner of determining the original temperature value corresponding to a pixel point based on the temperature value collected by the at least one temperature sensor.

[0098] In a second possible implementation environment, the computer device can be used as an execution subject to independently execute the steps in the image correction method provided by the embodiment of the present application.

[0099] FIG. 3 is a structural schematic diagram of a computer device according to an embodiment of the present application. The computer device can be a terminal device or a server, or other intelligent devices including a memory and a processor, such as a wearable device, and the like, and is used to execute the image correction method provided by the embodiment of the present application.

[0100] Please refer to FIG. 3. The computer device includes at least one processor 301, a communication bus 302, a memory 303, and at least one communication interface 304.

[0101] The processor 301 can be a CPU (Central Processing Unit, general central processing unit), a NP (Network Processor, network processor), a microprocessor, or can be one or more integrated circuits for implementing the scheme of the present application, such as an ASIC (Application-Specific Integrated Circuit, application-specific integrated circuit), a PLD (Programmable Logic Device, programmable logic device) or a combination thereof. The above-mentioned PLD can be a CPLD (Complex Programmable Logic Device, complex programmable logic device), an FPGA (Field-Programmable Gate Array, field programmable logic gate array), a GAL (Generic Array Logic, generic array logic) or any combination thereof.

[0102] As an example, the processor 301 can include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 3.

[0103] As an example, a computer device can include multiple processors, such as processor 301 and processor 305 as shown in FIG. 3. Each of these processors can be a single core processor or a multiple core processor. A processor here can refer to one or more devices, circuits, and / or processing cores for processing data, such as computer program instructions.

[0104] Communication bus 302 is used to transmit information between the above-mentioned components. Communication bus 302 can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is shown in FIG. 3, but it does not mean that there is only one bus or one type of bus.

[0105] Memory 303 can be a ROM (Read-Only Memory), a RAM (Random Access Memory), an EEPROM (Electrically Erasable Programmable Read-only Memory), an optical disk (including a CD-ROM (Compact Disc Read-Only Memory), a compact disk, a laser disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited to.

[0106] Optionally, memory 303 can exist independently and be connected to processor 301 through communication bus 302. Memory 303 can also be integrated with processor 301.

[0107] Communication interface 304 uses any transceiver-like device for communicating with other devices or communication networks. Communication interface 304 includes a wired communication interface and can also include a wireless communication interface. The wired communication interface can be, for example, an Ethernet interface. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface can be a WLAN (Wireless Local Area Networks) interface, a cellular network communication interface, or a combination thereof, etc.

[0108] In some embodiments, the computer device can further include an output device and an input device. The output device is in communication with the processor 301 and can display information in a variety of ways. For example, the output device can be an LCD (Liquid Crystal Display), LED (Light Emitting Diode) display device, CRT (Cathode Ray Tube) display device, or a projector, etc. The input device is in communication with the processor 301 and can receive user input in a variety of ways. For example, the input device can be a mouse, keyboard, touch screen device, or sensor device, etc.

[0109] In some embodiments, the memory 303 is configured to store program code 310 for implementing the solutions of the present application, and the processor 301 can execute the program code 310 stored in the memory 303. The program code 310 can include one or more software modules, and the computer device can implement the image correction method provided by the embodiments of the present application by means of the processor 301 and the program code 310 in the memory 303.

[0110] In a third possible implementation environment, the image correction method provided by the embodiments of the present application can be applied to an image correction system, i.e., the image correction method provided by the embodiments of the present application is realized by the mutual cooperation and joint action of the devices in the image correction system.

[0111] Referring to FIG. 4, the image correction system includes an X-ray detector 100 and an image correction device 200, and the X-ray detector 100 and the image correction device 200 are interconnected and in communication. The X-ray detector 100 includes an image generation apparatus and at least one temperature sensor. The image generation apparatus is configured to convert received X-rays into an electrical signal and generate an original image based on the electrical signal. The at least one temperature sensor is configured to acquire an original temperature value corresponding to each pixel point in the original image, the original temperature value being a temperature value of each pixel point at a corresponding point on the X-ray detector. The image correction device 200 is configured to execute the image correction method provided by the embodiments of the present application based on the original image and the original temperature value corresponding to each pixel point in the original image.

[0112] The X-ray detector 100 can be the X-ray detector shown in FIG. 1 described above. In the image correction system, the X-ray detector 100 is used as an information acquisition device and only outputs the original image and the original temperature value corresponding to each pixel point in the original image, and the image correction device 200 corrects the original image.

[0113] Optionally, the image correction device 200 can be a computer device shown in FIG. 3, that is, the original image input can be corrected by executing a computer program, and the corrected image can be output.

[0114] As an example, the image correction device 200 can be a stand-alone server, a server cluster composed of multiple physical servers, or a distributed system, a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, or a cloud computing service center.

[0115] Those skilled in the art should understand that the image correction device 200 is only an example, and other existing or future intelligent devices such as terminals and servers can also be applicable to the embodiments of the present application and should be included in the protection scope of the embodiments of the present application.

[0116] It should be noted that the above application scenarios and exemplary implementation environments described in the embodiments of the present application are for more clearly explaining the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems as new application scenarios appear and implementation environments evolve.

[0117] After introducing the application scenarios and implementation environments related to the embodiments of the present application, the image correction method provided by the embodiments of the present application will be explained in detail.

[0118] FIG. 5 is a flowchart of an image correction method provided by an embodiment of the present application. The method can be applied to the X-ray detector shown in FIG. 1, the computer device shown in FIG. 3, or the image correction system shown in FIG. 4. Please refer to FIG. 5, the method includes the following steps.

[0119] Step 501: Obtain an original image to be corrected, which is an image generated by an X-ray detector.

[0120] As introduced above, the X-ray detector can be a direct X-ray detector or an indirect X-ray detector in terms of structure, and can be an X-ray flat panel detector in terms of type. The embodiments of the present application do not limit the specific type of the X-ray detector, that is, the image correction method provided by the embodiments of the present application is applicable to the original image generated by any X-ray detector.

[0121] As an example, the original image is a bright field grayscale image. Based on this, the pixel value of each pixel point included in the original image is the grayscale value of the pixel point, which can be 0-255. Of course, for a 16-bit ADC (Analog-to-Digital Converter, or analog-to-digital converter) device, the grayscale value of the pixel point of the original image output by the device can be 0-65535. The embodiments of the present application do not limit the value range of the grayscale value of the pixel point in the original image generated after processing the image signal. In the digital processing of the image signal, the grayscale value range of the image generated by different devices can be different.

[0122] In some embodiments, before performing the following steps 502 and 503, the original image can also be pre-processed based on the image correction coefficient, and then the temperature compensation is performed through steps 502 and 503 based on the pre-processed original image.

[0123] In a first possible implementation, the image correction coefficient includes an offset correction coefficient. Based on this, the offset correction coefficient corresponding to the X-ray detector is obtained based on the original image; and the original image is corrected based on the offset correction coefficient.

[0124] In the X-ray detector, even in the absence of X-ray irradiation, due to the inherent characteristics of the electronic elements, a certain dark current or dark noise will be generated, which will be superimposed on the final image as a background signal, affecting the clarity and contrast of the image. Based on this, the offset correction is used to remove the influence of the electronic dark noise of each pixel electronic element, and to improve the image contrast.

[0125] As an example, assuming that the average dark noise of each pixel of the X-ray detector is 10 grayscale units when there is no X-ray irradiation. Then, when performing offset correction, 10 grayscale units of dark noise are subtracted from the original image, and a clearer and higher-contrast image can be obtained.

[0126] In addition, before offset correction, sample data needs to be collected in advance to determine the average dark noise. The implementation process can be: first, continuously collect multiple dark images without exposure, and these dark images contain the dark noise of the X-ray detector itself, but do not contain the X-ray signal. Then, the collected multiple dark images are averaged to obtain an average dark image, which represents the overall dark noise level of the X-ray detector when there is no X-ray irradiation.

[0127] It should be noted that the specific implementation process of the offset correction can also be referred to in the related art. The embodiments of the present application aim to explain that the original image collected by the X-ray detector can be offset corrected before temperature compensation, but the specific implementation method and implementation details of the offset correction are not limited.

[0128] In a second possible implementation, the image correction coefficient includes a gain (also referred to as gain) correction coefficient. Based on this, based on the original image described above, the gain correction coefficient corresponding to the X-ray detector is obtained; and the original image is corrected based on the gain correction coefficient.

[0129] In the X-ray detector, due to the differences in manufacturing process, material performance and other factors, the response sensitivity of different pixels to X-rays may be different, which will cause uneven brightness in the image. Based on this, gain correction is used to eliminate the image uniformity problem caused by inconsistent sensitivity between pixels of the detector.

[0130] As an example, assume that the response gray value of a certain pixel of the X-ray detector is 200 at 100 mas (mas), and the response gray value of another pixel is 250 at the same mas. Through gain correction, the gain correction coefficients of the two pixels can be calculated, and their gray values can be adjusted to approach a common standard value (for example, 225), so that the brightness distribution of the entire image is more uniform.

[0131] In addition, before gain correction, sample data needs to be collected in advance to determine the gain correction coefficient of each pixel point. The implementation process can be as follows: under certain dose conditions (for example, fixed X-ray intensity and exposure time), the mas value is changed, and multiple correction images under these conditions are obtained; for each pixel point, according to its response gray value at different mas values, a response curve (usually linear) is fitted, which describes the response characteristics of the pixel point to X-ray dose; a standard pixel response is specified (for example, taking the median or mean of all pixel responses as the standard), and the responses of each pixel point are adjusted based on this; according to the fitted response curve and the standard pixel response, the gain correction coefficient of each pixel is calculated. In practical applications, these gain correction coefficients are applied to the original image to adjust the gray values of each pixel point, so that the image achieves uniform brightness distribution.

[0132] It should be noted that the specific implementation process of the gain correction can also be referred to in the related art. The embodiments of the present application aim to explain that the original image collected by the X-ray detector can be gain corrected before temperature compensation, but the specific implementation method and implementation details of the gain correction are not limited.

[0133] In a third possible implementation, the image correction coefficient includes a bias correction coefficient and a gain correction coefficient. Based on this, the bias correction coefficient and the gain correction coefficient corresponding to the X-ray detector are obtained based on the original image; and the original image is corrected based on the bias correction coefficient and the gain correction coefficient.

[0134] As an example, after the image correction coefficient is obtained, the original image is first corrected by using the bias correction coefficient to obtain a first image, and then the first image is further corrected by using the gain correction coefficient to obtain a second image, and then the steps 502 and 503 are performed based on the second image.

[0135] In addition, when the original image is preprocessed by using the image correction coefficient, the offset correction and the gain correction are both performed on the original image in units of pixel points. That is, the pixel value of each pixel point is corrected by using the offset correction coefficient and / or the gain correction coefficient, so as to correct the entire original image.

[0136] Step 502: determining a target pixel value of a target pixel point by using a temperature compensation function based on an original pixel value of the target pixel point and an original temperature value corresponding to the target pixel point, wherein the target pixel point is any one of the pixel points in the original image, the original temperature value is a temperature value of a corresponding point position of the target pixel point on the X-ray detector, and the temperature compensation function is used to indicate the relationship among the original pixel value of each pixel point in the original image, the original temperature value corresponding to each pixel point, and the target pixel value.

[0137] In the step of determining the target pixel value of the target pixel point by using the temperature compensation function, the original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point are substituted into the temperature compensation function, so as to calculate the target pixel value of the target pixel point.

[0138] Based on this, in order to clearly explain the specific implementation process of the step 502, the generation process of the temperature compensation function is explained and described herein.

[0139] In some embodiments, the process of generating the temperature compensation function can include the following steps S1-S2.

[0140] S1: obtaining a first sample image, a plurality of second sample images, and a polynomial function with unknown polynomial coefficients.

[0141] The first sample image is an image generated by the X-ray detector at a reference temperature point, the plurality of second sample images are images respectively generated by the X-ray detector at a plurality of temperature sampling points, and the temperature values of the reference temperature point and the plurality of temperature sampling points are different.

[0142] As an example, the temperature value of the reference temperature point can be a temperature value at normal temperature, for example, 25°; and the temperature values of the plurality of temperature sampling points can include 30°, 40°, 50°, and the like.

[0143] It should be noted that the temperature values of the reference temperature point and the plurality of temperature sampling points can be flexibly set and adjusted according to the temperature change in the actual working process of the X-ray detector, and the embodiments of the present application do not limit this.

[0144] In a possible implementation, the process in which the X-ray detector acquires a signal and generates the first sample image and the plurality of second sample images can be: first, generating the first sample image by the X-ray detector based on the temperature value corresponding to the reference temperature point; then adjusting the ambient temperature or the temperature of the X-ray detector itself, and generating the second sample image by the X-ray detector based on the temperature value corresponding to each temperature sampling point in turn, thereby obtaining the plurality of second images generated respectively under the plurality of temperature sampling points. The plurality of temperature sampling points correspond one-to-one to the plurality of second images.

[0145] It should be understood that, since the first sample image and the plurality of second sample images are obtained by the same X-ray detector, the first sample image and the second sample images each include the same number of pixel points, and the pixel points included in the first sample image correspond one-to-one to the pixel points included in each of the plurality of second sample images.

[0146] As an example, the first sample image and the second sample image can also be bright-field grayscale images. Similarly, for the sample images (i.e., the first sample image and the plurality of second sample images), the pixel value of each pixel point is the grayscale value of the pixel point, which can be 0-255. Of course, for a 16-bit ADC device, the grayscale value of the pixel point of the sample image output by the device can be 0-65535. The embodiments of the present application do not limit the value range of the grayscale value of the pixel point in the sample image generated after processing the image signal, and the grayscale value range of the image generated by different devices can be different in the digital processing of the image signal.

[0147] In the polynomial function, the independent variable is the second sample pixel value and the sample temperature value, the dependent variable is the first sample pixel value, and the first sample pixel value and the second sample pixel value in the polynomial function correspond to the same pixel point. The second sample pixel value is the pixel value of any one pixel point in the second sample image, the sample temperature value is the temperature value of the temperature sampling point corresponding to the second sample image, and the first sample pixel value is the pixel value of the corresponding pixel point in the first sample image.

[0148] It should be noted that, in selecting / setting the polynomial function, in order to avoid the situation of complex operation or over-fitting, the degree (also referred to as order) of the polynomial function is controlled to be within 3 or 4.

[0149] Taking the degree of the polynomial function as 3 for example, the polynomial function in the embodiment of the present application can be represented by the following formula (1). a0=b0+b1·a·T+b2·a 2 ·T 2 +b3·a 3 ·T 3 (1)

[0150] For any one pixel point A included in the first sample image, a0 in the above formula is the pixel value of the pixel point A in the first sample image, a is the pixel value of the pixel point A in the second sample image, and T is the temperature value of the temperature sampling point corresponding to the second sample image.

[0151] Optionally, T can be an actually sampled temperature value, or a temperature value after normalization processing on the actually sampled temperature value, and the embodiment of the present application does not limit this.

[0152] It should be understood that, for the above polynomial function, before performing the following step S2, only the calculation logic between the dependent variable and the independent variable in the function is determined, but the polynomial coefficients b0, b1, b2 and b3 in the polynomial function are unknown, and need to be solved by the sample pixel values of each pixel point in the first sample image and the sample pixel values of each pixel point in the plurality of second sample images.

[0153] S2: determining the polynomial coefficients based on the first sample image and the plurality of second sample images, and determining the polynomial function with the known polynomial coefficients as the temperature compensation function.

[0154] In the embodiment of the present application, before solving the polynomial coefficients by fitting, a plurality of sample data pairs need to be constructed based on the first sample image and the second sample image. Each sample data pair includes a first sample pixel value, a corresponding second sample pixel value and a corresponding sample temperature value.

[0155] As an example, it is assumed that P10-P19 are included in the first sample image, and a total of 10 pixel points are included; for one of the second sample images (denoted as image M), image M includes corresponding 10 pixel points, denoted as P20-P29, and the temperature value of the temperature sampling point corresponding to the image M is 30°, based on which, based on the first sample image and the image M, the generated sample data pair includes: (P10, P20, 30°), (P11, P21, 30°), (P12, P22, 30°), (P13, P23, 30°), (P14, P24, 30°), (P15, P25, 30°), (P16, P26, 30°), (P17, P27, 30°), (P18, P28, 30°), (P19, P29, 30°).

[0156] Based on this, the first sample pixel value of the pixel point in the above-mentioned first sample image is substituted into the above-mentioned formula (1) as a0, the second sample pixel value of the corresponding pixel point in the second sample image is substituted into the above-mentioned formula (1) as a, and the sample temperature value corresponding to the second sample image (or the temperature value corresponding to the second sample pixel point) is substituted into the above-mentioned formula (1), and the polynomial coefficients b0, b1, b2 and b3 that make the above-mentioned formula (1) equal are solved.

[0157] In a possible implementation, the polynomial coefficients are fitted by the least square method based on the first sample pixel value, the second sample pixel value and the sample temperature value.

[0158] In actual applications, other ways can also be used to fit the polynomial coefficients, and the embodiments of the present application are only exemplified by the least square method, and do not constitute a limitation on the fitting algorithms / ways that can be used by the present application.

[0159] Further, after the polynomial coefficients are determined, the polynomial coefficients are substituted into the polynomial function, and the temperature compensation function used in the embodiments of the present application can be obtained.

[0160] As an example, based on the polynomial shown in the above-mentioned formula (1), if the polynomial coefficients fitted and solved are b0=0.5, b1=3, b2=1.2 and b3=0.8, the temperature compensation function can be represented by the following formula (2). a0=0.5+3·a·T+1.2·a 2 ·T 2 +0.8·a 3 ·T 3 (2)

[0161] For the temperature compensation function, when calculating the target pixel value of the target pixel point, the original pixel value of the target pixel point is taken as a, and the original temperature value corresponding to the target pixel point is taken as T into the above formula (2), so that the target pixel value a0 of the target pixel point can be calculated.

[0162] It should be understood that the above formulas (1) and (2) essentially describe the same calculation relationship, and the difference is only that the above formula (1) is applied to the sample image, that is, the polynomial coefficient solving stage; and the above formula (2) is applied in the actual correction process after the sample image is collected and the polynomial coefficient is solved, that is, the application process of the actual image correction.

[0163] In some embodiments, when generating the temperature compensation function corresponding to the X-ray detector, the corresponding temperature compensation function can be generated regionally based on the region where the temperature sensor is deployed. That is, for each region of the X-ray detector circuit board (or the photosensitive element array), the corresponding temperature compensation function of each region is generated by referring to the above-mentioned ways of acquiring the sample image and fitting the polynomial coefficients.

[0164] Based on this, in a possible implementation, the original image includes a plurality of image regions, and each image region corresponds to a temperature compensation function. The implementation process of the above step 502 can be: determining a target region to which the target pixel point belongs in the original image; and determining the target pixel value of the target pixel point by the temperature compensation function corresponding to the target region based on the original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point.

[0165] Wherein, the number of image regions corresponding to the original image is not limited by the embodiments of the present application, and the number of regions where the temperature sensor is deployed on the X-ray detector is not limited. It should be understood that the number of image regions included in the original image is determined based on the number of regions divided by the X-ray detector when generating the temperature compensation function, and the number is exactly the same.

[0166] In addition, it also needs to be explained that when the above step 502 is executed, for the original image to be corrected, it can correspond to one temperature compensation function, or it can correspond to a plurality of temperature compensation functions regionally, and the number of temperature compensation functions corresponding to one X-ray detector is not limited by the embodiments of the present application. However, when the image correction is executed, the implementation logic of determining the target pixel value of each pixel point in the corresponding region based on each temperature compensation function is similar, regardless of the number of temperature compensation functions corresponding to the original image.

[0167] Step 503: correcting the original image based on the corresponding target pixel value of each pixel point in the original image.

[0168] That is, the original pixel value of each pixel point in the original image is adjusted to the corresponding target pixel value to correct the whole original image, thereby obtaining the corrected image.

[0169] Optionally, in the case that the execution subject of the image correction method is the X-ray detector, the X-ray detector can send the corrected image to the display device for display, thereby facilitating the user (e.g., a doctor) to view.

[0170] Optionally, in the case that the execution subject of the image correction method is the computer device, the computer device can directly display the corrected image, thereby facilitating the user (e.g., a doctor) to view.

[0171] Optionally, after obtaining the corrected image, the execution subject of the above image correction method can also store the corrected image in a database, which is not limited in the embodiments of the present application.

[0172] In summary, for the original image generated by the X-ray detector, for any pixel point in the original image, the present application determines the target pixel value of the pixel point based on the original pixel value of the pixel point and the original temperature value corresponding to the pixel point through the temperature compensation function, and then corrects the original image through the target pixel value of each pixel point. Since the temperature compensation function is used to indicate the relationship between the original pixel value of each pixel point in the original image, the original temperature value corresponding to each pixel point and the target pixel value, the temperature compensation function can correct the deviation caused by temperature change, thereby ensuring the imaging quality of the X-ray detector. Moreover, based on the temperature compensation function, the target pixel value of each pixel point can be quickly and effectively calculated, thereby improving the image correction efficiency.

[0173] FIG. 6 is a structural schematic diagram of an image correction device provided by an embodiment of the present application. The image correction device can be realized by software, hardware or a combination of both to become part or all of the X-ray detector shown in FIG. 1 or part or all of the computer device shown in FIG. 3. Please refer to FIG. 6, the image correction device includes an image acquisition module 601, a pixel value determination module 602 and an image correction module 603.

[0174] The image acquisition module 601 is configured to acquire an original image to be corrected, wherein the original image is an image generated by an X-ray detector.

[0175] The pixel value determination module 602 is configured to determine a target pixel value of a target pixel point based on an original pixel value of the target pixel point and an original temperature value corresponding to the target pixel point by using a temperature compensation function, wherein the target pixel point is any one of pixel points in the original image, the original temperature value is a temperature value of a corresponding point on the X-ray detector at which the target pixel point is located, and the temperature compensation function is used to indicate a relationship among the original pixel value of each pixel point in the original image, the original temperature value corresponding to each pixel point, and the target pixel value.

[0176] The image correction module 603 is configured to correct the original image based on the corresponding target pixel value of each pixel point in the original image.

[0177] Optionally, the image correction apparatus further includes:

[0178] The sample acquisition module is configured to acquire a first sample image, a plurality of second sample images, and a polynomial function with unknown polynomial coefficients, the first sample image is an image generated by the X-ray detector at a reference temperature point, the plurality of second sample images are images respectively generated by the X-ray detector at a plurality of temperature sampling points, and the temperature values of the reference temperature point and the plurality of temperature sampling points are different.

[0179] The function determination module is configured to determine the polynomial coefficients based on the first sample image and the plurality of second sample images, and determine the polynomial function with known polynomial coefficients as the temperature compensation function.

[0180] Optionally, the independent variable in the polynomial function is a second sample pixel value and a sample temperature value, the dependent variable in the polynomial function is a first sample pixel value, and the first sample pixel value and the second sample pixel value correspond to the same pixel point.

[0181] The first sample pixel value is a pixel value of a corresponding pixel point in the first sample image.

[0182] Optionally, the function determination module is specifically configured to:

[0183] The polynomial coefficients are fitted by using a least square method based on the first sample pixel value, the second sample pixel value, and the sample temperature value.

[0184] Optionally, the original image includes a plurality of image regions, and each image region corresponds to a temperature compensation function; and the pixel value determination module 602 includes:

[0185] The first determination unit is configured to determine a target region to which the target pixel point belongs in the original image.

[0186] The second determining unit is configured to determine the target pixel value of the target pixel point based on the original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point, and the temperature compensation function corresponding to the target region.

[0187] Optionally, the image correction device further comprises:

[0188] The coefficient obtaining module is configured to obtain the bias correction coefficient corresponding to the X-ray detector.

[0189] The image correction module 603 is further configured to correct the original image based on the bias correction coefficient.

[0190] Optionally, the image correction device further comprises:

[0191] The coefficient obtaining module is configured to obtain the gain correction coefficient corresponding to the X-ray detector.

[0192] The image correction module 603 is further configured to correct the original image based on the gain correction coefficient.

[0193] In summary, in the embodiments of the present application, for the original image generated by the X-ray detector, for any one pixel point in the original image, the image correction device can determine the target pixel value of the pixel point based on the original pixel value of the pixel point and the original temperature value corresponding to the pixel point through the temperature compensation function, and then correct the original image through the target pixel value of each pixel point. Since the temperature compensation function is used to indicate the relationship between the original pixel value of each pixel point in the original image, the original temperature value corresponding to each pixel point and the target pixel value, therefore, the temperature compensation function can correct the deviation caused by temperature change, thereby ensuring the imaging quality of the X-ray detector. Moreover, based on the temperature compensation function, the target pixel value of each pixel point can be quickly and effectively calculated, thereby improving the image correction efficiency.

[0194] It should be noted that: the image correction device provided in the above embodiments is only exemplified by the division of the above functional modules when correcting the original image. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the image correction device and the image correction method provided in the above embodiments belong to the same concept, and the specific implementation process is described in detail in the method embodiments, which will not be repeated here.

[0195] In some embodiments, a computer readable storage medium is also provided, and the computer readable storage medium stores a computer program which, when executed by a processor, implements the steps of the image correction method in the above embodiments. For example, the computer readable storage medium can be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0196] It is worth noting that the computer readable storage medium mentioned in the embodiments of the present application can be a non-volatile storage medium, in other words, can be a non-transitory storage medium.

[0197] It should be understood that all or part of the steps of the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions, which can be stored in the above computer readable storage medium.

[0198] That is, in some embodiments, a computer program product containing computer instructions is also provided, which, when running on a processor, causes the processor to perform the steps of the image correction method in the above embodiments.

[0199] It should be understood that "at least one" mentioned herein refers to one or more, and "multiple" refers to two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; "and / or" in this paper is only a description of the association between the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist together, and B exists alone. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, "first", "second" and the like are used to distinguish the same items or similar items with basically the same function and role in the embodiments of the present application. Those skilled in the art can understand that "first", "second" and the like do not limit the quantity and execution order, and "first", "second" and the like do not necessarily mean different.

[0200] It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0201] The above describes the embodiments provided by the present application, and is not used to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An image correction device, characterized in that, The device includes: An image acquisition module is used to acquire the original image to be corrected, wherein the original image is an image generated by an X-ray detector; A pixel value determination module is used to determine the target pixel value of the target pixel point based on the original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point through a temperature compensation function. Wherein, the target pixel is any pixel in the original image, the original temperature value is the temperature value of the target pixel at the corresponding point on the X-ray detector, and the temperature compensation function is used to indicate the relationship between the original pixel value of each pixel in the original image, the original temperature value corresponding to each pixel, and the target pixel value; The image correction module is used to correct the original image based on the target pixel value corresponding to each pixel in the original image.

2. The apparatus as claimed in claim 1, characterized in that, The device further includes: The sample acquisition module is used to acquire a first sample image, multiple second sample images, and a polynomial function with unknown polynomial coefficients. The first sample image is an image generated by the X-ray detector at a reference temperature point, and the multiple second sample images are images generated by the X-ray detector at multiple temperature sampling points respectively. The temperature values ​​of the reference temperature point and the multiple temperature sampling points are different. The function determination module is used to determine the polynomial coefficients based on the first sample image and the plurality of second sample images, and to determine the polynomial function with known polynomial coefficients as the temperature compensation function.

3. The apparatus as described in claim 2, characterized in that, The independent variables in the polynomial function are the second sample pixel value and the sample temperature value, and the dependent variable in the polynomial function is the first sample pixel value, wherein the first sample pixel value and the second sample pixel value correspond to the same pixel point; Wherein, the second sample pixel value is the pixel value of any pixel in the second sample image, the sample temperature value is the temperature value of the temperature sampling point corresponding to the second sample image, and the first sample pixel value is the pixel value of the corresponding pixel in the first sample image.

4. The apparatus as described in claim 3, characterized in that, The function determination module is also used for: Based on the first sample pixel value, the second sample pixel value, and the sample temperature value, the polynomial coefficients are obtained by fitting using the least squares method.

5. The apparatus according to any one of claims 1-4, characterized in that, The original image includes multiple image regions, and each image region corresponds to a temperature compensation function; The pixel value determination module includes: The first determining unit is used to determine the target region to which the target pixel belongs in the original image; The second determining unit is used to determine the target pixel value of the target pixel point based on the original pixel value of the target pixel point and the original temperature value corresponding to the target pixel point, through a temperature compensation function corresponding to the target region.

6. The apparatus according to any one of claims 1-4, characterized in that, The device further includes: The coefficient acquisition module is used to acquire the offset correction coefficient corresponding to the X-ray detector. The image correction module is also used to correct the original image based on the bias correction coefficient.

7. The apparatus according to any one of claims 1-4, characterized in that, The device further includes: The coefficient acquisition module is used to acquire the gain correction coefficient corresponding to the X-ray detector; The image correction module is also used to correct the original image based on the gain correction coefficient.

8. An image correction method, characterized in that, The method includes: Acquire the original image to be corrected, which is an image generated by an X-ray detector; Based on the original pixel value of the target pixel and the original temperature value corresponding to the target pixel, the target pixel value is determined by a temperature compensation function. Wherein, the target pixel is any pixel in the original image, the original temperature value is the temperature value of the target pixel at the corresponding point on the X-ray detector, and the temperature compensation function is used to indicate the relationship between the original pixel value of each pixel in the original image, the original temperature value corresponding to each pixel, and the target pixel value; The original image is corrected based on the target pixel value corresponding to each pixel in the original image.

9. The method as described in claim 8, characterized in that, Before determining the target pixel value of the target pixel using a temperature compensation function based on the original pixel value of the target pixel and the original temperature value corresponding to the target pixel, the method further includes: Acquire a first sample image, multiple second sample images, and a polynomial function with unknown polynomial coefficients. The first sample image is an image generated by the X-ray detector at a reference temperature point, and the multiple second sample images are images generated by the X-ray detector at multiple temperature sampling points, respectively. The temperature values ​​of the reference temperature point and the multiple temperature sampling points are different. Based on the first sample image and the plurality of second sample images, the polynomial coefficients are determined, and the polynomial function with known polynomial coefficients is determined as the temperature compensation function.

10. The method as described in claim 8 or 9, characterized in that, The original image includes multiple image regions, and each image region corresponds to a temperature compensation function; The determination of the target pixel value based on the original pixel value of the target pixel and the original temperature value corresponding to the target pixel, using a temperature compensation function, includes: Determine the target region to which the target pixel belongs in the original image; Based on the original pixel value of the target pixel and the original temperature value corresponding to the target pixel, the target pixel value is determined by the temperature compensation function corresponding to the target region.

11. An X-ray detector, characterized in that, The X-ray detector includes an image generation device, at least one temperature sensor, a memory, and a processor; The image generating device is used to convert the received X-rays into electrical signals and generate an original image based on the electrical signals; The at least one temperature sensor is used to collect the original temperature value corresponding to each pixel in the original image. The original temperature value is the temperature value of each pixel at the corresponding point on the X-ray detector. The memory is used to store a computer program, and the processor is used to execute the computer program to implement the image correction method according to any one of claims 8-10.

12. A computer device, characterized in that, The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program to implement the image correction method according to any one of claims 8-10.

13. An image correction system, characterized in that, The system includes an X-ray detector and an image correction device; The X-ray detector includes an image generating device and at least one temperature sensor. The image generating device is used to convert the received X-rays into electrical signals and generate an original image based on the electrical signals. The at least one temperature sensor is used to collect the original temperature value corresponding to each pixel in the original image. The original temperature value is the temperature value of each pixel at the corresponding point on the X-ray detector. The image correction device is used to perform the image correction method according to any one of claims 8-10 based on the original image and the original temperature value corresponding to each pixel in the original image.

14. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the image correction method according to any one of claims 8-10.

15. A computer program product, characterized in that, The computer program product stores computer instructions, which, when executed by a processor, implement the image correction method according to any one of claims 8-10.

Citation Information

Patent Citations

  • Image correction method and device

    CN112393804A

  • Image acquisition correction system and method

    CN115205090A

  • Image generation method and device, electronic equipment and storage medium

    CN116128770A

  • Image correction method and related device

    CN119006293A

  • Temperature correction system and method for x-ray detector

    US20160306056A1