Image data processing method, isocenter verification method and system for radiotherapy equipment

By acquiring projection data from the detector and performing surface fitting processing, the center point coordinates of light spots and shadows are determined, which solves the problem of low verification efficiency of centers such as radiotherapy equipment in the existing technology, and realizes an automated and efficient verification process.

CN115484869BActive Publication Date: 2024-09-20OUR UNITED CORP +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202080100524.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-07
Publication Date
2024-09-20
Estimated Expiration
2040-08-07

AI Technical Summary

Technical Problem

In the existing technology, the efficiency of verifying the isocenter of radiotherapy equipment through films is low, and manual analysis is required, resulting in low efficiency.

Method used

By acquiring projection data from the detector, generating image data and performing surface fitting processing, the coordinates of the center points of light spots and shadows are determined, and their offsets are calculated to verify the isocenter of the radiotherapy equipment.

Benefits of technology

There is no need to manually analyze the film, which significantly improves the efficiency of verification of radiotherapy equipment and other centers, and achieves automation and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115484869B
    Figure CN115484869B
Patent Text Reader

Abstract

A method for processing image data, a method and system for verifying the isocenter of a radiotherapy device. The method for verifying the isocenter of the radiotherapy device comprises: obtaining at least two projection data generated when the treatment head of the radiotherapy device is located at different positions from a detector, and generating at least two image data based on the at least two projection data; processing each image data using an image data processing method to obtain the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each image data; determining the offset between the isocenter of the radiotherapy device and the treatment isocenter based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each image data, thereby verifying the isocenter of the radiotherapy device. There is no need to verify the isocenter of the radiotherapy device by manually analyzing the film, which effectively improves the verification efficiency of the isocenter of the radiotherapy device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical device technology, and in particular to an image data processing method, an isocenter verification method and system for radiotherapy equipment. Background Art

[0002] Radiotherapy is an important means of treating cancer, and radiotherapy equipment (abbreviated as radiotherapy equipment) is the key medical equipment for carrying out radiotherapy.

[0003] Radiotherapy equipment usually includes: a rotating gantry, and a treatment head located on the rotating gantry. When using radiotherapy equipment to treat patients, it is necessary to ensure that the offset between the isocenter of the radiotherapy equipment and the treatment isocenter is less than a preset value. Otherwise, the radiation beam emitted by the treatment head may not irradiate the target area of ​​the patient, resulting in the radiotherapy equipment being unable to accurately treat the target area of ​​the patient.

[0004] In the related art, when the isocenter of a radiotherapy device needs to be verified, the radiation beam of the treatment head needs to be irradiated on a film to form a focal spot on the film, and the center of the focal spot is the treatment isocenter. It is also necessary to manually analyze the offset between the center of the focal spot and a preset point (the preset point is the isocenter of the radiotherapy device) to verify the isocenter of the radiotherapy device. However, the efficiency of verifying the isocenter of a radiotherapy device through film is currently low. Summary of the invention

[0005] The embodiment of the present application provides an image data processing method, a radiotherapy equipment isocenter verification method and system. The problem of low efficiency of verifying the isocenter of the radiotherapy equipment through film in the prior art can be solved. The technical solution is as follows:

[0006] On the one hand, a method for processing image data is provided, wherein the image data is data generated based on the projection data after a processing device acquires projection data from a detector, and the image data contains a light spot formed after a radiation beam generated by a treatment head of a radiotherapy device is blocked by a radiation blocking body and a shadow located in the light spot; the method comprises:

[0007] Determine initial pixel data, the initial pixel data including: pixel values ​​of each pixel point in the area where the light spot is located;

[0008] Based on the initial pixel data, a first surface fitting model is used to perform surface fitting processing on the light spot to obtain model parameters of the first surface fitting model, wherein the model parameters of the first surface fitting model include: coordinates of a center point of the light spot;

[0009] Based on the first curved surface fitting model and the obtained model parameters, updating the pixel value of each pixel point in the area where the light spot is located to obtain updated pixel data;

[0010] Determine the pixel data of the dark shadow based on the updated pixel data and the initial pixel data, wherein the pixel data of the dark shadow includes: the pixel value of each pixel point in the area where the dark shadow is located;

[0011] Based on the pixel data of the shadow, a second surface fitting model is used to perform surface fitting processing on the shadow to obtain model parameters of the second surface fitting model, and the model parameters of the second surface fitting model include: the coordinates of the center point of the shadow.

[0012] Optionally, based on the initial pixel data, using a first surface fitting model to perform surface fitting processing on the light spot to obtain model parameters of the first surface fitting model includes:

[0013] Based on the initial pixel data, performing at least one fitting process on the light spot until a cutoff condition is reached, and determining the candidate model parameters obtained by the last fitting process as the model parameters of the first curved surface fitting model;

[0014] Wherein, the fitting process includes:

[0015] Based on the initial pixel data and the weights corresponding to the respective pixel points in the area where the light spot is located, the first surface fitting model is used to perform surface fitting processing on the light spot to obtain candidate model parameters of the first surface fitting model;

[0016] Based on the first curved surface fitting model and the obtained parameters of the candidate model, the initial pixel data is updated to obtain updated candidate pixel data;

[0017] Determine, based on the updated candidate pixel data and the initial pixel data, a pixel value difference corresponding to each pixel point in the area where the light spot is located;

[0018] Based on the pixel value difference corresponding to each pixel point in the area where the light spot is located, the weight corresponding to each pixel point in the area where the light spot is located is updated, and the weight is negatively correlated with the pixel value difference.

[0019] Optionally, based on the pixel data of the shadow, using a second surface fitting model to perform surface fitting processing on the shadow to obtain model parameters of the second surface fitting model includes:

[0020] Based on the pixel data of the shadow, perform at least one fitting process on the shadow until a cutoff condition is reached, and determine the candidate model parameters obtained by the last fitting process as the model parameters of the second curved surface fitting model;

[0021] Wherein, the fitting process includes:

[0022] Based on the pixel data of the shadow and the weights corresponding to the respective pixel points in the region where the shadow is located, the second surface fitting model is used to perform surface fitting processing on the shadow to obtain candidate model parameters of the second surface fitting model;

[0023] Based on the second curved surface fitting model and the obtained candidate model parameters, updating the pixel data of the shadow to obtain updated candidate pixel data;

[0024] Determine, based on the updated candidate pixel data and the pixel data of the shadow, a pixel value difference corresponding to each pixel point in the area where the shadow is located;

[0025] Based on the pixel value difference corresponding to each pixel point in the area where the shadow is located, the weight corresponding to each pixel point in the area where the shadow is located is updated, and the weight is negatively correlated with the pixel value difference.

[0026] Optionally, the cutoff condition includes: executing the fitting process a specified number of times; or, a change in the candidate model parameters obtained after the currently executed fitting process and the candidate model parameters obtained after the last executed fitting process is less than a change threshold.

[0027] Optionally, the first surface fitting model and the second surface fitting model are both two-dimensional Gaussian surface fitting models.

[0028] Optionally, determining the initial pixel data includes:

[0029] Performing contour extraction processing on the light spot in the image data to obtain the contour of the light spot;

[0030] Based on the outline of the light spot, determining a circumscribed rectangle of the outline of the light spot;

[0031] The original pixel value of each pixel point within the circumscribed rectangle is determined as the initial pixel data.

[0032] In another aspect, a method for verifying isocenter of a radiotherapy device is provided, the method comprising:

[0033] Acquire at least two projection data generated when the treatment head of the radiotherapy device is located at different positions from the detector, and generate at least two image data based on the at least two projection data, each of the image data containing a light spot formed after the radiation beam generated by the treatment head of the radiotherapy device is blocked by a radiation blocking body and a dark shadow located in the light spot;

[0034] Processing each of the image data using any of the above-mentioned image data processing methods to obtain the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each of the image data;

[0035] Based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each of the image data, the offset between the isocenter of the radiotherapy device and the treatment isocenter is determined.

[0036] Optionally, acquiring at least two projection data generated when the treatment head of the radiotherapy device is located at different positions from the detector, and generating at least two image data based on the at least two projection data, comprises:

[0037] When the treatment head of the radiotherapy device is located at a first position, acquiring projection data corresponding to the first position from the detector and generating first image data;

[0038] When the treatment head of the radiotherapy device is located at a second position, acquiring projection data corresponding to the second position from the detector and generating second image data;

[0039] Determining the offset between the isocenter of the radiotherapy device and the treatment isocenter based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each of the image data, including:

[0040] Determine a first offset between the center point of the light spot and the center point of the shadow in the first image data based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in the first image data;

[0041] determining a second offset between the center point of the light spot and the center point of the shadow in the second image data based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in the second image data;

[0042] Based on the first offset and the second offset, an offset between the isocenter of the radiotherapy device and the treatment isocenter is determined.

[0043] Optionally, the direction of the ray beam emitted when the treatment head of the radiotherapy device is located in the first position is perpendicular to the direction of the ray beam emitted when the treatment head of the radiotherapy device is located in the second position.

[0044] In another aspect, a radiotherapy device is provided with an isocenter verification system, the system comprising a radiotherapy device, a radiation blocking body and a processing device, wherein:

[0045] The radiotherapy device comprises: a treatment head and a detector arranged opposite to each other, wherein the detector is used to receive the radiation beam generated by the treatment head and convert it into projection data;

[0046] The ray blocking body is detachably mounted at the isocenter of the radiotherapy device, and the center of the ray blocking body coincides with the isocenter of the radiotherapy device;

[0047] The processing device is electrically connected to the detector, and the processing device is used to execute any of the above-mentioned isocenter verification methods for radiotherapy equipment.

[0048] Optionally, the ray blocking body is a ray blocking ball.

[0049] Optionally, the ray blocking ball is a metal ball.

[0050] Optionally, the system further comprises a detection phantom, the ray blocking body is mounted at a central position of the detection phantom, and the ray blocking body is detachably mounted at the isocenter of the radiotherapy device through the detection phantom.

[0051] Optionally, the radiotherapy equipment further comprises a treatment bed, and the detection phantom is detachably mounted at a preset position of the treatment bed and is located at the isocenter of the radiotherapy equipment.

[0052] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement any of the above-mentioned image data processing methods, or any of the above-mentioned isocenter verification methods for radiotherapy equipment.

[0053] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0054] After the processing device acquires projection data from the detector in the radiotherapy device and generates image data based on the projection data, the image data is processed to obtain the coordinates of the center point of the light spot and the coordinates of the center point of the shadow. In this way, the isocenter of the radiotherapy device can be verified by determining the offset between the center point of the light spot and the center point of the shadow. There is no need to verify the isocenter of the radiotherapy device by manually analyzing the film, which effectively improves the verification efficiency of the isocenter of the radiotherapy device. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0056] Figure 1 It is a structural schematic diagram of an isocenter verification system for a radiotherapy device provided in an embodiment of the present application;

[0057] Figure 2 is a schematic diagram of image data provided by an embodiment of the present application;

[0058] Figure 3 is a flowchart of a method for processing image data provided by an embodiment of the present application;

[0059] Figure 4 is a flowchart of another method for processing image data provided by an embodiment of the present application;

[0060] Figure 5 This is a schematic diagram of a light spot after contour extraction processing provided by an embodiment of the present application;

[0061] Figure 6 is a schematic diagram of a circumscribed rectangle of a light spot outline provided in an embodiment of the present application;

[0062] Figure 7 It is a three-dimensional simulation diagram of initial pixel data provided by an embodiment of the present application;

[0063] Figure 8 It is a three-dimensional simulation diagram of updated pixel data obtained by updating initial pixel data provided by an embodiment of the present application;

[0064] Fig. 9 It is a three-dimensional simulation diagram of pixel data of a shadow determined based on updated pixel data and initial pixel data provided by an embodiment of the present application;

[0065] Fig.10 Another three-dimensional simulation diagram of updated pixel data obtained by updating initial pixel data provided by an embodiment of the present application;

[0066] Fig.11 It is another three-dimensional simulation diagram of pixel data of a shadow determined based on updated pixel data and initial pixel data provided by an embodiment of the present application;

[0067] Fig.12 It is a flow chart of an isocenter verification method for radiotherapy equipment provided in an embodiment of the present application;

[0068] Fig.13 This is a flowchart of another isocenter verification method for radiotherapy equipment provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0070] Please refer to Figure 1 , Figure 1 1 is a schematic diagram of a structure of an isocenter verification system for a radiotherapy device provided in an embodiment of the present application. The isocenter verification system 100 for a radiotherapy device may include: a radiotherapy device 101 , a ray blocking body 102 and a processing device 103 .

[0071] The radiotherapy device 101 may include: a treatment head 1011 and a detector 1012 which are arranged opposite to each other. The detector 1012 may be an electronic portal imaging device (EPID). The detector 1012 is used to receive the radiation beam generated by the treatment head 1011 and convert it into projection data.

[0072] The ray blocking body 102 can be detachably mounted at the isocenter of the radiotherapy device 101 , and the center of the ray blocking body 102 can coincide with the isocenter of the radiotherapy device 101 .

[0073] The processing device 103 can be electrically connected to the detector 1012 in the radiotherapy device 101. The processing device 103 can obtain projection data from the detector 1012 and generate image data based on the projection data. The image data contains a light spot formed after the radiation beam generated by the treatment head 1011 in the radiotherapy device 101 is blocked by the radiation blocking body 102 and a dark shadow located in the light spot.

[0074] For example, the treatment head 1011 in the radiotherapy device 101 generally includes multiple radiation sources, and the radiation beam emitted by each radiation source will pass through the radiation blocking body 102 and then irradiate the detector 1012, and the detector 1012 will convert the received radiation beam into projection data. Afterwards, the processing device 103 can obtain the projection data from the detector 1012 and convert it into image data. For example, please refer to Figure 2 , Figure 2 1 is a schematic diagram of image data provided by an embodiment of the present application. Since the radiation beam emitted by each radiation source in the treatment head 1011 will pass through the radiation blocking body 102 and then irradiate the detector 1012, the image data generated by the processing device 103 includes multiple light spots 01 corresponding to the multiple radiation sources, and each light spot 01 has a dark shadow 02.

[0075] Optionally, the radiotherapy device 101 may further include a rotating gantry 1013, on which the treatment head 1011 and the detector 1012 are both disposed, and the rotating gantry 1013 can simultaneously drive the treatment head 1011 and the detector 1012 to rotate. In this way, the treatment head 1011 can be controlled to be located at different positions by rotating the gantry 1013.

[0076] Please refer to Figure 3 , Figure 3 is a flowchart of a method for processing image data provided by an embodiment of the present application. The image data processing method can be applied to Figure 1 The processing device 103 in the isocenter verification system 100 of the radiotherapy device shown. The image data may be data generated based on the projection data after the processing device 103 acquires the projection data from the detector 1012 in the radiotherapy device 101. For example, the image data may refer to Figure 2 The image shown in FIG. 1 contains a light spot 01 formed after the radiation beam generated by the treatment head 1011 of the radiotherapy device 101 is blocked by the radiation blocking body 102 and a dark shadow 02 located in the light spot 01. The method for processing the image data may include:

[0077] Step 201: Determine initial pixel data. The initial pixel data includes: pixel values ​​of each pixel point in the area where the light spot is located.

[0078] Step 202: Based on the initial pixel data, a first surface fitting model is used to perform surface fitting processing on the light spot to obtain model parameters of the first surface fitting model. The model parameters of the first surface fitting model include: the coordinates of the center point of the light spot.

[0079] Step 203: based on the first surface fitting model and the obtained model parameters, update the pixel value of each pixel point in the area where the light spot is located to obtain updated pixel data.

[0080] Step 204: Determine pixel data of the dark shadow based on the updated pixel data and the initial pixel data. The pixel data of the dark shadow includes: pixel values ​​of each pixel point in the area where the dark shadow is located.

[0081] Step 205: Based on the pixel data of the shadow, the shadow is subjected to surface fitting processing using a second surface fitting model to obtain model parameters of the second surface fitting model. The model parameters of the second surface fitting model include: the coordinates of the center point of the shadow.

[0082] In summary, the image data processing method provided in the embodiment of the present application obtains projection data from the detector in the radiotherapy device through a processing device, and after generating image data based on the projection data, the image data is processed to obtain the coordinates of the center point of the light spot and the coordinates of the center point of the shadow, so that the isocenter of the radiotherapy device can be verified by subsequently determining the offset between the center point of the light spot and the center point of the shadow. There is no need to verify the isocenter of the radiotherapy device by manually analyzing the film, which effectively improves the verification efficiency of the isocenter of the radiotherapy device.

[0083] Please refer to Figure 4 , Figure 4 is a flowchart of another method for processing image data provided by an embodiment of the present application. The image data processing method can be applied to Figure 1 The processing device 103 in the isocenter verification system 100 of the radiotherapy device shown. The image data may be data generated based on the projection data after the processing device 103 acquires the projection data from the detector 1012 in the radiotherapy device 101. For example, the image data may refer to Figure 2 The image shown in FIG. 1 contains a light spot 01 formed after the radiation beam generated by the treatment head 1011 of the radiotherapy device 101 is blocked by the radiation blocking body 102 and a dark shadow 02 located in the light spot 01. The method for processing the image data may include:

[0084] Step 301: Perform contour extraction processing on the light spot in the image data to obtain the contour of the light spot.

[0085] In an embodiment of the present application, the processing device may use an image segmentation algorithm such as a watershed segmentation algorithm to perform contour extraction processing on the light spot in the image to obtain the contour of the light spot.

[0086] For example, Figure 5 As shown, Figure 5 is a schematic diagram of a light spot after contour extraction processing provided by an embodiment of the present application. Figure 2 After the light spot in the image data shown is subjected to contour extraction processing, the contour 03 of the light spot can be obtained.

[0087] Step 302: Based on the outline of the light spot, determine the circumscribed rectangle of the outline of the light spot.

[0088] In the embodiment of the present application, the processing device may determine a circumscribed rectangle of the outline of the light spot based on the outline of the light spot.

[0089] It should be noted that the embodiments of the present application can analyze the ray beams emitted by multiple radiation sources in the treatment head, and can also analyze the ray beam emitted by one of the multiple radiation sources.

[0090] When it is necessary to analyze the radiation beams emitted by multiple radiation sources in a treatment head, it is necessary to allow multiple radiation sources in the treatment head to emit radiation beams simultaneously, so that the image data generated by the processing device contains multiple light spots. Figure 2 and Figure 5 As shown, since the distance between two adjacent light spots among the multiple light spots is relatively close, after contour extraction is performed on the multiple light spots in the image, the contours of the two adjacent light spots are connected.

[0091] like Figure 6 As shown, Figure 6 Schematic diagram of a circumscribed rectangle of a light spot outline provided in an embodiment of the present application. In order to obtain the circumscribed rectangle of each light spot, it is necessary to pad the outline of each light spot to obtain a padded outline 04, which is approximately an ellipse. After that, the circumscribed rectangle of the ellipse can be determined as the circumscribed rectangle 05 of the light spot outline. In this way, the circumscribed rectangle of the outline of each light spot can be obtained.

[0092] When it is necessary to analyze the radiation beam emitted by a radiation source in the treatment head, it is necessary to allow the radiation source to be analyzed in the treatment head to emit a radiation beam, while shielding the radiation beams emitted by the radiation sources other than the radiation source to be analyzed, so that the image data generated by the processing device contains a light spot. In this case, the contour of the light spot obtained after the contour extraction process is approximately an ellipse, so there is no need to fill the contour of the light spot.

[0093] Step 303: determine the original pixel value of each pixel point within the circumscribed rectangle as initial pixel data.

[0094] In the embodiment of the present application, the processing device may determine the original pixel value of each pixel point within the circumscribed rectangle as the initial pixel data. The initial pixel data may include: the pixel value of each pixel point within the area where the light spot is located. The initial pixel data may also include: the pixel value of each pixel point located outside the light spot and within the circumscribed rectangle of the area where the light spot is located. If the image data includes multiple light spots, the step 303 needs to determine multiple initial pixel data so that the subsequent processing device can determine the position of the center point of each light spot.

[0095] Step 304: Based on the initial pixel data, a first surface fitting model is used to perform surface fitting processing on the light spot to obtain model parameters of the first surface fitting model.

[0096] In the embodiment of the present application, the processing device can perform surface fitting processing on the light spot using the first surface fitting model based on the initial pixel data to obtain model parameters of the first surface fitting model. The model parameters of the first fitting model include: the coordinates of the center point of the light spot.

[0097] For example, the first surface fitting model may be a two-dimensional Gaussian surface fitting model. The expression of the two-dimensional Gaussian surface fitting model is as follows:

[0098] (1)

[0099] Among them, (x, y) represents the coordinates of the pixel points in the circumscribed rectangle of the light spot outline; f(x, y) represents the pixel value of the pixel points in the circumscribed rectangle of the light spot outline, that is, the initial pixel data; G represents the maximum value of the pixel values ​​of each pixel point in the circumscribed rectangle of the light spot outline; x0 represents the horizontal coordinate of the center point of the light spot; y0 represents the vertical coordinate of the center point of the light spot; δ x is the standard deviation in the x direction; δ y is the standard deviation in the y direction.

[0100] In the present application, the left side of the equal sign in the above formula (1) can be represented as initial pixel data, and the parameters on the right side of the equal sign can be represented as model parameters of the first surface fitting model. The model parameters of the first surface fitting model include: the coordinates of the center point of the light spot. In this way, the radiotherapy device can determine the coordinates of the center point of the light spot through the initial pixel data, and the coordinates of the center point of the light spot are the position of the center point of the light spot.

[0101] It should be noted that there are many ways to calculate the model parameters in the first surface fitting model based on the initial pixel data. The embodiment of the present application uses the following two possible implementation methods as examples for schematic illustration:

[0102] In a first optional implementation manner, in order to facilitate the calculation of the model parameters of the first surface fitting model, the above formula (1) may be converted into the following formula.

[0103] First, we can take the logarithm of both sides of the equal sign of formula (1) and expand the square term. After sorting, we can get formula (2), as follows:

[0104] (2)

[0105] Then, assuming that the initial pixel data contains N data points, that is, the number of pixel points within the circumscribed rectangle of the light spot outline is N. Then the above formula (2) can be expressed in the form of a matrix, which can be expressed as: A=BC.

[0106] Where A is an N×1 matrix, and the elements in the N×1 matrix are:

[0107] ;

[0108] Among them, a iThe i-th element in the matrix represented as an N×1 matrix; f i Represented as the i-th data point among N data points.

[0109] B is an N×5 matrix, which can be expressed as:

[0110] ;

[0111] Among them, x i Represented as the horizontal coordinate corresponding to the i-th data point among N data points; y i Represented as the ordinate corresponding to the i-th data point among N data points.

[0112] C is a 5×1 matrix, which can be expressed as:

[0113] ;

[0114] Finally, matrix C can be obtained based on matrix A and matrix B.

[0115] In an embodiment of the present application, the elements contained in matrix C together constitute the model parameters of the first surface fitting model in the above embodiment, and matrix A and matrix B are both known quantities. Therefore, after matrix C is calculated based on matrix A and matrix B, the model parameters of the first surface fitting model can be obtained.

[0116] It should be noted that due to the existence of fitting errors, the multiplication of matrix B and matrix C is usually not equal to the distance matrix A. Therefore, the error E of N data points can be expressed as: E = A - BC. To this end, in the embodiment of the present application, the least squares method can be used to fit the matrix C, and the expression of the matrix C with respect to the matrix A and the matrix B is obtained as follows:

[0117] (3)

[0118] The result obtained by fitting matrix C using the least squares method, after multiplying it by matrix B, is closest to matrix A.

[0119] In the embodiment of the present application, the matrix C can be calculated by the above formula (3), and the model parameters of the first surface fitting model can be obtained.

[0120] It should be noted that, for the first optional implementation method mentioned above, since the light spot also contains a shadow, the shadow will affect the fitting result of the light spot using the first surface fitting model. If the light spot is directly subjected to surface fitting, the error of the center point of the obtained light spot is relatively large. Therefore, the embodiment of the present application provides the following second optional implementation method, which can effectively improve the accuracy of determining the center point of the light spot.

[0121] In a second optional implementation, when the first surface fitting model is used to perform surface fitting processing on the light spot, corresponding weights can be assigned to each pixel point corresponding to the initial pixel data. The weight is used to reflect the degree of influence of the pixel value of the corresponding pixel point on the fitting result obtained after the light spot is surface fitted. It should be noted that the numerical value of the weight is negatively correlated with the degree of influence of the fitting result obtained after the light spot is surface fitted. In this way, when the light spot is surface fitted based on the initial pixel data and the weights corresponding to each pixel point, the degree of influence of the shadow on the fitting result obtained by the surface fitting processing of the light spot can be weakened, effectively improving the accuracy of the center point of the final light spot.

[0122] For example, based on the initial pixel data, a first surface fitting model is used to perform surface fitting processing on the light spot to obtain model parameters of the first surface fitting model, including:

[0123] Based on the initial pixel data, at least one fitting process is performed on the light spot until a cutoff condition is reached, and the candidate model parameters obtained by the last fitting process are determined as the model parameters of the first surface fitting model. The fitting process may include the following steps:

[0124] Step 3041: Obtain a first weight matrix.

[0125] In an embodiment of the present application, the processing device may obtain a first weight matrix. The first weight matrix includes: weights corresponding to each pixel point within the light spot. Since the multiple data in the first weight matrix correspond one-to-one to the multiple data in the initial pixel data. Therefore, when the initial pixel data also includes: pixel values ​​of each pixel point located outside the light spot and within the circumscribed rectangle, the weight matrix also includes: weights corresponding to each pixel point located outside the light spot and within the circumscribed rectangle.

[0126] It should be noted that the value range of the weight corresponding to each pixel point in the present application is [0, 1]. When the fitting process is performed for the first time, the weight corresponding to each pixel point in the first weight matrix obtained by the radiotherapy device is 1.

[0127] Step 3042: Based on the initial pixel data and the weights corresponding to the pixels in the area where the light spot is located, the first surface fitting model is used to perform surface fitting processing on the light spot to obtain candidate model parameters of the first surface fitting model.

[0128] In an embodiment of the present application, the processing device can use the first surface fitting model to perform surface fitting processing on the light spot based on the initial pixel data and the first weight matrix obtained in step 3041, so as to obtain the candidate model parameters of the first surface fitting model.

[0129] It should be noted that the process of fitting the light spot using the initial pixel data and the first weight matrix to obtain the candidate model parameters of the first surface fitting model is to optimize the above formula (3), and the expression of the new matrix C can be obtained as follows:

[0130] (4)

[0131] Wherein, W represents the first weight matrix.

[0132] In the embodiment of the present application, the matrix C can be calculated by formula (4), and the candidate model parameters of the first surface fitting model can be obtained.

[0133] Step 3043: Based on the first surface fitting model and the obtained parameters of the candidate model, the initial pixel data is updated to obtain updated candidate pixel data.

[0134] In an embodiment of the present application, the processing device may update the initial pixel data based on the first surface fitting model and the acquired parameters of the model to be selected to obtain updated pixel data to be selected.

[0135] For example, the above formula (1) can be used to update the initial pixel data, because the parameters on the right side of the equal sign in the above formula (1) are the candidate model parameters of the first surface fitting model obtained in step 3042. Therefore, the pixel value of each pixel point can be recalculated by the formula (1), so as to update the initial pixel data and obtain the updated candidate pixel data.

[0136] Step 3044: Based on the updated candidate pixel data and the initial pixel data, determine the pixel value difference corresponding to each pixel point in the area where the light spot is located.

[0137] In the embodiment of the present application, the processing device can determine the pixel value difference corresponding to each pixel point in the area where the light spot is located based on the updated candidate pixel data and the initial pixel data. For example, assuming that for a certain pixel point, the corresponding pixel value in the initial pixel data is 50, and the corresponding pixel value in the updated candidate pixel data is 60, then the pixel difference corresponding to the pixel point is 10.

[0138] It should be noted that since the initial pixel data also includes: pixel values ​​of each pixel point located outside the light spot and within the circumscribed rectangle, it is also necessary to determine the pixel value difference corresponding to each pixel point located outside the light spot and within the circumscribed rectangle in step 3044.

[0139] Step 3045: based on the pixel value difference corresponding to each pixel point in the area where the light spot is located, update the weight corresponding to each pixel point in the area where the light spot is located.

[0140] In the embodiment of the present application, the processing device may update the weight corresponding to each pixel point in the area where the light spot is located based on the pixel value difference corresponding to each pixel point in the area where the light spot is located.

[0141] Since the numerical value of the weight is negatively correlated with the degree of influence of the fitting result obtained after the surface fitting of the light spot, and the difference of the pixel values ​​corresponding to each pixel point can reflect the degree of influence of the fitting result obtained after the surface fitting of the light spot. Therefore, the weight is also negatively correlated with the pixel value difference. That is, when the difference of the pixel value corresponding to the pixel point is larger, the weight corresponding to the pixel point is smaller; when the difference of the pixel value corresponding to the pixel point is smaller, the weight corresponding to the pixel point is larger.

[0142] In the embodiment of the present application, the value range of the weight is [0, 1], but since the pixel value of each pixel point itself has certain noise, the weight corresponding to each pixel point can be set to 0 or 1. For example, when the pixel value difference corresponding to a certain pixel point is within the preset difference range, the weight corresponding to the pixel point is determined to be 1; when the pixel value difference corresponding to a certain pixel point is outside the preset difference range, the weight corresponding to the pixel point is determined to be 0.

[0143] It should be noted that when the weight corresponding to a pixel point is 1, the pixel value of the pixel point has a smaller influence on the fitting result obtained after the surface fitting of the light spot, and the pixel value corresponding to the pixel point will participate in the process of surface fitting of the light spot; when the weight corresponding to a pixel point is 0, the pixel value of the pixel point has a greater influence on the fitting result obtained after the surface fitting of the light spot, and the pixel value corresponding to the pixel point will not participate in the process of surface fitting of the light spot.

[0144] It should also be noted that when the pixel value difference corresponding to each pixel point located outside the light spot and within the circumscribed rectangle is determined in step 3044, step 3045 also needs to update the weight corresponding to each pixel point located outside the light spot and within the circumscribed rectangle.

[0145] In the embodiment of the present application, after executing step 3045, a fitting process is completed. At this time, step 3041 needs to be repeated to re-execute the fitting process. After executing at least one fitting process, if the cutoff condition is met, the radiotherapy device can determine the candidate model parameters obtained by the last fitting process as the model parameters of the first surface fitting model. At this time, the accuracy of the model parameters of the first surface fitting model determined is high, so that the accuracy of determining the coordinates of the center point of the spot is high.

[0146] Optionally, the cutoff condition may include: the processing device has executed the fitting process a specified number of times; or, the change in the candidate model parameters obtained after the fitting process currently executed by the processing device and the candidate model parameters obtained after the fitting process executed last time is less than a change threshold.

[0147] In the embodiment of the present application, after the processing device has executed the fitting process for a specified number of times, the radiotherapy device can determine the candidate model parameters obtained in the last fitting process as the model parameters of the first curved surface fitting model. Alternatively, after the change amount between the candidate model parameters obtained after the fitting process currently executed by the processing device and the candidate model parameters obtained after the last fitting process executed is less than the change threshold, the processing device can determine the candidate model parameters obtained in the last fitting process as the model parameters of the first curved surface fitting model.

[0148] It should be noted that, for the above-mentioned second optional implementation method, since corresponding weights are assigned to each pixel point corresponding to the initial pixel data when the first surface fitting model is used to perform surface fitting processing on the light spot, the influence of the shadow on the fitting result obtained by the surface fitting processing of the light spot can be weakened, thereby effectively improving the accuracy of the center point of the final light spot.

[0149] Step 305: Based on the first surface fitting model and the obtained model parameters, the pixel value of each pixel point in the light spot is updated to obtain updated pixel data.

[0150] In an embodiment of the present application, after determining the model parameters of the first surface fitting model in step 304, the processing device can update the pixel values ​​of each pixel point in the area where the light spot is located based on the model parameters of the first surface fitting model to obtain updated pixel data.

[0151] It should be noted that step 305 may refer to the above-mentioned step 3043, and the embodiment of the present application will not be repeated here.

[0152] Step 306: Determine pixel data of the shadow based on the updated pixel data and the initial pixel data.

[0153] In the embodiment of the present application, the processing device can determine the pixel data of the dark shadow based on the updated pixel data and the initial pixel data. The pixel data of the dark shadow includes: the pixel value of each pixel point in the area where the dark shadow is located.

[0154] For example, the processing device may subtract the pixel value of each pixel point in the updated pixel data from the pixel value of each pixel point in the initial pixel data to obtain the pixel data of the shadow.

[0155] It should be noted that since the initial pixel data also includes: the pixel values ​​of each pixel point located outside the light spot and within the circumscribed rectangle, the pixel data of the shadow is obtained based on the updated pixel data and the initial pixel data. Therefore, the pixel data of the shadow also includes: the pixel values ​​of each pixel point located outside the shadow and within the circumscribed rectangle.

[0156] Step 307: Based on the pixel data of the shadow, use the second surface fitting model to perform surface fitting processing on the shadow to obtain model parameters of the second surface fitting model.

[0157] In the embodiment of the present application, the processing device can use the second surface fitting model to perform surface fitting processing on the shadow based on the pixel data of the shadow to obtain the model parameters of the second surface fitting model. The model parameters of the second surface fitting model include: the coordinates of the center point of the shadow.

[0158] In the present application, the second surface fitting model may also be a two-dimensional Gaussian surface fitting model. Therefore, there are also multiple ways to calculate the model parameters of the second surface fitting model based on the pixel data of the shadow. The present application embodiment is schematically illustrated by taking the following two possible ways as examples:

[0159] In a first possible implementation, the second surface fitting model may be directly used to perform surface fitting processing on the shadow, which may refer to the corresponding content in the first optional implementation above. The embodiments of the present application will not be described in detail here.

[0160] In a second possible implementation, when the second surface fitting model is used to perform surface fitting processing on the shadow, corresponding weights can be assigned to each pixel point corresponding to the pixel data of the shadow. The weight is used to reflect the degree of influence of the pixel value of the corresponding pixel point on the fitting result obtained after the shadow is surface fitted. It should be noted that the numerical value of the weight is negatively correlated with the degree of influence on the fitting result obtained after the shadow is surface fitted. In this way, when the shadow is surface fitted based on the pixel data of the shadow and the weights corresponding to each pixel point, the accuracy of the center point of the shadow finally obtained is effectively improved.

[0161] For example, based on the pixel data of the shadow, the shadow is subjected to surface fitting processing using the second surface fitting model to obtain model parameters of the second surface fitting model, including:

[0162] Based on the pixel data of the shadow, at least one fitting process is performed on the shadow until a cutoff condition is reached, and the candidate model parameters obtained by the last fitting process are determined as the model parameters of the second surface fitting model. The fitting process may include the following steps:

[0163] Step 3071: Obtain a second weight matrix.

[0164] The step 3071 may refer to the above-mentioned step 3041, and the embodiment of the present application will not be repeated here.

[0165] Step 3072: Based on the pixel data of the shadow and the weights corresponding to the pixels in the area where the shadow is located, the shadow is subjected to surface fitting processing using the second surface fitting model to obtain candidate model parameters of the second surface fitting model.

[0166] The step 3072 may refer to the above-mentioned step 3042, and the embodiment of the present application will not be repeated here.

[0167] Step 3073: Based on the second surface fitting model and the obtained parameters of the candidate model, the pixel data of the shadow is updated to obtain updated candidate pixel data.

[0168] The step 3073 may refer to the above-mentioned step 3043, and the embodiment of the present application will not be repeated here.

[0169] Step 3074: Based on the updated candidate pixel data and the pixel data of the shadow, determine the pixel value difference corresponding to each pixel point in the area where the shadow is located.

[0170] The step 3074 may refer to the above-mentioned step 3044, and the embodiment of the present application will not be repeated here.

[0171] Step 3075: Based on the pixel value difference corresponding to each pixel point in the area where the shadow is located, update the weight corresponding to each pixel point in the shadow, and the weight is negatively correlated with the pixel value difference.

[0172] The step 3075 may refer to the above-mentioned step 3045, and the embodiment of the present application will not be repeated here.

[0173] In the embodiment of the present application, after executing step 3075, a fitting process is completed. At this time, step 3071 needs to be repeated to re-execute the fitting process. After executing at least one fitting process, if the cutoff condition is met, the radiotherapy device can determine the candidate model parameters obtained by the last fitting process as the model parameters of the second curved surface fitting model. At this time, the accuracy of the model parameters of the second curved surface fitting model determined is high, so that the accuracy of determining the coordinates of the center point of the shadow is high.

[0174] Optionally, the cutoff condition may include: the radiotherapy device has performed the fitting process a specified number of times; or, the change in the candidate model parameters obtained after the fitting process currently performed by the radiotherapy device and the candidate model parameters obtained after the last fitting process performed is less than a change threshold.

[0175] In combination with the above embodiments, it can be seen that the present application provides two methods for determining the coordinates of the center point in the light spot and the shadow. One is to determine the coordinates of the center point in the light spot and the shadow when no weight is assigned to each pixel point; the other is to determine the coordinates of the center point in the light spot and the shadow when a weight is assigned to each pixel point. The coordinates of the center point in the light spot and the shadow determined when a weight is assigned to each pixel point are more accurate than the coordinates of the center point in the light spot and the shadow determined when no weight is assigned to each pixel point.

[0176] For example, Figure 7 As shown, Figure 7 It is a three-dimensional simulation diagram of initial pixel data provided by an embodiment of the present application, wherein the numerical value on the x-axis represents the horizontal coordinate of each pixel point in the initial pixel data, the numerical value on the y-axis represents the vertical coordinate of each pixel point in the initial pixel data, and the data on the z-axis represents the pixel value of each pixel point in the initial pixel data.

[0177] When performing surface fitting on the light spot, if no weight is assigned to each pixel point, the light spot is surface fitted, and after the fitting result is obtained, the initial pixel data is updated to obtain the three-dimensional simulation diagram of the updated pixel data. Figure 8 The three-dimensional simulation diagram of the pixel data of the shadow determined based on the updated pixel data and the initial pixel data can be referred to Fig. 9 .

[0178] When performing surface fitting on the light spot, if each pixel point is given a weight, the light spot is subjected to surface fitting, and after obtaining the fitting result, the initial pixel data is updated to obtain a three-dimensional simulation diagram of the updated pixel data. Fig.10 The three-dimensional simulation diagram of the pixel data of the shadow determined based on the updated pixel data and the initial pixel data can be referred to as Fig.11 .

[0179] According to the above Figure 8 and Fig.10 It can be seen that the pixel value of the central area in the updated pixel data obtained when weights are assigned to each pixel point is greater than the pixel value of the central area in the updated pixel data obtained when weights are not assigned to each pixel point. Therefore, when weights are assigned to each pixel, the fitting result obtained after surface fitting of the light spot is more accurate, so that the coordinates of the center point in the light spot and the shadow determined when weights are assigned to each pixel point are more accurate.

[0180] It should be noted that the order of the steps of the image data processing method provided in the embodiment of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the circumstances. Any technician familiar with the technical field can easily think of the changed methods within the technical scope disclosed in the present application, and they should be included in the protection scope of the present application, so they will not be repeated here.

[0181] In summary, the image data processing method provided in the embodiment of the present application obtains projection data from the detector in the radiotherapy device through a processing device, and after generating image data based on the projection data, the image data is processed to obtain the coordinates of the center point of the light spot and the coordinates of the center point of the shadow, so that the isocenter of the radiotherapy device can be verified by subsequently determining the offset between the center point of the light spot and the center point of the shadow. There is no need to verify the isocenter of the radiotherapy device by manually analyzing the film, which effectively improves the verification efficiency of the isocenter of the radiotherapy device.

[0182] Please refer to Fig.12 , Fig.12 is a flowchart of a method for verifying the isocenter of a radiotherapy device provided in an embodiment of the present application. The method for verifying the isocenter of a radiotherapy device can be applied to Figure 1 The processing device 103 in the isocenter verification system 100 of the radiotherapy device is shown. The isocenter verification method of the radiotherapy device may include:

[0183] Step 401: Acquire at least two projection data generated when the treatment head of the radiotherapy device is located at different positions from the detector, and generate at least two image data based on the at least two projection data. Each image data contains a light spot formed after the radiation beam generated by the treatment head of the radiotherapy device is blocked by a radiation blocking body and a dark shadow located in the light spot.

[0184] Step 402: Use an image processing method to process each image data to obtain the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each image data.

[0185] In the embodiment of the present application, it is possible to use Figure 3 or Figure 4 The image processing method shown processes each image data.

[0186] Step 403: Determine the offset between the isocenter of the radiotherapy device and the treatment isocenter based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each image data.

[0187] In summary, the isocenter verification method of the radiotherapy equipment provided in the embodiment of the present application generates at least two image data generated by the treatment head in the radiotherapy equipment at different positions through the processing device in the radiotherapy equipment, and can determine the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each image data. In this way, after determining the offset between the center point of the light spot and the center point of the shadow in each image data, the offset between the isocenter of the radiotherapy equipment and the treatment isocenter can be obtained, thereby realizing the verification of the isocenter of the radiotherapy equipment. There is no need to verify the isocenter of the radiotherapy equipment by manually analyzing the film, which effectively improves the verification efficiency of the isocenter of the radiotherapy equipment.

[0188] Please refer to Fig.13 , Fig.13 is a flowchart of another isocenter verification method for radiotherapy equipment provided in an embodiment of the present application. The isocenter verification method for radiotherapy equipment can be applied to Figure 1 The processing device 103 in the isocenter verification system 100 of the radiotherapy device is shown. The isocenter verification method of the radiotherapy device may include:

[0189] Step 501: When a treatment head of a radiotherapy device is located at a first position, projection data corresponding to the first position is acquired from a detector and first image data is generated.

[0190] In an embodiment of the present application, when the treatment head of the radiotherapy device is located at a first position, the processing device can obtain projection data generated when the treatment head is located at the first position from the detector, and generate first image data based on the projection data.

[0191] Step 502: When the treatment head of the radiotherapy device is located at a second position, projection data corresponding to the second position is acquired from the detector and second image data is generated.

[0192] In an embodiment of the present application, when the treatment head of the radiotherapy device is located at the second position, the processing device can obtain projection data generated when the treatment head is located at the second position from the detector, and generate second image data based on the projection data.

[0193] It should be noted that, regardless of the position of the treatment head in the radiotherapy device, the radiation beam emitted by the treatment head will pass through the radiation blocking body in the radiotherapy device and then be emitted to the detector. Therefore, each of the first image data and the second image data generated by the processing device has: a light spot and a dark shadow located in the light spot. For example, each of the image data can refer to Figure 2 The image shown.

[0194] Optionally, the direction of the ray beam emitted when the treatment head of the radiotherapy device is in the first position is perpendicular to the direction of the ray beam emitted when the treatment head of the radiotherapy device is in the second position. That is, the direction of the ray beam emitted when the treatment head is in the first position is perpendicular to the direction of the ray beam emitted when the treatment head is in the second position. In this way, it is convenient for the subsequent radiotherapy device to determine the offset between the isocenter of the radiotherapy device and the treatment isocenter in different directions, thereby further improving the efficiency of verifying the isocenter of the radiotherapy device.

[0195] It should be noted that the embodiments of the present application can analyze both the ray beams emitted by multiple radiation sources in the treatment head and the ray beams emitted by one of the multiple radiation sources. When it is necessary to analyze the ray beams emitted by multiple radiation sources in a treatment head, it is necessary to allow the multiple radiation sources in the treatment head to emit ray beams at the same time, so that the image data generated by the processing device contains multiple light spots; when it is necessary to analyze the ray beam emitted by one of the radiation sources in the treatment head, it is necessary to allow the radiation source to be analyzed in the treatment head to emit a ray beam, while shielding the ray beams emitted by the radiation sources other than the radiation source to be analyzed, so that the image data generated by the processing device contains one light spot.

[0196] Step 503: for each image data in the first image data and the second image data, use an image processing method to process each image data to obtain the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each image data.

[0197] In the embodiment of the present application, for each of the first image data and the second image data, it is possible to use Figure 3 or Figure 4 The image data processing method shown processes each image data to obtain the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each image data.

[0198] Step 504: Determine a first offset between the center point of the light spot and the center point of the shadow in the first image data based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in the first image data.

[0199] In an embodiment of the present application, the processing device may determine a first offset between the center point of the light spot and the center point of the shadow in the first image data based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in the first image data.

[0200] Step 505: Determine a second offset of the center point of the light spot and the center point of the shadow in the second image data based on the coordinates of the center point of the light spot and the center point of the shadow in the second image data.

[0201] In an embodiment of the present application, the processing device may determine a second offset between the light spot and the center point and the shadow in the second image data based on the coordinates of the center point of the light spot and the center point of the shadow in the second image data.

[0202] Step 506: Determine the offset between the isocenter of the radiotherapy device and the treatment isocenter based on the first offset and the second offset.

[0203] In an embodiment of the present application, the processing device can determine the offset between the center point of the light spot and the center point of the shadow in three-dimensional space based on the first offset and the second offset, so that the processing device can determine the offset between the isocenter of the radiotherapy device and the treatment isocenter, thereby verifying the isocenter of the radiotherapy device.

[0204] Optionally, when the processing device determines that the offset between the isocenter of the radiotherapy device and the treatment isocenter is greater than a preset offset threshold, the processing device can control the treatment bed in the radiotherapy device to perform compensatory movement, thereby correcting the isocenter of the radiotherapy device.

[0205] It should be noted that the order of the steps of the isocenter verification method for radiotherapy equipment provided in the embodiment of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the circumstances. Any technician familiar with the technical field can easily think of the changes within the technical scope disclosed in the present application, and they should be covered within the scope of protection of the present application, so they will not be repeated here.

[0206] In summary, the isocenter verification method of the radiotherapy equipment provided in the embodiment of the present application generates at least two image data generated by the treatment head in the radiotherapy equipment at different positions through the processing device in the radiotherapy equipment, and can determine the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each image data. In this way, after determining the offset between the center point of the light spot and the center point of the shadow in each image data, the offset between the isocenter of the radiotherapy equipment and the treatment isocenter can be obtained, thereby realizing the verification of the isocenter of the radiotherapy equipment. There is no need to verify the isocenter of the radiotherapy equipment by manually analyzing the film, which effectively improves the verification efficiency of the isocenter of the radiotherapy equipment.

[0207] The present application embodiment provides an isocenter verification system for radiotherapy equipment, such as Figure 1 As shown, the isocenter verification system 100 of the radiotherapy device may include: a radiotherapy device 101, a ray blocking body 102 and a processing device 103. Among them:

[0208] The radiotherapy device 101 may include: a treatment head 1011 and a detector 1012 arranged opposite to each other. The detector 1012 is used to receive the radiation beam generated by the treatment head 1011 and convert it into projection data. The ray blocking body 102 is detachably mounted at the isocenter of the radiotherapy device 101, and the center of the ray blocking body 102 coincides with the isocenter of the radiotherapy device 101.

[0209] The processing device 103 is electrically connected to the detector 1012. The processing device is used to Fig.12 or Fig.13 A method for isocenter verification of a radiotherapy device is shown.

[0210] Optionally, the radiotherapy device 101 may further include a rotating rack 1013. The treatment head 1011 and the detector 1012 are both arranged on the rotating rack 1013, and the rotating rack 1013 can simultaneously drive the treatment head 1011 and the detector 1012 to rotate. In this way, the treatment head 1011 can be controlled to be located at different positions by rotating the rack 1013.

[0211] Optionally, the ray blocking body may be a ray blocking ball. For example, the ray blocking ball may be a metal ball. For example, the metal ball may be a tungsten ball.

[0212] In the embodiment of the present application, in order to facilitate the installation of the ray blocking body 102 on the radiotherapy device 101, the isocenter verification system 100 of the radiotherapy device may further include: a detection phantom 104. The ray blocking body 102 may be installed at the center of the detection phantom 104, and the ray blocking body 102 may be detachably installed at the isocenter of the radiotherapy device 101 through the detection phantom 104.

[0213] For example, the radiotherapy device 101 may further include: a treatment bed 1014, and the detection phantom 104 may be detachably mounted at a preset position of the treatment bed 1014 and located at the isocenter of the radiotherapy device 101. The detection phantom 104 may be a box-shaped box of any shape, for example, Figure 1 After the staff fixes the detection phantom 104 at the preset position of the treatment bed 1014, the staff can adjust the height of the treatment bed 1014 so that the isocenter of the radiotherapy device 101 and the spherical center of the radiation blocking body 102 are at the same height; then, the staff moves the treatment bed 1014 to the bottom of the treatment head 1011 so that the center of the radiation blocking body 102 coincides with the isocenter of the radiotherapy device 101; finally, the staff turns on the treatment head 1011, and the treatment head 1011 emits a radiation beam outward.

[0214] It should be noted that the working principle of the isocenter verification system of the radiotherapy equipment can refer to the corresponding content in the embodiment of the isocenter verification method of the radiotherapy equipment mentioned above, and the embodiments of the present application will not be repeated here.

[0215] The present application also provides a verification device for the isocenter of a radiotherapy device, which may be the processing device in the above embodiment. The verification device may include: a processor and a memory, wherein the memory stores at least one instruction, which is loaded and executed by the processor to implement Fig.12 or Fig.13 A method for verifying the isocenter of a radiotherapy device is shown.

[0216] The present application also provides a computer-readable storage medium in which at least one instruction is stored. The instruction is loaded and executed by a processor to implement the following Figure 3 or Figure 4 The image data processing method shown, or Fig.12 or Fig.13 A method for verifying the isocenter of a radiotherapy device is shown.

[0217] In the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The term "plurality" refers to two or more than two, unless otherwise clearly defined.

[0218] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0219] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for processing image data, characterized in that: The image data is data generated by the processing device based on the projection data after the processing device acquires the projection data from the detector, and the image data contains a light spot formed after the radiation beam generated by the treatment head of the radiotherapy device is blocked by the radiation blocking body and a dark shadow located in the light spot; The method comprises: Determine initial pixel data, the initial pixel data including: pixel values ​​of each pixel point in the area where the light spot is located; Based on the initial pixel data, a first surface fitting model is used to perform surface fitting processing on the light spot to obtain model parameters of the first surface fitting model, wherein the model parameters of the first surface fitting model include: coordinates of a center point of the light spot; Based on the first curved surface fitting model and the obtained model parameters, updating the pixel value of each pixel point in the area where the light spot is located to obtain updated pixel data; Determine the pixel data of the dark shadow based on the updated pixel data and the initial pixel data, wherein the pixel data of the dark shadow includes: the pixel value of each pixel point in the area where the dark shadow is located; Based on the pixel data of the shadow, a second surface fitting model is used to perform surface fitting processing on the shadow to obtain model parameters of the second surface fitting model, and the model parameters of the second surface fitting model include: the coordinates of the center point of the shadow.

2. The method according to claim 1, characterized in that Based on the initial pixel data, a first surface fitting model is used to perform surface fitting processing on the light spot to obtain model parameters of the first surface fitting model, including: Based on the initial pixel data, performing at least one fitting process on the light spot until a cutoff condition is reached, and determining the candidate model parameters obtained by the last fitting process as the model parameters of the first curved surface fitting model; Wherein, the fitting process includes: Based on the initial pixel data and the weights corresponding to the respective pixel points in the area where the light spot is located, the first surface fitting model is used to perform surface fitting processing on the light spot to obtain candidate model parameters of the first surface fitting model; Based on the first curved surface fitting model and the obtained parameters of the candidate model, the initial pixel data is updated to obtain updated candidate pixel data; Determine, based on the updated candidate pixel data and the initial pixel data, a pixel value difference corresponding to each pixel point in the area where the light spot is located; Based on the pixel value difference corresponding to each pixel point in the area where the light spot is located, the weight corresponding to each pixel point in the area where the light spot is located is updated, and the weight is negatively correlated with the pixel value difference.

3. The method according to claim 1, characterized in that Based on the pixel data of the shadow, a second surface fitting model is used to perform surface fitting processing on the shadow to obtain model parameters of the second surface fitting model, including: Based on the pixel data of the shadow, perform at least one fitting process on the shadow until a cutoff condition is reached, and determine the candidate model parameters obtained by the last fitting process as the model parameters of the second curved surface fitting model; Wherein, the fitting process includes: Based on the pixel data of the shadow and the weights corresponding to the respective pixel points in the region where the shadow is located, the second surface fitting model is used to perform surface fitting processing on the shadow to obtain candidate model parameters of the second surface fitting model; Based on the second curved surface fitting model and the obtained candidate model parameters, updating the pixel data of the shadow to obtain updated candidate pixel data; Determine, based on the updated candidate pixel data and the pixel data of the shadow, a pixel value difference corresponding to each pixel point in the area where the shadow is located; Based on the pixel value difference corresponding to each pixel point in the area where the shadow is located, the weight corresponding to each pixel point in the area where the shadow is located is updated, and the weight is negatively correlated with the pixel value difference.

4. The method according to claim 2 or 3, characterized in that: The cutoff condition includes: the fitting process is executed for a specified number of times; or, the change in the candidate model parameters obtained after the currently executed fitting process and the candidate model parameters obtained after the last executed fitting process is less than a change threshold.

5. The method according to any one of claims 1 to 3, characterized in that: The first surface fitting model and the second surface fitting model are both two-dimensional Gaussian surface fitting models.

6. The method according to any one of claims 1 to 3, characterized in that: The determining of the initial pixel data comprises: Performing contour extraction processing on the light spot in the image data to obtain the contour of the light spot; Based on the outline of the light spot, determining a circumscribed rectangle of the outline of the light spot; The original pixel value of each pixel point within the circumscribed rectangle is determined as the initial pixel data.

7. A method for verifying isocenter of radiotherapy equipment, characterized in that: The method comprises: Acquire at least two projection data generated when the treatment head of the radiotherapy device is located at different positions from the detector, and generate at least two image data based on the at least two projection data, each of the image data containing a light spot formed after the radiation beam generated by the treatment head of the radiotherapy device is blocked by a radiation blocking body and a dark shadow located in the light spot; Processing each of the image data using the image data processing method described in any one of claims 1 to 6 to obtain the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each of the image data; Based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each of the image data, the offset between the isocenter of the radiotherapy device and the treatment isocenter is determined.

8. The method according to claim 7, characterized in that Acquiring at least two projection data generated when a treatment head of a radiotherapy device is located at different positions from a detector, and generating at least two image data based on the at least two projection data, including: When the treatment head of the radiotherapy device is located at a first position, acquiring projection data corresponding to the first position from the detector and generating first image data; When the treatment head of the radiotherapy device is located at a second position, acquiring projection data corresponding to the second position from the detector and generating second image data; Based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in each of the image data, determining the offset between the isocenter of the radiotherapy device and the treatment isocenter, comprising: Determine a first offset between the center point of the light spot and the center point of the shadow in the first image data based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in the first image data; determining a second offset between the center point of the light spot and the center point of the shadow in the second image data based on the coordinates of the center point of the light spot and the coordinates of the center point of the shadow in the second image data; Based on the first offset and the second offset, an offset between the isocenter of the radiotherapy device and the treatment isocenter is determined.

9. The method according to claim 8, characterized in that The direction of the ray beam emitted when the treatment head of the radiotherapy device is located at the first position is perpendicular to the direction of the ray beam emitted when the treatment head of the radiotherapy device is located at the second position.

10. An isocenter verification system for radiotherapy equipment, characterized in that: The system includes a radiotherapy device, a radiation blocking body and a processing device, wherein: The radiotherapy device comprises: a treatment head and a detector arranged opposite to each other, wherein the detector is used to receive the radiation beam generated by the treatment head and convert it into projection data; The ray blocking body is detachably mounted at the isocenter of the radiotherapy device, and the center of the ray blocking body coincides with the isocenter of the radiotherapy device; The processing device is electrically connected to the detector, and the processing device is used to execute the isocenter verification method of the radiotherapy equipment as described in any one of claims 7 to 9.

11. The system according to claim 10, characterized in that The ray blocking body is a ray blocking ball.

12. The system according to claim 11, characterized in that The ray blocking ball is a metal ball.

13. The system according to claim 10, characterized in that The system further comprises a detection phantom, the ray blocking body is mounted at the center of the detection phantom, and the ray blocking body is detachably mounted at the isocenter of the radiotherapy device through the detection phantom.

14. The system according to claim 13, characterized in that The radiotherapy device also includes a treatment bed, and the detection phantom is detachably mounted at a preset position of the treatment bed and is located at the isocenter of the radiotherapy device.

15. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, which is loaded and executed by the processor to implement the image data processing method as described in any one of claims 1 to 6, or the isocenter verification method for radiotherapy equipment as described in any one of claims 7 to 9.

Citation Information

Patent Citations

  • Method of calibration of a stereoscopic camera system for use with radio therapy treatment apparatus

    CN105473181A

  • Medical treatment equipment radiation field testing apparatus and method

    CN107913079A

  • Light spot detection method and device and electronic equipment

    CN110930351A

  • Radiotherapy isocenter and radiation-field verification die body

    CN203483752U

  • Irradiation field determining device of radiation medical treatment machine

    JP1991026242A