Data correction method, device, computer equipment, storage medium and program product
By calculating the three-dimensional coordinates of the detector pixel unit and the focus coordinates of the ray emission device, and calculating the cosine correction data, the problem of pixel response in the CT device is solved, and a more accurate correction effect is achieved, reducing noise and pseudo-in-image in the image is image quality improved.
Patent Information
- Application Number
- CN202111594782.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2041-12-23
AI Technical Summary
The photon counting detector has uneven response between pixels in the CT device, resulting in artifacts in the reconstruction image, and the traditional flat-field correction method has poor effect.
By obtaining the three-dimensional coordinates of the detector pixel unit and the focus coordinates of the ray emitting device, cosine correction data is calculated, the response data to be corrected is determined, and the detector pixel unit is corrected according to the correction coefficient to improve the response uniformity.
The response uniformity of the detector pixel units is significantly improved, noise and artifacts in the reconstructed image are reduced, and image quality is improved.
Smart Images

Figure CN114469151B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of medical data processing, and in particular to a data correction method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] Computed Tomography (CT) equipment is a commonly used imaging detection equipment in scientific research institutions or hospitals. With the development of science and technology, photon counting detectors are gradually widely used in CT equipment. However, photon counting detectors have the problem of uneven response between pixels, which will cause artifacts in the reconstructed image.
[0003] In conventional technology, the response data of the detector pixel unit is corrected by using the flat field correction method to improve the response uniformity of the detector pixel unit, thereby eliminating artifacts in the reconstructed image. However, the flat field correction has a poor effect on improving the response uniformity of the detector. Summary of the invention
[0004] Based on this, it is necessary to provide a data method, device, computer equipment, computer-readable storage medium and computer program product that have a better effect on improving the response uniformity of detector pixel units in response to the above technical problems.
[0005] In a first aspect, the present application provides a data correction method, which is applied to a medical scanning device. The medical scanning device system includes a ray emitting device and a detector. The detector includes a plurality of detector pixel units. The data correction method includes:
[0006] Obtaining the three-dimensional coordinates of the detector pixel unit, and calculating the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device;
[0007] Determine the response data to be corrected of the detector, and use the cosine correction data to correct the response data to obtain the target data;
[0008] The correction coefficient corresponding to the detector pixel unit is determined according to the target data, and the response data of the object to be detected is corrected according to the correction coefficient.
[0009] In one embodiment, determining the correction coefficient corresponding to the detector pixel unit according to the target data includes:
[0010] For each row of detector pixel units of the detector in a preset direction, calculating the mean of the target data corresponding to the detector pixel units, and using the mean as the correction data of the detector pixel units;
[0011] The correction coefficients are determined based on the correction data of all detector pixel units.
[0012] In one embodiment, obtaining the three-dimensional coordinates of the detector pixel unit includes:
[0013] Acquire a projection image of the test phantom on the detector;
[0014] According to the projection image, determine the response center point of the detector;
[0015] The three-dimensional coordinates of the detector pixel unit are determined according to the distance between the response center point and the detector pixel unit and the distance between the focus of the ray emitting device and the response center point.
[0016] In one embodiment, calculating cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device includes:
[0017] For each detector pixel unit, the cosine of the angle between the first line and the second line is calculated according to the three-dimensional coordinates and focal coordinates of the detector pixel unit to obtain cosine correction data; the first line refers to the line between the detector pixel unit and the focus of the ray emitting device, the second line is the line between the focus of the ray emitting device and the vertical point on the detector, and the second line is perpendicular to the detector.
[0018] In one embodiment, the vertical point is the response center point.
[0019] In one embodiment, determining the response data to be corrected of the detector includes:
[0020] Acquire phantom data and air data, wherein the phantom data is the response data of the detector when a test phantom is set between the ray emitting device and the detector, and the air data is the response data of the detector when no test phantom is set between the ray emitting device and the detector;
[0021] The response data to be corrected are determined according to the air data and the phantom data.
[0022] In a second aspect, an embodiment of the present application provides a data correction device, the device comprising:
[0023] An acquisition module, used for acquiring the three-dimensional coordinates of the detector pixel unit, and calculating the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device;
[0024] A determination module, used for determining the response data to be corrected of the detector, and correcting the response data to be corrected using the cosine correction data to obtain target data;
[0025] The correction module is used to determine the correction coefficient corresponding to the detector pixel unit according to the target data; and correct the response data of the object to be detected according to the correction coefficient.
[0026] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method provided in the above embodiment are implemented.
[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method provided in the above embodiment are implemented.
[0028] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of the method provided in the above embodiment when the computer program is executed by a processor.
[0029] In the above-mentioned data correction method, device, computer equipment, storage medium and computer program product, the data correction method obtains the three-dimensional coordinates of the detector pixel unit, calculates the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device; determines the response data to be corrected of the detector, uses the cosine correction data to correct the response data to be corrected, and obtains the target data; determines the correction coefficient corresponding to the detector pixel unit according to the target data, and corrects the response data of the object to be detected according to the correction coefficient. The data correction method provided in this embodiment can obtain the correction coefficient for correcting the non-uniformity of the detector pixel unit by correcting the target data after the response data to be corrected according to the determined cosine correction data. The correction coefficient can realize more accurate correction of the response data of the object to be detected, thereby improving the effect of correcting the non-uniformity of the detector pixel unit, and further enabling the reconstructed image of the object to be detected to have lower noise and fewer artifacts. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A diagram showing an application environment of a data correction method in an embodiment;
[0031] Figure 2 is a schematic structural diagram of a ray emitting device in one embodiment;
[0032] Figure 3 A schematic flow chart of the steps of a data correction method in one embodiment;
[0033] Figure 4 is a schematic diagram of the row direction and channel direction of a detector pixel unit in one embodiment;
[0034] Figure 5A schematic diagram of a cosine correction matrix provided for one embodiment;
[0035] Figure 6 is a flow chart of steps of a data correction method in another embodiment;
[0036] Figure 7 is a flow chart of steps of a data correction method in another embodiment;
[0037] Figure 8 is a flow chart of steps of a data correction method in another embodiment;
[0038] Fig. 9 A schematic diagram of response data to be corrected after correction provided by an embodiment;
[0039] Fig.10 A schematic diagram of response data to be corrected after correction is provided in another embodiment;
[0040] Fig.11 A sinusoidal diagram of water film response data before correction provided by an embodiment;
[0041] Fig.12 A sinusoidal diagram after correction of water film response data provided by another embodiment;
[0042] Fig.13 A schematic diagram of the structure of a data correction device provided in one embodiment of the present application;
[0043] Fig.14 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The data correction method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown, the application environment includes a terminal 100 and a medical scanning device 200. The terminal 100 can communicate with the medical scanning device 200 through a network. The terminal 100 can be, but is not limited to, various personal computers, laptop computers, and tablet computers. The medical scanning device 200 can be, but is not limited to, a CT (Computed Tomography) device and a PET (Positron Emission Computed Tomography)-CT device. The structure of the medical scanning device 102 is as follows: Figure 2 As shown, the medical scanning device 200 includes a ray emitting device 201 and a detector 202. The ray emitting device 201 may be an X-ray emitting device, such as an X-ray tube. The detector 202 is composed of a whole piece of semiconductor crystal material and a plurality of detector pixel units, each of which may include an application specific integrated circuit (ASIC), which may be composed of a charge sensitive preamplifier, a pulse shaper, a comparator, and a digital counter. The ray emitting device 201 is used to emit rays through the focus 203 of the ray emitting device, and the rays can form a projection of the object to be scanned on the detector 202 after passing through the object to be scanned in the medical scanning device 200. The disclosed embodiment does not limit the type and structure of the ray emitting device 201 and the detector 202, as long as their functions can be achieved.
[0046] In one embodiment, Figure 3 As shown, a data correction method is provided, which is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:
[0047] Step 300: Acquire the three-dimensional coordinates of the detector pixel unit, and calculate the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device.
[0048] The three-dimensional coordinates of the detector pixel unit may refer to the three-dimensional coordinates of the detector pixel unit on the detector determined with the rotation center as the coordinate origin; the focal coordinates of the ray emitting device are the three-dimensional coordinates of the focal point determined with the rotation center as the coordinate origin. The rotation center refers to the center of the ray emitting device and the detector when they rotate in a circle around the detection object, and the rotation center is a virtual point. Specifically, when the medical scanning device is a CT device, the rotation center may refer to a point on the aperture centerline of the CT device.
[0049] The detector includes a plurality of detector pixel units, and the terminal can obtain the three-dimensional coordinates of each detector pixel unit and the focal coordinates of the ray emitting device, and calculate the cosine correction data between the three-dimensional coordinates of each detector pixel unit and the focal coordinates of the ray emitting device according to the three-dimensional coordinates of each detector pixel unit and the focal coordinates of the ray emitting device. A cosine correction data can be calculated for each detector pixel unit, and a plurality of cosine correction data can be obtained for the plurality of detector pixel units on the detector. This embodiment does not limit the specific process of calculating the cosine correction data, as long as its function can be achieved.
[0050] In an optional embodiment, the plurality of detector pixel units on the detector may be arranged in a preset manner, for example, the plurality of detector pixel units are arranged in m rows and n columns, wherein the rows are defined in the row direction of the detector and the columns are defined in the channel direction of the detector. Figure 4 As shown, the row direction of the detector can be the Z-axis direction in the three-dimensional coordinate system where the detector pixel unit is located, and the channel direction of the detector can be the X-direction in the three-dimensional coordinate system where the detector pixel unit is located. Specifically, multiple cosine correction data can be represented in the form of a matrix as S i,j , i = 1, 2 ... m, j = 1, 2 ... n, the rows and columns of the matrix correspond to the rows and columns of the detector pixel units. The matrix of cosine correction data is as follows Figure 5 As shown, Figure 5 Here, Channel refers to the channel direction of the detector, and Slice refers to the row direction of the detector.
[0051] Step 310: determine the response data to be corrected of the detector, and use the cosine correction data to correct the response data to obtain target data.
[0052] The response data to be corrected refers to the response data of each detector pixel unit in the detector after the ray emitted by the ray emitting device is emitted to the detector through the test phantom. The type, structure and material of the test phantom are known. After the terminal obtains the response data to be corrected of the detector, it uses the calculated cosine correction data to correct the response data to be corrected to obtain the corrected data, that is, the target data. This embodiment does not limit the method for determining the response data to be corrected of the detector, as long as its function can be achieved.
[0053] Specifically, the detector's response data to be corrected can be represented by a matrix, which can be expressed as M i,j , i = 1, 2 ... m, j = 1, 2 ... n, the terminal can multiply the cosine correction data (in matrix form) with the response data to be corrected (multiply the elements at corresponding positions in the matrix) to obtain the target data, then the target data B i,jIt can be expressed as:
[0054] Step 320: Determine a correction coefficient corresponding to the detector pixel unit according to the target data, and correct the response data of the object to be detected according to the correction coefficient.
[0055] The response data of the object to be detected refers to the response data of each detector pixel unit in the detector after the ray emitted by the ray emitting device passes through the object to be detected and is emitted to the detector. After obtaining the target data, the terminal determines the correction coefficient when correcting the response data of the detector pixel unit according to the target data, and the response data of the object to be detected can be corrected using the correction coefficient. This embodiment does not limit the specific method of determining the correction coefficient, as long as its function can be achieved.
[0056] The data correction method provided in the embodiment of the present application obtains the three-dimensional coordinates of the detector pixel unit, calculates the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device; determines the response data to be corrected of the detector, uses the cosine correction data to correct the response data to be corrected, and obtains the target data; determines the correction coefficient corresponding to the detector pixel unit according to the target data, and corrects the response data of the object to be detected according to the correction coefficient. The data correction method provided in the embodiment can obtain the correction coefficient for correcting the non-uniformity of the detector pixel unit by correcting the target data after the response data to be corrected according to the determined cosine correction data. The correction coefficient can realize more accurate correction of the response data of the object to be detected, thereby improving the effect of correcting the non-uniformity of the detector pixel unit, and further enabling the reconstructed image of the object to be detected to have lower noise and fewer artifacts.
[0057] In one embodiment, Figure 6 As shown, a possible implementation method involves determining the correction coefficient corresponding to the detector pixel unit according to the target data, and the steps include:
[0058] Step 600 : For each row of detector pixel units of the detector in a preset direction, calculate the average of the target data corresponding to the detector pixel units, and use the average as the correction data of the detector pixel units.
[0059] The preset direction of the detector may refer to the row direction of the detector or the channel direction of the detector. If the preset direction is the row direction, the terminal calculates the mean of the target data corresponding to all the detector pixel units in each row of the detector pixel units in the row direction, and uses the mean as the correction data for the row of detector pixel units. Specifically, the correction data corresponding to the i-th row of detector pixel units is It can be expressed as
[0060] Step 610: Determine a correction coefficient based on the correction data of all detector pixel units.
[0061] The correction coefficient refers to the coefficient corresponding to the correction data obtained after the response data of the detector pixel unit is corrected. Specifically, after obtaining the correction data of all the detector pixel units in the detector, the terminal determines the correction coefficient. The correction coefficient can be determined according to the change relationship of the non-uniformity of the detector pixel unit.
[0062] The method for determining the correction coefficient provided in this embodiment is simple and easy to understand, quick to calculate, and easy to implement.
[0063] In an optional embodiment, assuming that the non-uniformity of the detector pixel unit changes linearly, the target data of the detector pixel unit is linearly mapped to the correction data, and the result is: Among them, g i,j and b i,j The correction coefficient can be obtained based on the formula, the target data and the correction data.
[0064] In one embodiment, Figure 7 As shown, a possible implementation method for obtaining the three-dimensional coordinates of the detector pixel unit includes the following steps:
[0065] Step 700: Acquire a projection image of the test phantom on the detector.
[0066] The ray emitting device and the detector rotate around the test phantom. Through the rotation of the ray emitting device and the detector, projection images of the test phantom on the detector at different angles can be obtained. Specifically, the projection image can be transmitted to the terminal after being obtained by the detector and stored in the memory of the terminal. The terminal can directly obtain it from the memory when needed. The test phantom can be a homogeneous flat plate or a steel ball phantom. This embodiment does not limit the type and structure of the test phantom, as long as it can achieve its function.
[0067] Step 710: Determine the response center point of the detector according to the projection image.
[0068] After acquiring multiple projection images of the test model on the detector, the terminal can determine the response center point of the detector based on the projection images. Specifically, the terminal analyzes each acquired projection image, determines the center of mass of the projection image, connects the center of mass of all projection images, and solves the center point of the image after all the centers of mass are connected, which is the response center point of the detector.
[0069] Step 720: Determine the three-dimensional coordinates of the detector pixel unit according to the distance between the response center point and the detector pixel unit and the distance between the focus of the ray emitting device and the response center point.
[0070] The distance between the detector pixel units can be pre-stored in the memory of the terminal by the staff, and the terminal can directly obtain it from the memory when needed. After obtaining the response center point of the detector, the terminal can determine the three-dimensional coordinates of the detector pixel unit according to the response center point, the distance between the detector pixel units, and the distance between the focus of the ray emitting device and the response center point.
[0071] Specifically, the three-dimensional coordinates of the detector pixel unit are determined by taking the rotation center of the ray emitting device and the detector as the coordinate origin when the ray emitting device and the detector rotate around the detection object. If the response center point, the rotation center and the focus of the ray emitting device are on the same straight line, the three-dimensional coordinates of the response center point can be obtained according to the focus coordinates of the ray emitting device and the distance between the focus of the ray emitting device and the response center point; the three-dimensional coordinates of the detector pixel unit can be obtained according to the three-dimensional coordinates of the response center point and the distance between the response center point and the nearest detector pixel unit, and the three-dimensional coordinates of other detector pixel units can be determined according to the distance between the detector pixel units.
[0072] The method for determining the three-dimensional coordinates of the detector pixel unit provided in this embodiment is simple to understand and easy to implement.
[0073] In one embodiment, the method involves calculating cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal point coordinates of the ray emitting device, including:
[0074] For each detector pixel unit, the cosine of the angle between the first line and the second line is calculated according to the three-dimensional coordinates and the focal coordinates to obtain cosine correction data; the first line refers to the line between the detector pixel unit and the focus of the ray emitting device, and the second line is the line between the focus of the ray emitting device and the vertical point on the detector, and the second line is perpendicular to the detector.
[0075] The first line and the second line are both virtual lines and do not actually exist. The vertical point is also a virtual point, which is the intersection of the second line and the detector. For a certain detector pixel unit, when calculating the cosine correction data, the terminal first determines the angle between the first line (the line between the detector pixel unit and the focus of the ray emitting device) and the second line (the line between the focus of the ray emitting device and the vertical point on the detector), and calculates the cosine value of the angle, that is, the ratio of the distance between the focus of the ray emitting device and the detector pixel unit to the distance between the focus of the ray emitting device and the vertical point on the detector, and the cosine correction data of the detector pixel unit can be obtained. The cosine correction data of all detector pixel units in the detector can be obtained using the same method.
[0076] The three-dimensional coordinates of the detector pixel unit can be expressed as (x i,j ,y i,j ,z i,j ), the three-dimensional coordinates of the focus of the ray emitting device can be expressed as (0, -y tube ,0), then the distance between the focus of the ray emitting device and the pixel unit of the detector is l i,j It can be expressed as The distance between the focus of the ray emitting device and the vertical point on the detector can be expressed as k i,j , then the cosine correction data can be expressed as cosθ i,j =k ij / l i,j .
[0077] The method for determining and calculating cosine correction data provided in this embodiment is simple and quick, and can improve the efficiency of determining the correction coefficient.
[0078] In one embodiment, the vertical point is the center point of the response.
[0079] In this embodiment, the response center point is the vertical point. Therefore, after determining the response center point, the second connecting line can be directly determined based on the response center point and the focus of the ray emitting device without redetermining the vertical point, which can improve the efficiency of calculating the cosine correction data.
[0080] In one embodiment, Figure 8 As shown, a possible implementation method for obtaining the response data to be corrected of the detector includes the following steps:
[0081] Step 800 , obtaining phantom data and air data, wherein the phantom data is the response data of the detector when a test phantom is set between the ray emitting device and the detector, and the air data is the response data of the detector when no test phantom is set between the ray emitting device and the detector.
[0082] The test phantom can be a homogeneous flat plate of different thicknesses, such as a polymethyl methacrylate plate or an aluminum plate. A test phantom is set between the ray emitting device and the detector. The rays emitted by the ray emitting device are transmitted to the detector after passing through the test phantom. The response data of each detector pixel unit in the detector is recorded as phantom data. The response data of the detector when no test phantom is set between the ray emitting device and the detector, that is, the rays emitted by the ray emitting device are transmitted to the detector through the air. The response data of each detector pixel unit in the detector is recorded as air data. The phantom data of test phantoms of different thicknesses can be expressed as Where t is the thickness of the test phantom. The air data can be expressed as
[0083] Step 810: Determine response data to be corrected according to the air data and the phantom data.
[0084] After obtaining the air data and the phantom data, the terminal calculates the ratio of the air data to the phantom data and calculates the logarithm of the ratio to obtain the response data to be corrected. i,j It can be expressed as
[0085] In this embodiment, the influence of air on the rays emitted by the ray emitting device is taken into account when determining the response data to be corrected, so that the determined response data to be corrected is closer to the actual application scenario, and the correction coefficient determined according to the response data to be corrected will be more accurate, which can improve the correction effect of the response non-uniformity of the detector. In addition, when the test phantom is a homogeneous plate, the influence of the length difference of rays from different directions passing through the homogeneous plate on the final correction coefficient can be eliminated, so that the determined correction coefficient is more correct.
[0086] In a specific embodiment, the test phantom is a 10 mm thick polymethyl methacrylate plate, and after the correction of the response data to be corrected, Fig. 9 When the test model is a 100 mm thick polymethyl methacrylate plate, the response data to be corrected is shown in Fig.10 shown. Fig. 9 and Fig.10 The horizontal axis in is the detector pixel unit, and the vertical axis is the target data after the correction of the response data to be corrected. Line A represents the target data after correction, and line B represents the response data to be corrected before correction. Fig. 9 and Fig.10 It can be seen that the fluctuation of the corrected target data is reduced and the uniformity is greatly improved.
[0087] In a specific embodiment, when the object to be detected is an actual water film, the sine graph before correction of the response data of the actual water film is as follows: Fig.11 As shown, the sine diagram after correcting the actual water film response data using the data correction method provided by this application is as follows Fig.12 As shown. Fig.11 and Fig.12 By comparison, it can be found that the uniformity of the sinusoidal image is improved and the stripe artifacts are reduced after correction.
[0088] In one embodiment, the data correction method provided in the embodiment of the present application can be used to analyze the distribution of the base material composition of the object to be detected. Specifically, assuming that the test phantom uses a thickness of t p A homogeneous plate of polymethyl methacrylate with a thickness of t a The homogeneous aluminum plate is used as the base material. For a ray emitting device with two energy bins (high energy bin H and low energy bin L), the thickness of the test phantom is expressed by the following formula:
[0089]
[0090]
[0091] Among them, B H The data collected by the high-energy chamber of the ray emission device is the target data corrected by the data correction method provided by the present application, B L The data collected by the low-energy chamber of the ray emission device is the target data corrected by the data correction method provided by this application. m0, m1, m3... represent the thickness t p The decomposition coefficients of the polymethyl methacrylate homogeneous plate, n0, n1, n3... represent the thickness t a The decomposition coefficient of the homogeneous aluminum plate. The decomposition coefficient in the above formula can be determined by the above formula and the corrected target data corresponding to the two homogeneous flat plates. Based on the above formula, the decomposition coefficient and the target data of the object to be detected, the distribution of the two base substances in the object to be detected can be obtained.
[0092] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0093] Based on the same inventive concept, the embodiment of the present application also provides a data correction device for implementing the data correction method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data correction device embodiments provided below can refer to the limitations on the data correction method above, and will not be repeated here.
[0094] In one embodiment, Fig.13 As shown, a data correction device 10 is provided, comprising: an acquisition module 11, a determination module 12 and a correction module 13. Among them:
[0095] The acquisition module 11 is used to acquire the three-dimensional coordinates of the detector pixel unit, and calculate the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device.
[0096] The determination module 12 is used to determine the response data to be corrected of the detector, and use the cosine correction data to correct the response data to be corrected to obtain the target data.
[0097] The correction module 13 is used to determine the correction coefficient corresponding to the detector pixel unit according to the target data; and correct the response data of the object to be detected according to the correction coefficient.
[0098] In one embodiment, the correction module 13 includes a calculation unit and a correction coefficient determination unit. The calculation unit is used to calculate the mean of the target data corresponding to the detector pixel unit for each row of detector pixel units in a preset direction of the detector, and use the mean as the correction data of the detector pixel unit; the determination unit is used to determine the correction coefficient according to the correction data of all detector pixel units.
[0099] In one embodiment, the acquisition module 11 includes an acquisition unit, a response center point determination unit and a three-dimensional coordinate determination unit. The acquisition unit is used to acquire the projection image of the test phantom on the detector; the response center point determination unit is used to determine the response center point of the detector according to the projection image; the three-dimensional coordinate determination unit is used to determine the three-dimensional coordinates of the detector pixel unit according to the distance between the response center point and the detector pixel unit and the distance between the focus of the ray emitting device and the response center point.
[0100] In one embodiment, the acquisition module 11 also includes a calculation unit, which is used to calculate the cosine of the angle between the first line and the second line for each detector pixel unit according to the three-dimensional coordinates and focal coordinates of the detector pixel unit to obtain cosine correction data; the first line refers to the line between the detector pixel unit and the focus of the ray emitting device, the second line is the line between the focus of the ray emitting device and the vertical point on the detector, and the second line is perpendicular to the detector.
[0101] In one embodiment, the vertical point is the center point of the response.
[0102] In one embodiment, the determination module 12 is specifically used to obtain phantom data and air data, wherein the phantom data is the response data of the detector when a test phantom is set between the ray emitting device and the detector, and the air data is the response data of the detector when no test phantom is set between the ray emitting device and the detector; and the response data to be corrected is determined based on the air data and the phantom data.
[0103] Each module in the above data correction device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0104] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.14As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data correction method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0105] Those skilled in the art will understand that Fig.14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0106] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0107] Obtaining the three-dimensional coordinates of the detector pixel unit, and calculating the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device;
[0108] Determine the response data to be corrected of the detector, and use the cosine correction data to correct the response data to obtain the target data;
[0109] The correction coefficient corresponding to the detector pixel unit is determined according to the target data, and the response data of the object to be detected is corrected according to the correction coefficient.
[0110] In one embodiment, when the processor executes the computer program, the following steps are further implemented: for each row of detector pixel units of the detector in a preset direction, the mean of the target data corresponding to the detector pixel units is calculated, and the mean is used as the correction data of the detector pixel units; and the correction coefficient is determined according to the correction data of all the detector pixel units.
[0111] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining a projection image of the test model on the detector; determining the response center point of the detector based on the projection image; determining the three-dimensional coordinates of the detector pixel unit based on the distance between the response center point and the detector pixel unit and the distance between the focus of the ray emitting device and the response center point.
[0112] In one embodiment, the processor further implements the following steps when executing the computer program: for each detector pixel unit, the cosine of the angle between the first line and the second line is calculated according to the three-dimensional coordinates and the focal coordinates of the detector pixel unit to obtain cosine correction data; the first line refers to the line between the detector pixel unit and the focus of the ray emitting device, the second line is the line between the focus of the ray emitting device and the vertical point on the detector, and the second line is perpendicular to the detector.
[0113] In one embodiment, the vertical point is the center point of the response.
[0114] In one embodiment, when the processor executes the computer program, the following steps are also implemented: acquiring phantom data and air data, the phantom data being the response data of the detector when a test phantom is set between the ray emitting device and the detector, and the air data being the response data of the detector when no test phantom is set between the ray emitting device and the detector; and determining the response data to be corrected based on the air data and the phantom data.
[0115] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0116] Obtaining the three-dimensional coordinates of the detector pixel unit, and calculating the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device;
[0117] Determine the response data to be corrected of the detector, and use the cosine correction data to correct the response data to obtain the target data;
[0118] The correction coefficient corresponding to the detector pixel unit is determined according to the target data, and the response data of the object to be detected is corrected according to the correction coefficient.
[0119] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: for each row of detector pixel units of the detector in a preset direction, the mean of the target data corresponding to the detector pixel units is calculated, and the mean is used as the correction data of the detector pixel units; and the correction coefficient is determined according to the correction data of all the detector pixel units.
[0120] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a projection image of the test model on the detector; determining the response center point of the detector based on the projection image; determining the three-dimensional coordinates of the detector pixel unit based on the distance between the response center point and the detector pixel unit and the distance between the focus of the ray emitting device and the response center point.
[0121] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: for each detector pixel unit, the cosine of the angle between the first line and the second line is calculated according to the three-dimensional coordinates and the focal coordinates of the detector pixel unit to obtain cosine correction data; the first line is the line between the detector pixel unit and the focus of the ray emitting device, the second line is the line between the focus of the ray emitting device and the vertical point on the detector, and the second line is perpendicular to the detector.
[0122] In one embodiment, the second connecting line is a connecting line between the focus of the ray emitting device and the response center point.
[0123] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: acquiring phantom data and air data, the phantom data being the response data of the detector when a test phantom is set between the ray emitting device and the detector, and the air data being the response data of the detector when no test phantom is set between the ray emitting device and the detector; and determining the response data to be corrected based on the air data and the phantom data.
[0124] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0125] Obtaining the three-dimensional coordinates of the detector pixel unit, and calculating the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device;
[0126] Determine the response data to be corrected of the detector, and use the cosine correction data to correct the response data to obtain the target data;
[0127] The correction coefficient corresponding to the detector pixel unit is determined according to the target data, and the response data of the object to be detected is corrected according to the correction coefficient.
[0128] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: for each row of detector pixel units of the detector in a preset direction, the mean of the target data corresponding to the detector pixel units is calculated, and the mean is used as the correction data of the detector pixel units; and the correction coefficient is determined according to the correction data of all the detector pixel units.
[0129] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a projection image of the test model on the detector; determining the response center point of the detector based on the projection image; determining the three-dimensional coordinates of the detector pixel unit based on the distance between the response center point and the detector pixel unit and the distance between the focus of the ray emitting device and the response center point.
[0130] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: for each detector pixel unit, the cosine of the angle between the first line and the second line is calculated according to the three-dimensional coordinates and the focal coordinates of the detector pixel unit to obtain cosine correction data; the first line is the line between the detector pixel unit and the focus of the ray emitting device, the second line is the line between the focus of the ray emitting device and the vertical point on the detector, and the second line is perpendicular to the detector.
[0131] In one embodiment, the vertical point is the center point of the response.
[0132] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: acquiring phantom data and air data, the phantom data being the response data of the detector when a test phantom is set between the ray emitting device and the detector, and the air data being the response data of the detector when no test phantom is set between the ray emitting device and the detector; and determining the response data to be corrected based on the air data and the phantom data.
[0133] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0134] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0135] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data correction method, applied to a medical scanning device, wherein the medical scanning device comprises a ray emitting device and a detector, wherein the detector comprises a plurality of detector pixel units, characterized in that: The method comprises: Acquire the three-dimensional coordinates of the detector pixel unit, and calculate cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device; Determine the response data to be corrected of the detector, and use the cosine correction data to correct the response data to obtain target data; wherein the response data to be corrected refers to the response data of each detector pixel unit in the detector after the ray emitted by the ray emitting device is emitted to the detector through the test phantom; The correction coefficient corresponding to the detector pixel unit is determined according to the target data, and the response data of the object to be detected is corrected according to the correction coefficient.
2. The method according to claim 1, characterized in that The step of determining the correction coefficient corresponding to the detector pixel unit according to the target data includes: For each row of detector pixel units of the detector in a preset direction, calculating the mean of the target data corresponding to the detector pixel units, and using the mean as the correction data of the detector pixel units; The correction coefficient is determined according to the correction data of all the detector pixel units.
3. The method according to claim 1, characterized in that The obtaining of the three-dimensional coordinates of the detector pixel unit comprises: Acquiring a projection image of the test phantom on the detector; Determining the response center point of the detector according to the projection image; The three-dimensional coordinates of the detector pixel unit are determined according to the response center point, the distance between the detector pixel units, and the distance between the focus of the ray emitting device and the response center point.
4. The method according to claim 3, characterized in that The calculating of cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device comprises: For each of the detector pixel units, the cosine of the angle between a first line and a second line is calculated according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates to obtain the cosine correction data; the first line refers to the line between the detector pixel unit and the focus of the ray emitting device, the second line is the line between the focus of the ray emitting device and the vertical point on the detector, and the second line is perpendicular to the detector.
5. The method according to claim 4, characterized in that The vertical point is the response center point.
6. The method according to claim 1, characterized in that The step of determining the response data to be corrected of the detector comprises: Acquire phantom data and air data, wherein the phantom data is response data of the detector when a test phantom is set between the ray emitting device and the detector, and the air data is response data of the detector when the test phantom is not set between the ray emitting device and the detector; The response data to be corrected is determined according to the air data and the phantom data.
7. A data correction device, characterized in that: The device comprises: An acquisition module, used for acquiring the three-dimensional coordinates of the detector pixel unit, and calculating the cosine correction data according to the three-dimensional coordinates of the detector pixel unit and the focal coordinates of the ray emitting device; A determination module, used to determine the response data to be corrected of the detector, and use the cosine correction data to correct the response data to be corrected to obtain target data; wherein the response data to be corrected refers to the response data of each detector pixel unit in the detector after the ray emitted by the ray emitting device is emitted to the detector through the test phantom; The correction module is used to determine the correction coefficient corresponding to the detector pixel unit according to the target data; and correct the response data of the object to be detected according to the correction coefficient.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
