Image processing methods, apparatus, flat panel detectors, devices and storage media
By introducing a non-light-collecting pixel structure and a grayscale compensation method into the flat panel detector, the boundary line problem was solved, and the accuracy and precision of image detection were improved.
Patent Information
- Application Number
- CN202111662769.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Existing flat panel detectors, when using automatic exposure detection technology, produce obvious demarcation lines on the image, affecting the accuracy of image information and the physician's lesion analysis.
An image processing method is designed to eliminate the boundary line by introducing a first and third pixel that do not receive light in a flat panel detector, and combining the gray values of a first reference image and a second reference image for compensation processing.
It improves the detection accuracy of images, eliminates the influence of boundary lines, and provides high-precision image information that is not limited by environmental changes.
Smart Images

Figure CN116416188B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing. More specifically, it relates to an image processing method, apparatus, flat panel detector, device, and storage medium. Background Technology
[0002] Automatic exposure detection (AED) technology is widely used in X-ray detection systems, especially flat panel detectors (FPDs). The FPD converts X-rays into visible light via a scintillator, photodiodes convert the light signal into an electrical signal, and a matrix of thin-film transistors sequentially reads the electrical signal to a signal processing module for digital signal conversion, compensation, and correction, ultimately outputting a grayscale image. The AED module detects whether exposure has occurred and controls whether the FPD enters signal reading and output mode. Its working principle involves setting a certain threshold for the signal quantity. When the accumulated signal quantity of the FPD exceeds its preset threshold, it is determined that X-ray exposure has occurred, and charge accumulation begins. After completing a preset integration time, the gate signal controls the thin-film transistors to turn on row by row, completing the signal output.
[0003] Currently, the existing AED technology has the following problem: the final image obtained by the flat panel detector using automatic exposure detection technology will have obvious demarcation lines, resulting in inaccurate image information, which will affect the analysis and judgment of the patient's lesions by the hospital physician. Summary of the Invention
[0004] The purpose of this invention is to provide an image processing method, apparatus, flat panel detector, device, and storage medium to solve at least one of the problems existing in the prior art.
[0005] To achieve the above objectives, the present invention adopts the following technical solution:
[0006] The first aspect of the present invention provides an image processing method applied to a flat panel detector, the flat panel detector including a second pixel for light collection and a first pixel and a third pixel located on both sides of the second pixel column direction, wherein the first pixel and the third pixel do not collect light;
[0007] The method includes:
[0008] A first reference value is determined based on a first reference image, wherein the first reference image is generated by the flat panel detector based on a first scan time;
[0009] Acquire a second reference image generated during the second scanning time when the flat panel detector is in automatic exposure detection mode, and determine a second reference value based on the second reference image;
[0010] The image to be processed generated by the flat panel detector is compensated based on the first reference value and the second reference value. The image to be processed includes a dividing line extending along the row direction.
[0011] Furthermore, determining the first reference value based on the first reference image further includes:
[0012] Determine the first average gray value of the first pixel and the second average gray value of the second pixel in the first reference image;
[0013] The first reference value is obtained based on the first average gray value and the second average gray value.
[0014] Furthermore, when the flat panel detector is in automatic exposure detection mode, the second reference image forms the boundary line at the position of the second pixel row when exposure occurs;
[0015] The acquisition of the second reference image generated during the second scanning time when the flat panel detector is in automatic exposure detection mode, and the determination of the second reference value based on the second reference image, further includes:
[0016] Using the boundary line of the second reference image as the partition row, the third average gray value of the first integration region of the partition row toward the first pixel and the fourth average gray value of the second integration region of the partition row toward the third pixel are obtained. The first integration region is formed from the first pixel in the first row to the second pixel corresponding to the partition row in the column direction, and the second integration region is formed from the third pixel in the last row to the second sub-pixel adjacent to the partition row in the column direction. The first integration region and the second integration region do not overlap.
[0017] The second reference value is determined based on the third average gray value and the fourth average gray value.
[0018] Furthermore, the compensation of the image to be processed generated by the flat panel detector based on the first reference value and the second reference value further includes:
[0019] The grayscale compensation value is determined based on the first reference value and the second reference value;
[0020] The image to be processed is compensated based on the grayscale compensation value.
[0021] Furthermore, when the flat panel detector is in automatic exposure detection mode, the boundary line is formed at the position of the second pixel row when exposure occurs in the image to be processed by the flat panel detector.
[0022] The step of compensating the image to be processed according to the grayscale compensation value further includes:
[0023] Using the boundary line of the image to be processed as the partition row, determine the first integration region and the second integration region of the image to be processed, and determine the second pixel that needs to be compensated in the first integration region or the second integration region of the image to be processed.
[0024] The original grayscale value of the second pixel to be compensated is compensated according to the grayscale compensation value, wherein the original grayscale value is the grayscale value of the second pixel to be compensated after a preset integration time after exposure.
[0025] Furthermore, before determining the first reference value based on the first reference image, the method further includes:
[0026] The flat panel detector is calibrated, including gain correction and dark field correction.
[0027] A second aspect of the present invention provides an image processing apparatus for performing the method of the first aspect of the present invention, the apparatus comprising:
[0028] The first reference value determination module is used to generate a first reference image based on a first scan time, and determine a first reference value based on the first reference image;
[0029] The second reference value determination module is used to acquire a second reference image generated during the second scanning time when the flat panel detector is in automatic exposure detection mode, and to determine a second reference value based on the second reference image.
[0030] The image to be processed module is used to compensate the image to be processed generated by the flat panel detector according to the first reference value and the second reference value, wherein the image to be processed includes a dividing line extending along the row direction.
[0031] A third aspect of the present invention provides a flat panel detector, including the image processing apparatus of the second aspect of the present invention.
[0032] Furthermore, the flat panel detector also includes:
[0033] The second pixel used for light collection;
[0034] The first and third pixels are located on either side of the direction of the second pixel column, and the first and third pixels do not receive light.
[0035] Wherein, both the first pixel and the third pixel include: a photodiode and a driving thin-film transistor that drives the photodiode;
[0036] The first pixel is at least one row, and the third pixel is at least one row.
[0037] Furthermore, the first pixel and the third pixel also include: a light-shielding layer covering the photodiode and the driving thin-film transistor, wherein the projection of the light-shielding layer covers the projection of the photodiode and the driving thin-film transistor.
[0038] A fourth aspect of the present invention provides a flat panel detector, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method of the first aspect of the present invention.
[0039] The fifth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that the program, when executed by a processor, implements the method of the first aspect of the present invention.
[0040] The beneficial effects of this invention are as follows:
[0041] The technical solution described in this embodiment of the invention designs the pixel structure of the flat panel detector, obtains the grayscale value of the photodiode during the scanning process under the influence of leakage current using a first reference image as a first reference value, determines the amount of change of the second reference image in AED mode based on the first reference value as a second reference value, and compensates the image to be processed according to the first and second reference values. This can eliminate the boundary lines in the image to be processed. Furthermore, the method of this embodiment is not limited by environmental changes, obtains high-precision image information, and improves detection accuracy. Attached Figure Description
[0042] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0043] Figure 1a The scanning timing diagram of the flat panel detector in non-AED detection mode is shown;
[0044] Figure 1b The scanning timing diagram of the flat panel detector in AED detection mode is shown;
[0045] Figure 2 This diagram illustrates an image with demarcation lines generated by a flat panel detector in AED detection mode.
[0046] Figure 3 A schematic flowchart of an image processing method according to an embodiment of the present invention is shown;
[0047] Figure 4 A schematic diagram of the pixel arrangement structure of a flat panel detector according to an optional embodiment of the present invention is shown;
[0048] Figure 5 An optional embodiment of the present invention is shown. Figure 3 A flowchart illustrating step S2;
[0049] Figure 6 An optional embodiment of the present invention is shown. Figure 3 A flowchart illustrating step S3;
[0050] Figure 7 An optional embodiment of the present invention is shown. Figure 3 A flowchart illustrating step S4 in the middle section;
[0051] Figure 8 An optional embodiment of the present invention is shown. Figure 7 A flowchart illustrating step S42;
[0052] Figure 9 This diagram illustrates a frame structure of an image processing apparatus according to another embodiment of the present invention.
[0053] Figure 10 This diagram illustrates the layer structure of a first pixel or a third pixel according to an optional embodiment of the present invention.
[0054] Figure 11 A schematic diagram of the structure of a computer device according to another embodiment of the present invention is shown. Detailed Implementation
[0055] It should also be noted that in the description of this invention, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0056] In existing technologies, such as Figure 1a As shown, when the flat panel detector does not use AED detection technology for image detection, in the image acquisition mode, the Gate signal will complete the scanning of lines 1 to 3072 within one scanning cycle, which is the first scanning time.
[0057] The process of using AED detection technology with a flat panel detector is as follows: Figure 1bAs shown, when the FPD is not outputting signals, i.e., during the reset phase before image acquisition, it continuously scans the Gate signal to clear residual charge and reset. When no exposure occurs, the Gate signal scans from line 1 at a fixed timing. However, when X-ray exposure occurs, the Gate signal typically scans to a non-fixed line. The AED module determines that exposure has occurred, and the Gate reset action terminates at the current line. For example... Figure 1b In the nth row shown, the Gate signal is no longer transmitted downwards because continuing to transmit it downwards would reset and lose the already acquired photoelectric signal.
[0058] like Figure 1b As shown, when the AED module determines that exposure has occurred (vertical gray bar), the Gate reset action terminates at the nth row of the current scan. After waiting for a preset integration time, for example, 1 second, the flat panel detector enters the image acquisition mode, reads all Gate signals from row 1 to row 3072, and outputs the signals acquired by the photodiodes line by line, thus forming a pattern as shown in the image. Figure 2 The detection image shown has a clear dividing line.
[0059] While existing technologies can reduce the prominence of boundary lines through pre-correction using boundary line templates, they still cannot eliminate them. Through extensive experimentation and research, the inventors have proposed that the main reason boundary lines still exist using boundary line templates is that the environmental conditions during template construction cannot be replicated in actual use. These conditions primarily include temperature and humidity. Changes in temperature and humidity significantly affect the characteristics of semiconductor devices, causing the actual image boundary lines to far exceed the coverage of the pre-correction template.
[0060] The inventors further investigated the cause of the boundary line and proposed that: during the operation of the photodiode, leakage current continuously affects the grayscale of the image. In the image acquisition mode, during the line-by-line scanning of the Gate signal, the line terminated by the Gate signal interrupted during exposure (e.g.,...) Figure 1b The first integration time of leakage current accumulation before the Gate termination row and the second integration time of leakage current accumulation after the Gate termination row are different. For example, rows 1 to n enter the image acquisition mode after the Gate signal is scanned and reset, but rows (n+1) to 3072 do not complete the reset and enter the image acquisition mode. Therefore, there is a difference between the leakage current accumulated by the photodiode in the integration time of rows 1 to n and the leakage current accumulated in the integration time of rows (n+1) to 3072. This difference makes the detection image ultimately show a clear dividing line at the position of row n.
[0061] Therefore, based on the above research and findings, this invention proposes an image processing method, apparatus, flat panel detector, computer device, and storage medium to solve the above problems.
[0062] like Figure 3 As shown, the first embodiment of the present invention proposes an image processing method, which is applied to... Figure 4 The flat panel detector shown includes a second pixel 52 for light collection and a first pixel 51 and a third pixel 53 located on either side of the column direction of the second pixel 52. The first pixel 51 and the third pixel 53 do not collect light; that is, in this embodiment, the first pixel and the third pixel do not perform photoelectric conversion, while the second pixel is used for photoelectric conversion. For example, the first pixel 51 and the third pixel 53 in this embodiment can be in multiple rows, and are not limited to this. Figure 4 The line shown. (As shown in the image) Figure 4 As shown, the first pixel 51, the second pixel 52, and the third pixel 53 are all connected to the same gate signal line, the same bias voltage line, and the same signal output line, ensuring that the first pixel and the third pixel have the same functions and connection relationships as the second pixel except for the light-collecting function.
[0063] When a flat panel detector is applied to this pixel arrangement structure, the Gate signal starts scanning from the first pixel of the first row, and a scanning cycle, or one working integration time, is completed when the third pixel of the last row is finished.
[0064] like Figure 3 As shown, the method of this embodiment of the invention includes:
[0065] S2. Determine a first reference value based on a first reference image, wherein the first reference image is generated by the flat panel detector based on a first scan time.
[0066] S3. Obtain the second reference image generated during the second scanning time when the flat panel detector is in automatic exposure detection mode, and determine the second reference value based on the second reference image.
[0067] S4. The image to be processed generated by the flat panel detector is compensated according to the first reference value and the second reference value. The image to be processed includes a dividing line extending along the row direction.
[0068] The method of this embodiment designs the pixel structure of the flat panel detector, obtains the grayscale value under the influence of leakage current during the scanning process from the first reference image as the first reference value, determines the amount of change of the second reference image in AED mode based on the first reference value as the second reference value, and compensates the image to be processed according to the first and second reference values. This can eliminate the boundary lines in the image to be processed. Furthermore, the method of this embodiment is not limited by environmental changes, obtains high-precision image information, and improves detection accuracy.
[0069] The process of an embodiment of the present invention will now be described by way of example.
[0070] S2. Determine a first reference value based on a first reference image, wherein the first reference image is generated by the flat panel detector based on a first scan time.
[0071] In this embodiment, a flat panel detector is used. Figure 4 Taking the pixel arrangement structure shown as an example, the flat panel detector scans line by line from the first pixel 51 in the first row to the third pixel 53 in the last row, thereby generating a first reference image. In this embodiment, the first pixel 51 and the third pixel 53 have the same function as the second pixel 52 in the normal lighting area, except that they do not perform photoelectric conversion. Since the photodiode corresponding to the first pixel does not perform photoelectric conversion, it only generates leakage current under reverse bias during the integration time, thereby generating a first reference value that affects the grayscale of the image to be processed. This first reference value is consistent with the grayscale value of the second pixel in the dark state (the second pixel in the dark state also does not need photoelectric conversion). Therefore, the first reference value in this embodiment can be used as a reference value.
[0072] The second pixel 52 is a normal light-receiving area. The photodiode corresponding to the second pixel not only generates leakage current but also needs to perform photoelectric conversion. This design ensures that the first pixel and the third pixel can be coupled with capacitor charging and discharging, so that the leakage current has the same effect on the first pixel 51, the third pixel 53 and the second pixel 52. By analyzing the grayscale difference between the first pixel and the third pixel in the first reference image, it is possible to determine the effect of the leakage current on the image grayscale value in different scanning stages when no exposure is performed, such as the scanning stage of the first pixel and the scanning stage of the third pixel.
[0073] In an optional embodiment, such as Figure 5 As shown, step S2 further includes:
[0074] S21. Determine the first average gray value of the first pixel and the second average gray value of the third pixel in the first reference image.
[0075] For example, such as Figure 1b As shown, the first scanning time in this embodiment is the integration time from the first pixel in the first row to the third pixel in the 3072nd row in the image acquisition mode. The acquired image is used as the first reference image, and the first average gray value of the first pixel in the first reference image is calculated.
[0076] In one embodiment, the number of rows of the first pixel in the column direction is at least one row. That is, this embodiment does not limit the number of rows of the first pixel. Based on the overall size of the flat panel detector as a design principle, multiple rows of the first pixel can be set while ensuring the normal function of the flat panel detector. This increases the amount of data to better eliminate the impact of uniformity differences caused by the manufacturing process, thereby improving the accuracy of the first average grayscale value Top_avg of the first pixel. For example, as... Figure 4 As shown, the first pixel is set above the second pixel. The number of first pixels is 1 row. The gray values of the first pixels in this row are averaged to obtain the first average gray value Top_avg.
[0077] Similarly, this embodiment does not limit the number of third pixel rows. When there are multiple third pixel rows, the second average gray value Bottom_avg of the third pixel in the image is calculated based on the gray value of the row corresponding to the third pixel in the first reference image. For example, as shown... Figure 4 As shown, the third pixel is set below the second pixel, and there is one row of third pixels. The gray values of the third pixels in this row are averaged to obtain the second average gray value Bottom_avg.
[0078] For example, to further improve the accuracy of the information of the first reference image in this step, embodiments of the present invention may select multiple first reference images. After calculating the first average gray value and the second average gray value of each first reference image, the multiple first average gray values and the multiple second average gray values are averaged respectively to obtain a more accurate first average gray value and second average gray value.
[0079] For example, this step can be performed in the microprocessor unit of the FPD or in the first reference value determination module of the image processing device.
[0080] S22. Obtain the first reference value based on the first average gray value and the second average gray value.
[0081] In a specific example, the relationship between the first reference value, the first average gray value Top_avg of the first pixel, and the third average gray value Bottom_avg of the third pixel is as follows:
[0082] Top_avg–Bottom_avg=reference,
[0083] That is, excluding the influence of photoelectric conversion on grayscale values, in the first reference image formed by the flat panel detector during the first scanning time, the difference between the first average grayscale value corresponding to the first pixel and the second average grayscale value corresponding to the third pixel is only affected by the leakage current of their respective photodiodes. Therefore, this first reference value can be used as a reference base value. Based on this value, the leakage current changes before and after the Gate reset signal interruption caused by exposure can be known, thereby knowing the grayscale value changes in the upper and lower regions of the image boundary line caused by the leakage current change.
[0084] S3. Obtain the second reference image generated during the second scanning time when the flat panel detector is in automatic exposure detection mode, and determine the second reference value based on the second reference image.
[0085] For example, the second scan time and the first scan time are the same value; for instance, both the first scan time and the second scan time are... Figure 1b The diagram shows the integration time for scanning rows 1 to 3072. However, when the flat panel detector is in automatic exposure detection mode, the second integration time from row (n+1) to 3072 is not reset by the gate signal due to exposure, while the first integration time from row 1 to n is reset before exposure. This results in a difference in the current accumulated in the first and second integration times, further causing the second reference image generated by the flat panel detector and the image to be processed for detection to produce the following at the position corresponding to the second pixel row during exposure: Figure 2 The dividing line shown.
[0086] In an optional embodiment, such as Figure 6 As shown, step S3 further includes:
[0087] S31. Divide the second reference image into regions using the boundary line of the second reference image as the dividing line, and obtain the third average gray value of the first integral region of the partition row toward the first pixel and the fourth average gray value of the second integral region of the partition row toward the third pixel.
[0088] In this embodiment, as Figure 1bAs shown, in AED mode, the Gate signal is exposed during the top-to-bottom charge clearing scan, generating a Gate termination line during exposure. After waiting for a preset integration time, it enters the image acquisition mode, where all scan records are read. Due to the exposure, the pixel rows above and below the Gate termination line have different accumulated leakage currents before entering the image acquisition mode. This effect continues until the scan process of lines 1 to 3072 in the image acquisition mode. The second scan time in the image acquisition mode generates two integration time intervals: the first integration time from line 1 above the Gate termination line to the Gate termination line (line n) is 1t, while the second integration time from the next line (line n+1) to the last line 3072 is 2t.
[0089] In image acquisition mode, the flat panel detector reads the scan signals of all rows to generate a second reference image, such as... Figure 2 As shown, the location of the Gate termination line is displayed as a boundary line on the second reference image. In this embodiment, the second pixel line where the flat panel detector is exposed (i.e., the Gate termination line) is located is used as the partition line, that is, the boundary line of the second reference image is used as the partition line, dividing the second reference image into two corresponding regions: the first integration region and the second integration region.
[0090] For the second reference image, the first integration region of the second reference image in this embodiment is from the first pixel in the first row to the second pixel corresponding to the partition row. That is, the first row above the Gate termination row forms the first integration region. It can also be expressed as the area from the row where the boundary line is located up to the first row of the image is the first integration region. Correspondingly, the first integration time of the first integration region is 1t. Further, the third average gray value Top_1t.avg of the first integration time 1t is the gray value of the first pixel and the second pixel of the first integration region under the influence of leakage current before exposure.
[0091] The second integration region is the area formed by the third pixel in the last row along the column direction to the second sub-pixel adjacent to the partition row. That is, the second integration region is formed by the row below the Gate termination row to the third pixel in the last row. It can also be expressed as the area from the row below the dividing line down to the last row of the image is the second integration region. Correspondingly, the second integration time of the second integration region is 2t. Furthermore, the fourth average gray value Bottom_2t.avg of the second integration time 2t is the gray value of the second and third pixels of the second integration region under the influence of leakage current after exposure.
[0092] Because the state of the Gate signal is different before and after exposure, the current accumulated during the first integration time and the current accumulated during the second integration time are not the same during the second scan time in AED mode. This results in different effects of leakage current on the grayscale of the second reference image at different integration times. The first integration region and the second integration region do not overlap, thus forming a boundary line in the exposure mode. This step partitions the image according to the Gate termination line at the time of exposure and obtains the third grayscale value of the first integration region and the fourth grayscale value of the second integration region after partitioning. Based on step S2, the grayscale difference Diff, which is the average of the first pixel in the first integration region and the third pixel in the second integration region, is further calculated and obtained as the second reference value, which is used to prepare for the subsequent calculation of the compensation value offset.
[0093] S32. Determine the second reference value based on the third average gray value and the fourth average gray value.
[0094] In this embodiment, the relationship between the third average grayscale value Top_1t.avg, the fourth grayscale value Bottom_2t.avg, and the second reference value Diff is as follows:
[0095] Top_1t.avg–Bottom_2t.avg=Diff.
[0096] Based on the above discussion, step S2 obtains the gray value difference between the first pixel and the third pixel as the first reference value, and step S3 obtains the average gray value difference between the first pixel in the first integration region and the third pixel in the second integration region as the second reference value. The image to be processed is compensated based on the two reference values.
[0097] For example, step S3 can be performed in the microprocessor unit of the FPD or in the second reference value determination module in the image processing device.
[0098] S4. Compensate the image to be processed generated by the flat panel detector according to the first reference value and the second reference value.
[0099] In an optional embodiment, such as Figure 7 As shown, step S4 further includes:
[0100] S41. Determine the grayscale compensation value based on the first reference value and the second reference value.
[0101] Based on the above steps, step S2 obtains the grayscale value difference between the first pixel and the second pixel as the first reference value. The relationship between the first reference value (reference), the first average grayscale value (Top_avg) of the first pixel, and the third average grayscale value (Bottom_avg) of the third pixel is as follows:
[0102] Top_avg–Bottom_avg=reference,
[0103] In step S3, the partitioning is performed with the Gate termination line at the time of exposure. The difference in grayscale values between the first pixel of the first integration region and the third pixel of the second integration region after partitioning is used as the second reference value. The relationship between the third average grayscale value Top_1t.avg, the fourth grayscale value Bottom_2t.avg, and the second reference value Diff is as follows:
[0104] Top_1t.avg–Bottom_2t.avg=Diff.
[0105] Furthermore, the relationship between the first reference value (reference) and the second reference value (Diff) for obtaining the grayscale compensation value (offset) is as follows:
[0106] Diff –reference = offset.
[0107] In other words, the first reference value indicates the impact of leakage current charge accumulation on the grayscale value of the first and third pixels when there is no exposure. The second reference value indicates the impact of leakage current charge accumulation on the grayscale value of the first pixel in the first integration region and the third pixel in the second integration region in AED mode. The grayscale compensation value formed by subtracting the first and second reference values is the grayscale compensation offset of the first integration region above the Gate termination line and the second integration region below the Gate termination line after exposure at integration times of 1t and 2t, respectively.
[0108] S42. Compensate the image to be processed according to the grayscale compensation value.
[0109] When the flat panel detector is in automatic exposure detection mode, the image to be processed by the flat panel detector generates a boundary line at the position of the second pixel row when exposure occurs. That is, in this embodiment, both the second reference image and the image to be processed form a boundary line.
[0110] For example, in this embodiment, the integration time for the flat panel detector to generate the image to be processed is the same as the first scan time and the second scan time, thereby ensuring compensation accuracy.
[0111] In an optional embodiment, such as Figure 8 As shown, step S42 further includes:
[0112] S421. Using the boundary line of the image to be processed as a partition row, determine the first integration region and the second integration region of the image to be processed, and determine the second pixel that needs to be compensated in the first integration region or the second integration region of the image to be processed.
[0113] In this embodiment, for the image to be processed, in AED mode, the boundary line is formed at the position of the second pixel row when exposure occurs, i.e., the Gate termination row. Using the second pixel row where the flat panel detector is exposed (i.e., the Gate termination row) as the partition row, that is, using the row where the boundary line of the image to be processed is located as the partition row, the second reference image is divided into two corresponding regions: a first integration region and a second integration region.
[0114] For the image to be processed, the first pixel in the first row and the second pixel row where the boundary line is located form the first integration region. The first integration region includes the first pixel that is not exposed to light. Therefore, only the second pixel in the first integration region needs to be compensated. Similarly, the next row after the second pixel row where the boundary line is located and the third pixel in the last row form the second integration region. The second integration region includes the third pixel that is not exposed to light. Therefore, only the third pixel in the second integration region needs to be compensated. When compensating, one of the two integration regions can be selected to improve the compensation efficiency and accuracy.
[0115] S422. The original gray value of the second pixel to be compensated is compensated according to the gray value compensation value, wherein the original gray value is the gray value of the second pixel to be compensated after a preset integration time after exposure.
[0116] For example, the first integration region corresponds to a higher grayscale value, while the second integration region corresponds to a lower grayscale value. In this embodiment, negative compensation can be applied to the first integration region, that is, the grayscale compensation value offset is subtracted from the original grayscale value. In a specific example, the compensation relationship is:
[0117] Top_1t(x,y)'=Top_1t(x,y)+(-offset),
[0118] Wherein, the original grayscale value Top_1t(x,y) is the grayscale value of the second pixel in the first integration region above the Gate termination row after exposure for a preset integration time, and also the grayscale value of the second pixel in the first integration region above the boundary line after exposure for a preset integration time. Top_1t(x,y)' is the compensated grayscale value of the second pixel located in row x and column y. For example, the preset integration time can be 1 second, that is, after 1 second of exposure, it enters... Figure 1b The image acquisition mode shown.
[0119] In another specific example, the gray level corresponding to the second integration region is relatively low. In this embodiment, positive compensation can be applied to the second integration region, that is, the gray level compensation value offset is subtracted from the original gray level value. In a specific example, the compensation relationship is:
[0120] Top_2t(x,y)'=Top_2t(x,y)+(offset),
[0121] Wherein, the original grayscale value Top_2t(x,y) is the grayscale value of the second pixel in the second integration region below the Gate termination row after exposure for a preset integration time, and also the grayscale value of the second pixel in the second integration region below the boundary line after exposure for a preset integration time. Top_2t(x,y)' is the compensated grayscale value of the second pixel located in row x and column y. For example, the preset integration time can be 1 second, that is, after 1 second of exposure, it enters... Figure 1b The image acquisition mode shown.
[0122] For example, step S4 can be performed in the microprocessor unit of the FPD or in the image compensation module of the image processing device.
[0123] In an optional embodiment, such as Figure 3 As shown, before step S2 "determine the first reference value based on the first reference image", the method further includes:
[0124] S1. The flat panel detector is calibrated, including gain correction and dark field correction.
[0125] For example, gain correction in embodiments of the present invention may include obtaining the image to be processed using a denoising template. In another example, dark field correction may employ preset coefficients to perform grayscale correction on the image to be processed, thereby improving the quality of the image to be processed.
[0126] According to the method of this embodiment, there is no need to design a pre-correction template for the image to be processed, which can reduce the cost of making the pre-correction template. The method of this embodiment is also not limited by environmental factors such as temperature and humidity. It can compare the gray value changes of the region above and below the boundary line in the image to be processed generated by the flat panel detector in real time, and compensate the gray value of the second pixel in the first integration region and the second integration region above and below the boundary line, thereby eliminating the boundary line in the image to be processed and improving the image accuracy of the image to be processed.
[0127] Corresponding to the above-described image processing method, another embodiment of the present invention proposes an image processing apparatus, such as... Figure 9 As shown, the device includes:
[0128] The first reference value determination module is used to generate a first reference image based on a first scan time, and determine a first reference value based on the first reference image;
[0129] The second reference value determination module is used to acquire a second reference image generated during the second scanning time when the flat panel detector is in automatic exposure detection mode, and to determine a second reference value based on the second reference image.
[0130] The image to be processed module is used to compensate the image to be processed generated by the flat panel detector according to the first reference value and the second reference value, wherein the image to be processed includes a dividing line extending along the row direction.
[0131] Since the image processing apparatus provided in this embodiment corresponds to the image processing methods provided in the above embodiments, the foregoing embodiments are also applicable to the image processing apparatus provided in this embodiment. The process executed by the image processing apparatus in this embodiment can be referred to the above method embodiments, and will not be described in detail in this embodiment. Those skilled in the art should know that the foregoing embodiments and the beneficial effects thereon are also applicable to this embodiment, therefore, the same parts will not be described again.
[0132] Another embodiment of the present invention provides a flat panel detector, which includes the image processing device of the above embodiments of the present invention.
[0133] In another alternative embodiment, the flat panel detector is applied. Figure 4 The pixel arrangement structure shown includes:
[0134] The second pixel used for light collection;
[0135] The first and third pixels are located on either side of the direction of the second pixel column, and the first and third pixels do not receive light.
[0136] The first pixel is at least one row;
[0137] The third pixel is at least one row.
[0138] In an optional embodiment, the flat panel detector further includes: light-shielding metal layers formed on the first pixel and the third pixel respectively, wherein the projection of the light-shielding metal layers covers the projection of the first pixel and the third pixel. This arrangement avoids photoelectric conversion between the first pixel and the second pixel, thereby ensuring accuracy in image processing.
[0139] In this embodiment, the first pixel and the third pixel have the same layer structure. In an optional embodiment, taking the first pixel as an example, as follows... Figure 10 As shown, the first pixel includes:
[0140] 511 photodiode;
[0141] A driving thin-film transistor 512 drives the photodiode 511;
[0142] A light-shielding layer 513 covers the photodiode 511 and the driving thin-film transistor 512.
[0143] like Figure 10 As shown, the projection of the light-shielding layer 513 covers the photodiode 511 and the driving thin-film transistor 512 to ensure a light-shielding effect. In this embodiment, the bias line is electrically connected to the photodiode, and the light-shielding layer and the bias line can be formed using the same process.
[0144] For example, driving the thin-film transistor 512 includes:
[0145] A gate 5121 is formed on the substrate 6, a gate insulating layer 5123 covers the gate 5122, and an active layer 5124 is formed on the gate insulating layer 5123. The source 5125 and the drain 5126 of the active layer 5124 are electrically connected to each other, wherein one of the source 5125 and the drain 5126 is electrically connected to the photodiode 511 through a connecting line.
[0146] The first pixel also includes:
[0147] An insulating layer 5127 covering the source, drain, and photodiode;
[0148] A planarization layer 5128 is formed on the insulating layer. Exemplarily, in this embodiment, a light-shielding layer 513 is formed on the planarization layer 5128.
[0149] The present invention designs the structure of a flat panel detector, and based on this structural design, combined with the above-mentioned image processing method, it can eliminate the boundary line in AED mode and improve the image accuracy of the image to be processed.
[0150] Another embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following: determining a first reference value based on a first reference image, the first reference image being generated by the flat panel detector based on a first scan time; acquiring a second reference image generated by the flat panel detector in an automatic exposure detection mode during a second scan time, and determining a second reference value based on the second reference image; and compensating a to-be-processed image generated by the flat panel detector based on the first reference value and the second reference value, the to-be-processed image including a dividing line extending along a row direction.
[0151] In practical applications, the computer-readable storage medium can be any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0152] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0153] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0154] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0155] like Figure 11As shown, another embodiment of the present invention provides a structural schematic diagram of a computer device. Figure 11 The computer device 12 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0156] like Figure 11 As shown, the computer device 12 is represented in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0157] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0158] Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0159] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 11 Not shown; usually referred to as a "hard drive"). Although Figure 11 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0160] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.
[0161] Computer device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 12, and / or with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through input / output (I / O) interface 22. Furthermore, computer device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) through network adapter 20. Figure 11 As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be understood that, although... Figure 11 As not shown, it can be used in conjunction with computer device 12 with other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0162] The processor unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing an image processing method provided in an embodiment of the present invention.
[0163] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. For those skilled in the art, other variations or modifications can be made based on the above description. It is impossible to exhaustively list all the implementation methods here. All obvious variations or modifications derived from the technical solutions of the present invention are still within the protection scope of the present invention.
Claims
1. An image processing method, characterized by, The application is applied to a flat panel detector, which comprises second pixels for light collection, and first pixels and third pixels located on both sides of the second pixel column direction respectively, wherein the first pixels and the third pixels do not collect light; The method comprises: determining a first reference value according to a first reference image, wherein the first reference image is generated by the flat panel detector based on a first scanning time; obtaining a second reference image generated by the flat panel detector in a second scanning time in an automatic exposure detection mode, and determining a second reference value according to the second reference image, wherein a demarcation line is formed at a position of a second pixel row of the second reference image when exposure occurs in the automatic exposure detection mode of the flat panel detector; compensating a to-be-processed image generated by the flat panel detector according to the first reference value and the second reference value, wherein the to-be-processed image comprises a demarcation line extending in a row direction; The method further comprises, before determining the first reference value according to the first reference image: determining a first average gray value of the first pixels and a second average gray value of the second pixels in the first reference image; obtaining the first reference value according to the first average gray value and the second average gray value; The method further comprises, before obtaining the second reference image generated by the flat panel detector in the second scanning time in the automatic exposure detection mode and determining the second reference value according to the second reference image: obtaining a third average gray value of a first integral area of the demarcation line of the second reference image towards the first pixels and a fourth average gray value of a second integral area of the demarcation line of the second reference image towards the third pixels, wherein the first integral area is formed by the first pixels located in the first row to the second pixels corresponding to the demarcation line in the column direction, and the second integral area is formed by the third pixels located in the last row to the second pixels adjacent to the demarcation line in the column direction, and the first integral area and the second integral area do not overlap; determining the second reference value according to the third average gray value and the fourth average gray value.
2. The method of claim 1, wherein, The method further comprises, before compensating the to-be-processed image generated by the flat panel detector according to the first reference value and the second reference value: determining a gray compensation value according to the first reference value and the second reference value; compensating the to-be-processed image according to the gray compensation value.
3. The method of claim 2, wherein, In the automatic exposure detection mode of the flat panel detector, a to-be-processed image of the flat panel detector forms the demarcation line at a position of a second pixel row when exposure occurs; The method further comprises, before compensating the to-be-processed image according to the gray compensation value: determining a first integral area and a second integral area of the to-be-processed image by taking the demarcation line of the to-be-processed image as a partition row, and determining second pixels to be compensated in the first integral area or the second integral area of the to-be-processed image; compensating an original gray value of the second pixels to be compensated according to the gray compensation value, wherein the original gray value is a gray value of the second pixels to be compensated after exposure for a preset integral time.
4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises, before determining the first reference value according to the first reference image: The flat panel detector is subjected to a correction process, which includes gain correction and dark field correction.
5. An image processing apparatus that performs the method of any one of claims 1 to 4, characterized by The device comprises; A first reference value determination module configured to generate a first reference image based on a first scanning time, and determine a first reference value based on the first reference image; A second reference value determination module configured to obtain a second reference image generated within a second scanning time when the flat panel detector is in an automatic exposure detection mode, and determine a second reference value based on the second reference image A to-be-processed image compensation module configured to compensate a to-be-processed image generated by the flat panel detector based on the first reference value and the second reference value, the to-be-processed image comprising a boundary line extending along a row direction.
6. A flat panel detector, characterized by, The image processing device of claim 5 is included.
7. The flat panel detector of claim 6, wherein, The flat panel detector further comprises: Second pixels for light collection; First pixels and third pixels respectively located on both sides of the second pixel column direction, the first pixels and the third pixels not collecting light; The first pixels and the third pixels each comprise a photodiode and a driving thin film transistor driving the photodiode; The first pixels are at least one row, and the third pixels are at least one row.
8. The flat panel detector of claim 7, wherein, The first pixels and the third pixels further comprise a light shielding layer covering the photodiode and the driving thin film transistor, a projection of the light shielding layer covering projections of the photodiode and the driving thin film transistor.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the method of any one of claims 1-4.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the method of any one of claims 1-4.
Citation Information
Patent Citations
Flat panel detector, X-ray imaging system and automatic exposure detection method
CN107773259A
Full-field automatic exposure detection method of flat detector and image collecting device
CN111616726A