Data processing method and device, equipment, medium and program product
Through one-time DRR reconstruction and projection matrix adjustment, the problem of frequent conversion and reconstruction of three-dimensional prosthetic models is solved, and the display efficiency in robot-assisted total hip replacement is improved.
Patent Information
- Application Number
- CN202410605714.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-23
AI Technical Summary
In robot-assisted total hip replacement, the conversion of the three-dimensional prosthetic model into image data and the digital reconstruction of radiographic images are frequent operations, resulting in a large amount of calculation and long time consumption, which affects the display efficiency of the prosthesis on simulated anteroposterior X-rays.
By obtaining the CT image data of the hip joint and the three-dimensional prosthesis model data, a one-time DRR reconstruction is performed to obtain the initial position information, and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system is used to directly adjust the prosthesis position to avoid Multiple conversion and rebuild operations.
It saves computing power, improves the display efficiency of the prosthesis on the simulated anteroposterior X-ray film, and reduces the operation time.
Smart Images

Figure CN118526285A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a data processing method, device, equipment, medium and program product. Background Art
[0002] In robot-assisted total hip replacement, a three-dimensional bone model of the patient is generated by three-dimensionally reconstructing the mask image data of the bones in the computed tomography (CT) image data of the hip joint. Relevant feature points used to establish the prosthesis installation coordinate system in surgical planning are marked on the three-dimensional bone model. Based on the patient's condition, the prosthesis model suitable for the patient is selected and the prosthesis installation position is planned.
[0003] When planning a surgery, the position of the prosthesis is usually adjusted first on the interface displaying the 3D bone model, such as the inclination angle of the femoral stem, and the position and angle of the acetabular cup. However, when planning the placement of the prosthesis, some important prosthesis planning references are involved. For example, the position of the femoral stem relative to the medullary cavity is an important reference for the placement of the femoral stem prosthesis in clinical practice. However, when the femoral stem prosthesis is displayed on the 3D bone model, this reference relationship is difficult to display intuitively. Therefore, it is necessary to map the placement result of the femoral stem prosthesis planned on the 3D bone model to the simulated anteroposterior X-ray for display.
[0004] When mapping the three-dimensional prosthesis model to the simulated anteroposterior X-ray, it is necessary to first convert the three-dimensional prosthesis model data into image data, and then perform digitally reconstructed radiograph (DRR) on the image data to obtain a simulated anteroposterior X-ray of the three-dimensional prosthesis model, and then display the placement of the prosthesis model on the simulated anteroposterior X-ray. Since the operation of converting the three-dimensional prosthesis model data into image data is extremely time-consuming, if a prosthesis is adjusted on the three-dimensional prosthesis model, it is necessary to convert the adjusted three-dimensional prosthesis model into image data again, and then perform DRR reconstruction on the image data. In this way, each time the three-dimensional prosthesis model is adjusted, a conversion operation between the three-dimensional prosthesis model and the image data must be performed, which is computationally intensive and time-consuming. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a data processing method, apparatus, device, medium and program product, which only executes the operation of converting a three-dimensional prosthesis model to image data and performing DRR reconstruction on the image data once, thereby avoiding multiple conversions of the three-dimensional prosthesis model to image data and DRR reconstruction of the image data, saving computing power and improving the display efficiency of the prosthesis on simulated anteroposterior X-rays.
[0006] The technical solution of this application is as follows:
[0007] In a first aspect, a data processing method is provided, the method comprising:
[0008] Acquire first computerized tomography (CT) image data of a hip joint and second CT image data of a three-dimensional prosthesis model of the hip joint, wherein the first CT image data only includes the bone structure of the hip joint;
[0009] Performing digital radiographic reconstruction (DRR) on the first CT image data and the second CT image data to obtain a first DRR image of the hip joint and a second DRR image of the hip joint prosthesis;
[0010] Acquiring initial placement position information of the three-dimensional prosthesis model in a three-dimensional space coordinate system;
[0011] When it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system has been adjusted, the prosthesis is adjusted in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system to obtain the target placement position information of the prosthesis in the X-ray coordinate system, wherein the X-ray coordinate system is the coordinate system of the image obtained after DRR reconstruction of the CT image data.
[0012] In a second aspect, a data processing device is provided, the device comprising:
[0013] A first acquisition module is used to acquire first electronic computer tomography CT image data of a hip joint and second CT image data of a three-dimensional prosthesis model of the hip joint, wherein the first CT image data only includes the bone structure of the hip joint;
[0014] A first determination module is used to perform digitally reconstructed radiographic images (DRR) on the first CT image data and the second CT image data, respectively, to obtain a first DRR image of the hip joint and a second DRR image of the hip joint prosthesis, respectively;
[0015] A second acquisition module is used to acquire initial placement position information of the three-dimensional prosthesis model in a three-dimensional space coordinate system;
[0016] The second determination module is used to adjust the prosthesis in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system, so as to obtain the target placement position information of the prosthesis in the X-ray coordinate system when it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system is adjusted, wherein the X-ray coordinate system is the coordinate system of the image obtained after DRR reconstruction of the CT image data.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the data processing method described in any one of the embodiments of the present application.
[0018] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the data processing method described in any one of the embodiments of the present application are implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device can perform the steps of the data processing method described in any one of the embodiments of the present application.
[0020] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0021] In an embodiment of the present application, by performing DRR reconstruction on the acquired first CT image data of the hip joint and the second CT image data of the three-dimensional prosthesis model of the hip joint, a first DRR image of the hip joint and a second DRR image of the prosthesis of the hip joint can be obtained respectively, and then the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system is obtained. When it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system has been adjusted, the prosthesis is adjusted in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system, so as to obtain the target placement position of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted. In the embodiment of the present application, when the three-dimensional prosthesis model is adjusted, there is no need to reconvert the adjusted three-dimensional prosthesis model into image data and then perform DRR reconstruction on the image data. Instead, the position of the prosthesis in the X-ray coordinate system can be adjusted directly based on the projection matrix of the three-dimensional prosthesis model between the three-dimensional space coordinate system and the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system. In this way, it is only necessary to perform the operation of converting the three-dimensional prosthesis model to image data and performing DRR reconstruction on the image data once, thus avoiding multiple conversions of the three-dimensional prosthesis model to image data and DRR reconstruction of the image data, saving computing power and improving the display efficiency of the prosthesis on simulated anteroposterior X-ray films.
[0022] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0024] Figure 1 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0025] Figure 2 is a schematic diagram of the position of the three-dimensional prosthesis model provided in the embodiment of the present application in the three-dimensional bone model of the hip joint;
[0026] Figure 3 It is a schematic diagram of the effect of superimposing a prosthesis DRR image on a hip joint DRR image provided by an embodiment of the present application;
[0027] Figure 4 is a schematic diagram of femoral DRR reconstruction in a hip joint provided in an embodiment of the present application;
[0028] Figure 5ais a schematic diagram of projection using a camera and a projection screen provided in an embodiment of the present application;
[0029] Figure 5b The embodiment of this application provides Figure 5a The projection schematic diagram shown;
[0030] Figure 6 is a schematic diagram of a bounding box of a prosthesis model provided in an embodiment of the present application;
[0031] Figure 7a It is a schematic diagram of adjusting the inner and outer eccentricity, the upper and lower eccentricity and the inner and outer valgus angles of the three-dimensional prosthesis model provided in the embodiment of the present application in a three-dimensional space coordinate system;
[0032] Figure 7b The embodiment of the present application provides Figure 7a When making adjustments, in the X-ray coordinate system, a schematic diagram of the adjustment of the inner and outer eccentricity, upper and lower eccentricity, and inner and outer valgus angles of the prosthesis;
[0033] Figure 8a is a schematic diagram of a DRR image before prosthesis adjustment in an X-ray coordinate system provided by an embodiment of the present application;
[0034] Figure 8b is a schematic diagram of a DRR image after the prosthesis is adjusted upward and outward in an X-ray coordinate system provided by an embodiment of the present application;
[0035] Figure 8c is a schematic diagram of a DRR image of a prosthesis turned inside out in an X-ray coordinate system provided by an embodiment of the present application;
[0036] Fig. 9 It is a schematic diagram of adjusting the anterior-posterior eccentricity of the prosthesis provided by an embodiment of the present application in a three-dimensional space coordinate system and an X-ray coordinate system;
[0037] Fig.10a is a schematic diagram of a DRR image before prosthesis adjustment in an X-ray coordinate system provided by an embodiment of the present application;
[0038] Fig.10b is a schematic diagram of a DRR image after the prosthesis anteversion angle is adjusted in an X-ray coordinate system provided by an embodiment of the present application;
[0039] Fig.10c is a schematic diagram of a DRR image after the front-back flip angle of the prosthesis is adjusted in an X-ray coordinate system provided by an embodiment of the present application;
[0040] Fig.11 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0041] Fig.12It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make those of ordinary skill in the art better understand the technical scheme of the present application, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples consistent with some aspects of the present application as detailed in the attached claims.
[0044] As described in the background technology section, in the prior art, each time the three-dimensional prosthesis model is adjusted in the three-dimensional space, a conversion operation between the three-dimensional prosthesis model and the image data must be performed. This results in a large amount of operation and calculation and is time-consuming. In order to solve the above problems, the embodiments of the present application provide a data processing method, an apparatus, a device, a medium and a program product. By performing DRR reconstruction on the acquired first CT image data of the hip joint and the second CT image data of the three-dimensional prosthesis model of the hip joint, a first DRR image of the hip joint and a second DRR image of the prosthesis of the hip joint can be obtained respectively, and then the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system is obtained. When it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system is adjusted, the three-dimensional prosthesis model is reconstructed according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the three-dimensional space coordinate system. The projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system is used to adjust the prosthesis in the X-ray coordinate system to obtain the target placement position information of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted. In the embodiment of the present application, when the three-dimensional prosthesis model is adjusted, there is no need to reconvert the adjusted three-dimensional prosthesis model into image data and then perform DRR reconstruction on the image data. Instead, the position of the prosthesis in the X-ray coordinate system can be adjusted directly based on the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system. In this way, it is only necessary to perform the operation of converting the three-dimensional prosthesis model to image data and performing DRR reconstruction on the image data once, thereby avoiding multiple conversions of the three-dimensional prosthesis model to image data and DRR reconstruction of the image data, saving computing power, and improving the display efficiency of the prosthesis on the simulated anteroposterior X-ray film.
[0045] The data processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0046] Figure 1 is a flow chart of a data processing method provided in an embodiment of the present application, such as Figure 1 As shown, the data processing method provided in the embodiment of the present application may include steps 110 to 140.
[0047] Step 110: Acquire first CT image data of the hip joint and second CT image data of the three-dimensional prosthesis model of the hip joint.
[0048] Among them, the first CT image data can be CT image data of the hip joint, and specifically can be the conversion of the three-dimensional bone model of the hip joint to obtain the first CT image data of the hip joint. The three-dimensional bone model of the hip joint here can be digitally reconstructed based on the CT image of the hip joint.
[0049] It should be noted that the first CT image data only includes the bone structure of the hip joint, that is, the first CT image data does not include soft tissues and other organs.
[0050] The second CT image data may be CT image data of a three-dimensional prosthesis model of the hip joint. Specifically, the three-dimensional prosthesis model of the hip joint may be converted to obtain the second CT image data of the three-dimensional prosthesis model of the hip joint. The three-dimensional prosthesis model of the hip joint may be digitally reconstructed based on the CT image of the hip joint prosthesis.
[0051] It should be noted that the hip joint prosthesis may include a femoral head prosthesis, a femoral stem prosthesis and an acetabular prosthesis, that is, the above-mentioned three-dimensional prosthesis model may be a prosthesis model composed of a three-dimensional model of a femoral head prosthesis, a three-dimensional model of a femoral stem prosthesis and a three-dimensional model of an acetabular prosthesis.
[0052] In some embodiments of the present application, in order to accurately obtain the first CT image data and the second CT image data, step 110 may specifically include:
[0053] generating first CT image data of the hip joint according to the third CT image data of the target object and the template CT image data of the hip joint;
[0054] According to the first placement position information of the three-dimensional prosthesis model in the three-dimensional bone model of the hip joint, second CT image data of the three-dimensional prosthesis model is obtained.
[0055] The target object here may be a subject who is to undergo hip replacement surgery, such as a patient.
[0056] The third CT image data may be data of a CT image taken of the target object.
[0057] It should be noted that the third CT image data here includes all organs and structures of the target object, that is, the third CT image data here includes not only the bone structure of the hip joint, but also the soft tissue and other organs of the hip joint.
[0058] The template CT image data may be CT image data of a hip joint template, specifically, it may be CT image data of an internationally standard hip joint template, specifically, it may be mask image data of bones including a hip joint.
[0059] It should be noted that the template CT image data here only includes the bone image data of the hip joint.
[0060] The first placement position information may be placement position information of the three-dimensional prosthesis model in the three-dimensional bone model of the hip joint.
[0061] In some embodiments of the present application, first CT image data including only the bone structure of the hip joint can be generated based on the third CT image data of the target object and the template CT image data of the hip joint.
[0062] In some embodiments of the present application, second CT image data of the three-dimensional prosthesis model can be obtained by performing image data conversion on the three-dimensional prosthesis model according to the first placement position information of the three-dimensional prosthesis model in the three-dimensional bone model of the hip joint.
[0063] It should be noted that converting image data of a three-dimensional model is an existing technology and will not be described in detail here.
[0064] In an embodiment of the present application, first CT image data of the hip joint is generated based on the third CT image data of the target object and the template CT image data of the hip joint, and second CT image data of the three-dimensional prosthesis model is obtained based on the first placement position information of the three-dimensional prosthesis model in the three-dimensional bone model of the hip joint. In this way, the first CT image data and the second CT image data can be accurately obtained.
[0065] Step 120: Perform DRR reconstruction on the first CT image data and the second CT image data to obtain a first DRR image of the hip joint and a second DRR image of the hip joint prosthesis, respectively.
[0066] The first DRR image may be a DRR image of the hip joint obtained after DRR reconstruction is performed on the first CT image data.
[0067] The second DRR image may be a DRR image of the hip joint prosthesis obtained after DRR reconstruction is performed on the second CT image data.
[0068] In some embodiments of the present application, DRR reconstruction is performed on CT image data to obtain a DRR image, which belongs to the prior art and is not limited in the embodiments of the present application.
[0069] In some embodiments of the present application, since the first CT image data only contains the bone structure of the hip joint, after the first DRR image and the second DRR image are generated, the soft tissue and other organs are not displayed in the DRR image, so the bone structures such as the medullary cavity and femoral head can be observed more clearly.
[0070] Step 130: Obtain initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system.
[0071] The initial placement position information may be placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system, that is, position information of the three-dimensional prosthesis model of the hip joint prosthesis in the three-dimensional bone model of the hip joint in the three-dimensional space coordinate system.
[0072] In some embodiments of the present application, the initial placement position information can be obtained by the doctor based on prior experience, or can be directly obtained based on the placement position of the three-dimensional prosthesis model on the three-dimensional display software. The specific method of obtaining the initial placement position is not limited in the embodiments of the present application.
[0073] refer to Figure 2 , Figure 2 It is a schematic diagram of the position of the three-dimensional prosthesis model 31 in the three-dimensional bone model 32 of the hip joint.
[0074] In some embodiments of the present application, after obtaining the first DRR image and the second DRR image, the first DRR image and the second DRR image are superimposed to obtain a postoperative effect X-ray image generated by the current surgical plan, such as Figure 3 As shown. Figure 3 In the example, the prosthesis three-dimensional model is a femoral stem prosthesis model, image 41 is a first DRR image of the hip joint, image 42 is a second DRR image of the femoral stem prosthesis, and after superimposing image 41 and image 42, it can be obtained Figure 3 The effect is shown in the image on the right.
[0075] Step 140: When it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system has been adjusted, the prosthesis is adjusted in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system to obtain the target placement position information of the prosthesis in the X-ray coordinate system.
[0076] The X-ray coordinate system may be a coordinate system of an image obtained after DRR reconstruction is performed on CT image data.
[0077] The projection matrix may be a matrix between a three-dimensional space coordinate system and an X-ray coordinate system.
[0078] The target placement position information may be placement position information of the three-dimensional prosthesis model in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted in the three-dimensional space coordinate system and then corresponds to the X-ray coordinate system.
[0079] In some embodiments of the present application, in order to accurately determine the target placement position information, it is necessary to first determine the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system. Therefore, before step 140, the above method may further include:
[0080] The camera is placed at the position of the X-ray source, and the projection screen is placed at the position of the X-ray receiving plate to simulate the process of generating a DRR image using the X-ray source and the X-ray receiving plate, and the sample CT image data placed between the camera and the projection screen is projected onto the projection screen;
[0081] According to a first relationship between a first point in the sample CT image data and a second point on the projection screen, a projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system is obtained.
[0082] The camera may be used to see through the sample CT image data and project the sample CT image data onto a projection screen to simulate the process of generating a DRR image using an X-ray source and an X-ray receiving plate. The projection screen may be a screen used to display the projection of the sample CT image data after the camera sees through it.
[0083] It should be noted that the internal and external parameters of the camera here are consistent with the first parameters of the reconstruction device when generating the target DRR image. The target DRR image here can be the first DRR image or the second DRR image.
[0084] The first parameter mentioned above may be a parameter of a reconstruction device when DRR reconstruction is performed on the first CT image data and the second CT image data respectively.
[0085] In some embodiments of the present application, reference Figure 4 , Figure 4 Schematic diagram of DRR reconstruction of the femur in the hip joint. Figure 4 In the figure, the prosthesis model 23 is placed between the X-ray source 21 and the X-ray receiving plate 22. The X-ray source 21 irradiates the prosthesis model 23, and the image of the prosthesis can be displayed on the X-ray receiving plate 22, so that the DRR image of the prosthesis, that is, the X-ray image of the prosthesis, can be obtained.
[0086] It should be noted that Figure 4 In the embodiment, the X-ray source 21 may be an X-ray radiation source. Figure 4 The X-ray source 21 is used to characterize the origin position of the X-ray radiation source. Figure 4 The midpoint 24 is the origin of the X-ray receiving plate 22 .
[0087] It should be noted that when performing DRR reconstruction on the first CT image and when performing DRR reconstruction on the second CT image data, the parameters of the reconstruction device are the same.
[0088] The first parameter mentioned above may be, for example, the placement position and angle of the X-ray light source 21 and the placement position and angle of the X-ray receiving plate 22 .
[0089] The above-mentioned sample CT image data can be CT image data used to calculate the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system. The sample CT image data can be the above-mentioned first CT image data or the second CT image data, or can be other CT image data, which is not limited in the embodiment of the present application.
[0090] The first site may be any site in the sample CT image data.
[0091] The second point may be a point obtained by projecting the first point onto a projection screen after using a camera to see through the first point.
[0092] The first relationship may be a relationship between a first location and a second location.
[0093] In some embodiments of the present application, a camera can be placed at the position of an X-ray light source, and a projection screen can be placed at the position of an X-ray receiving plate to simulate the process of generating a DRR image using an X-ray light source and an X-ray receiving plate. In this way, the sample CT image data placed between the camera and the projection screen can be projected onto the projection screen, and then based on the first relationship between the first point in the sample CT image data and the second point on the projection screen, the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system can be obtained.
[0094] refer to Figure 5a , Figure 5a This is a schematic diagram of projection using a camera and a projection screen, where the camera 51 is placed at the position of the X-ray source, the projection screen 52 is placed at the position of the X-ray receiving plate, and the sample CT image data is placed at the position of the prosthesis model. Figure 5a In the figure, the projection screen 52 is a square projection screen, but it does not mean that the projection screen in the embodiment of the present application can only be a square. It can also be a rectangle, trapezoid, etc. The shape of the projection screen is not limited in the implementation of the present application.
[0095] In an embodiment of the present application, a camera and a projection screen are used to simulate the process of generating a DRR image by an X-ray light source and an X-ray receiving plate. In this way, the sample CT image data placed between the camera and the projection screen can be projected onto the projection screen. Then, based on the first relationship between the first point in the sample CT image data and the second point on the projection screen, the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system can be accurately obtained.
[0096] In some embodiments of the present application, the first relationship between the first site and the second site can be expressed as the following formula (1):
[0097]
[0098] Among them, (x p ,y p ,z p ) is the coordinate of the first point, (x p' ,y p' ,z p') is the coordinate of the second position, FOV is the viewing angle of the sample CT image data projected by the camera, n and f are the front plane and the back plane of the sample CT image data in the spatial position, respectively, and d is the distance from the plane where the projection screen is located to the plane where the camera is located.
[0099] In some embodiments of the present application, using Figure 4 After the sample CT image data is projected, the first point on the sample CT image data can be displayed on the projection screen. Figure 5b , Figure 5b for Figure 5a The projection principle diagram shown in Figure 5b In the equation (1), point 53 is the placement position of the camera 51, point 54 is the origin of the projection screen 52, p is the first point, p' is the second point, n and f are the front plane and the back plane of the sample CT image data in the spatial position, respectively, and α is the viewing angle of the sample CT image data projected by the camera, which is the FOV in the above formula (1).
[0100] It should be noted that when using camera projection, the part of the sample CT image data before the front plane and after the back plane in the spatial position cannot be projected, and only the part of the sample CT image data between the front plane and the back plane in the spatial position can be projected.
[0101] It should be noted that in the above formula (1), x p ∈[-1,1],y p ∈[-1,1], so x p' ∈[-1,1],y p' ∈[-1,1], in formula (1), x p ∈[-1,1],y p ∈[-1,1] is because the first point is normalized.
[0102] In some embodiments of the present application, after obtaining the first relationship, the first relationship can be written in a homogeneous form, as shown in the following formula (2):
[0103]
[0104] Then perform homogeneous division on the right side of the above formula (2) to obtain the normalized projection coordinates (i.e., the coordinates of the first point after normalization). Denormalize the projection coordinates to obtain the actual projection point coordinates (i.e., the coordinates of the second point). At this time, the projection matrix is shown in the following formula (3):
[0105]
[0106] In some embodiments of the present application, the adjustment information of the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system may include the adjustment of the inner and outer eccentricity, the upper and lower eccentricity and the inner and outer valgus angle of the three-dimensional prosthesis model.
[0107] The above adjustment of the inner and outer eccentricity can be used to characterize the translation of the three-dimensional prosthesis model along the X-axis in the three-dimensional space coordinate system. The adjustment of the upper and lower eccentricity can be used to characterize the translation of the three-dimensional prosthesis model along the Z-axis in the three-dimensional space coordinate system. The adjustment of the inner and outer valgus angle can be used to characterize the angle of rotation of the three-dimensional prosthesis model along the Y-axis of the three-dimensional space coordinate system around the geometric center direction of the three-dimensional prosthesis model.
[0108] Step 140 may specifically include:
[0109] Calculate first projection coordinate information of the first coordinate information on the projection screen according to the first coordinate information of the first feature point in the three-dimensional space coordinate system and the projection matrix;
[0110] Calculate second projection coordinate information of the second coordinate information on the projection screen according to the second coordinate information of the second feature point in the three-dimensional space coordinate system and the projection matrix;
[0111] Performing homogenization processing on the first projection coordinate information and the second projection coordinate information respectively to obtain third coordinate information of the first projection coordinate information in the X-ray coordinate system and fourth coordinate information of the second projection coordinate information in the X-ray coordinate system;
[0112] The prosthesis is adjusted by a first difference in the X-axis direction of the X-ray coordinate system to adjust the inner and outer eccentricities of the prosthesis in the X-ray coordinate system;
[0113] The prosthesis is adjusted by the second difference in the Z-axis direction of the X-ray coordinate system to adjust the upper and lower eccentricities of the prosthesis in the X-ray coordinate system;
[0114] The prosthesis is rotated around the Y-axis in the X-ray coordinate system to a target angle to adjust the inversion and valgus angles of the prosthesis in the X-ray coordinate system.
[0115] The first feature point may be determined based on the three-dimensional prosthesis model before the initial placement position information is adjusted, and specifically may be a feature point on the three-dimensional prosthesis model before the initial placement position information is adjusted, or a feature point on a directed bounding box constructed based on the three-dimensional prosthesis model before the initial placement position information is adjusted, and specifically the directed bounding box may be the minimum circumscribed rectangle of the three-dimensional prosthesis model before the adjustment, such as Figure 4 43 in the box.
[0116] It should be noted that when selecting the first feature point, it is best to select a point close to the center of the three-dimensional prosthesis model before the initial placement position information is adjusted, or a point close to the center of a directed bounding box constructed based on the three-dimensional prosthesis model before the initial placement position information is adjusted. For example, the first feature point can be the geometric center point on the three-dimensional prosthesis model before the initial placement position information is adjusted, or the geometric center point on the directed bounding box constructed based on the three-dimensional prosthesis model before the initial placement position information is adjusted.
[0117] The second feature point may be determined based on the three-dimensional prosthesis model after the initial placement position information is adjusted. Specifically, it may be a feature point on the three-dimensional prosthesis model after the initial placement position information is adjusted. Alternatively, it may be a feature point on a directed bounding box constructed based on the three-dimensional prosthesis model after the initial placement position information is adjusted. Specifically, the directed bounding box may be the minimum circumscribed rectangle of the adjusted three-dimensional prosthesis model.
[0118] Similarly, when selecting the second feature point, it is best to select a point close to the center of the three-dimensional prosthesis model after the initial placement position information is adjusted, or a point close to the center of a directed bounding box constructed based on the three-dimensional prosthesis model after the initial placement position information is adjusted. For example, the first feature point can be the geometric center point on the three-dimensional prosthesis model after the initial placement position information is adjusted, or the geometric center point on the directed bounding box constructed based on the three-dimensional prosthesis model after the initial placement position information is adjusted.
[0119] It should be noted that the first feature point and the second feature point should be the same feature point before and after the initial placement position information is adjusted.
[0120] In some embodiments of the present application, the bounding box is divided into two types: a directed bounding box and an axis-aligned bounding box. When the axis-aligned bounding box is constructed, the coordinate axes of the bounding box correspond to the coordinate axes of the image where the prosthesis is located. When the directed bounding box is constructed, the coordinate axes of the bounding box correspond to the coordinate axes of the prosthesis, that is, the directed bounding box is constructed strictly according to the coordinate axes of the prosthesis. Figure 6 As shown, in Figure 6 In the figure, box 61 is a directed bounding box of the three-dimensional prosthesis model, and box 62 is an axis-aligned bounding box of the three-dimensional prosthesis model. Figure 6 It can be seen that the directed bounding box fits the 3D prosthesis model better.
[0121] The first coordinate information may be coordinate information of the first feature point in the three-dimensional space.
[0122] The first projection coordinate information may be coordinate information of the first coordinate information on the projection screen.
[0123] The second coordinate information may be coordinate information of the second feature point in the three-dimensional space.
[0124] The second projection coordinate information may be coordinate information of the second coordinate information on the projection screen.
[0125] The third coordinate information may be coordinate information of the first projection coordinate information in the X-ray coordinate system obtained by homogenizing the first projection coordinate information.
[0126] The fourth coordinate information may be coordinate information of the second projection coordinate information in the X-ray coordinate system obtained by homogenizing the second projection coordinate information.
[0127] The first difference may be a difference between the third coordinate information and the fourth coordinate information on the X-axis.
[0128] The second difference may be a difference between the third coordinate information and the fourth coordinate information on the Z axis.
[0129] The target angle may be an angle at which the inversion and valgus angles of the three-dimensional prosthesis model are adjusted in the three-dimensional space coordinate system.
[0130] In some embodiments of the present application, the three-dimensional prosthesis model is adjusted in the three-dimensional space coordinate system for the inner and outer eccentricity, the upper and lower eccentricity, and the inner and outer valgus angles. Corresponding to the X-ray coordinate system, the inner and outer eccentricity, the upper and lower eccentricity, and the inner and outer valgus angles of the prosthesis are also adjusted. Figure 7a and Figure 7b , Figure 7a It is a schematic diagram of adjusting the inner and outer eccentricity, upper and lower eccentricity and inner and outer valgus angle of the three-dimensional prosthesis model in the three-dimensional space coordinate system. Figure 7b In accordance with Figure 7a When making adjustments, a schematic diagram of the adjustment of the inner and outer eccentricity, upper and lower eccentricity, and inner and outer valgus angles of the prosthesis in the X-ray coordinate system.
[0131] In some embodiments of the present application, according to the first coordinate information of the first feature point in the three-dimensional space and the projection matrix, the first projection coordinate information of the first coordinate information in the projection screen can be calculated according to the following formula (4):
[0132]
[0133] Where M is the projection matrix, is the first coordinate information, is the first projection coordinate information.
[0134] According to the second coordinate information of the second feature point in the three-dimensional space and the projection matrix, the second projection coordinate information of the second coordinate information in the projection screen can be calculated according to the following formula (5):
[0135]
[0136] Among them, M is the projection matrix, center1 is the second coordinate information, is the second projection coordinate information.
[0137] The first projection coordinate information obtained by the above formula (4) and the second projection coordinate information obtained by the formula (5) are subjected to homogeneous division and denormalization operation to obtain the position of the first projection coordinate information and the second projection coordinate information projected on the DRR image, that is, the third coordinate information And the fourth coordinate information , then the corresponding normalized displacement of the prosthesis on the DRR image is That is, the prosthesis is adjusted in the X-axis direction of the X-ray coordinate system by the difference between the fourth coordinate information and the third coordinate information in the X-axis direction, and the inner and outer eccentricities of the prosthesis in the X-ray coordinate system are obtained; the prosthesis is adjusted in the Z-axis direction of the X-ray coordinate system by the difference between the fourth coordinate information and the third coordinate information in the Z-axis direction, and the upper and lower eccentricities of the prosthesis in the X-ray coordinate system are obtained.
[0138] If the inversion and valgus angles of the three-dimensional prosthesis model are adjusted by α in the three-dimensional space coordinate system, that is, the prosthesis is rotated by an angle of α around the Y axis of the world coordinate system around the geometric center of the prosthesis, then the prosthesis can be directly rotated by an angle of α on the two-dimensional plane (i.e., the X-ray coordinate system).
[0139] refer to Figure 8a-8c , Figure 8a This is a schematic diagram of the DRR image before the prosthesis is adjusted in the X-ray coordinate system. Figure 8b This is a schematic diagram of the DRR image after the prosthesis is adjusted upward and outward in the X-ray coordinate system. Figure 8c This is a schematic diagram of the DRR image after the prosthesis is turned inside out in the X-ray coordinate system.
[0140] In an embodiment of the present application, by adjusting the three-dimensional prosthesis model in three-dimensional space including adjusting the inner and outer eccentricities, upper and lower eccentricities and inner and outer valgus angles of the three-dimensional prosthesis model, the inner and outer eccentricities, upper and lower eccentricities and inner and outer valgus angles of the prosthesis can be accurately adjusted in the X-ray coordinate system.
[0141] In some embodiments of the present application, the adjustment information of the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system may also include the adjustment of the front-back eccentricity of the three-dimensional prosthesis model. The adjustment of the front-back eccentricity here can be used to characterize the translation of the three-dimensional prosthesis model along the Y axis in the three-dimensional space coordinate system. That is, Figure 6 The image of the prosthesis moves forward and backward along the Z axis, and the corresponding image is approximately enlarged or reduced at the original position of the DRR, as well as a slight translation.
[0142] Step 140 may specifically include:
[0143] Acquire a first distance from the first coordinate information to the projection screen and a second distance from the second coordinate information to the projection screen;
[0144] Calculating a first scaling factor of the three-dimensional prosthesis model according to the first distance and the second distance;
[0145] The prosthesis is adjusted to the third difference in the Y-axis direction of the X-ray coordinate system. After adjusting the third difference in the Y-axis direction of the X-ray coordinate system, the second DRR image is scaled according to the first scaling factor with the first projection coordinate information as the center on the second DRR image, and the scaled second DRR image is superimposed on the initial position information of the second DRR image to achieve adjustment of the anterior-posterior eccentricity of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted.
[0146] The first distance may be the distance from the first coordinate information to the projection screen, and the second distance may be the distance from the second coordinate information to the projection screen.
[0147] The third difference may be a difference between the third coordinate information and the fourth coordinate information on the Y axis.
[0148] The first scaling factor may be a scaling factor of the three-dimensional prosthesis model before and after adjustment calculated based on the first distance and the second distance. Specifically, the first scaling factor may be scaler=z0 / z1, where z0 is the first distance and z1 is the second distance.
[0149] In some embodiments of the present application, according to the calculation method of the upper and lower eccentricities, the displacement of the prosthesis on the Y axis on the DRR image can be obtained as T Y =cente1'r-cente0'r, and then scale the second DRR image according to the first scaling factor with the first projection coordinate information as the center on the second DRR image, and superimpose the scaled second DRR image on the initial position information of the second DRR image, so as to realize the adjustment of the anterior-posterior eccentricity of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted.
[0150] refer to Fig. 9 , Fig. 9 Schematic diagram of the adjustment of the anterior-posterior eccentricity of the prosthesis in the three-dimensional space coordinate system and the X-ray coordinate system.
[0151] In an embodiment of the present application, a first distance from the first coordinate information to the projection screen and a second distance from the second coordinate information to the projection screen are obtained, and then a first scaling factor of the three-dimensional prosthesis model is calculated based on the first distance and the second distance. The second DRR image is scaled according to the first scaling factor with the first projection coordinate information as the center on the second DRR image after adjusting the third difference, and the scaled second DRR image is superimposed on the initial position information of the second DRR image. This can accurately achieve adjustment of the anterior-posterior eccentricity of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted.
[0152] In some embodiments of the present application, the adjustment information of the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system may also include the adjustment of the front-back flip angle and the anteversion angle of the three-dimensional prosthesis model. The adjustment of the front-back flip angle here can be used to characterize that the three-dimensional prosthesis model rotates around the geometric center of the three-dimensional prosthesis model in the three-dimensional space coordinate system, and the axis parallel to the X-axis of the three-dimensional space coordinate system rotates by a first preset angle, and the adjustment of the anteversion angle can be used to characterize that the three-dimensional prosthesis model rotates around the geometric center of the three-dimensional prosthesis model in the three-dimensional space coordinate system, and the axis parallel to the Z-axis of the femoral coordinate system rotates by a second preset angle. Here, the first preset angle is determined based on the user's adjustment of the front-back flip angle of the initial placement position information of the three-dimensional prosthesis model, and the second preset angle is determined based on the user's adjustment of the anteversion angle of the initial placement position information of the three-dimensional prosthesis model. The specific first preset angle and the second preset angle can be set according to user needs, and are not limited in the embodiments of the present application.
[0153] In some embodiments of the present application, the representation of the front and back flip angles and the forward tilt angles in the two-dimensional projection will become larger or smaller due to the occlusion relationship. Considering the actual clinical application, the adjustment of the front and back flip angles and the forward tilt angles is a relatively small value. At this time, the adjustment of the front and back flip angles can be approximated in two dimensions to the deformation of the prosthesis DRR image in the vertical direction, and the adjustment of the forward tilt angle can be approximated in two dimensions to the deformation of the prosthesis DRR image in the horizontal direction.
[0154] Step 140 may specifically include:
[0155] Acquire a first length and a second length of the first feature point in the X-axis direction and the Z-axis direction, and a third length and a fourth length of the second feature point in the X-axis direction and the Z-axis direction;
[0156] Obtaining a second scaling factor of the three-dimensional prosthesis model in the X-axis direction according to the first length and the third length;
[0157] Obtaining a third scaling factor of the three-dimensional prosthesis model in the Z-axis direction according to the second length and the fourth length;
[0158] Scaling the second DRR image in the X-axis direction according to the second scaling factor, and superimposing the scaled second DRR image onto the initial position information of the second DRR image, so as to adjust the front-back turning angle of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted;
[0159] The second DRR image is scaled in the Z-axis direction according to the third scaling factor, and the scaled second DRR image is superimposed on the initial position information of the second DRR image to adjust the forward tilt angle of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted.
[0160] The first length may be the length of the first feature point in the X-axis direction, and the second length may be the length of the first feature point in the Z-axis direction.
[0161] The third length may be the length of the second feature point in the X-axis direction. The fourth length may be the length of the second feature point in the Z-axis direction.
[0162] The second scaling factor may be a scaling factor of the three-dimensional prosthesis model in the X-axis direction obtained according to the first length and the third length. Specifically, the second scaling factor may be scaler_L=L1-L2, where L1 is the first length and L2 is the third length.
[0163] The third scaling factor may be a scaling factor of the three-dimensional prosthesis model in the Z-axis direction obtained according to the second length and the fourth length. Specifically, the third scaling factor may be scaler_w=w1-w2, where w1 is the second length and w2 is the fourth length.
[0164] In some embodiments of the present application, the second DRR image is scaled in the X-axis direction according to a second scaling factor, and the scaled second DRR image is superimposed on the initial position information of the second DRR image, so as to adjust the front and back flip angles of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted; the second DRR image is scaled in the Z-axis direction according to a third scaling factor, and the scaled second DRR image is superimposed on the initial position information of the second DRR image, so as to adjust the forward tilt angle of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted.
[0165] refer to Figure 10a-10c , Fig.10a This is a schematic diagram of the DRR image before the prosthesis is adjusted in the X-ray coordinate system. Fig.10b This is a schematic diagram of the DRR image after the prosthesis anteversion angle is adjusted in the X-ray coordinate system. Fig.10c This is a schematic diagram of the DRR image after the anterior and posterior flip angle of the prosthesis is adjusted in the X-ray coordinate system.
[0166] In an embodiment of the present application, by obtaining the first length and the second length of the first feature point in the X-axis direction and the Z-axis direction, and the third length and the fourth length of the second feature point in the X-axis direction and the Z-axis direction, and then obtaining the second scaling factor of the three-dimensional prosthesis model in the X-axis direction according to the first length and the third length, and obtaining the third scaling factor of the three-dimensional prosthesis model in the Z-axis direction according to the second length and the fourth length, the second DRR image is scaled in the X-axis direction according to the second scaling factor, and the scaled second DRR image is superimposed on the initial position information of the second DRR image, so as to achieve adjustment of the front and back flip angles of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted, and the second DRR image is scaled in the Z-axis direction according to the third scaling factor, and the scaled second DRR image is superimposed on the initial position information of the second DRR image, so as to accurately achieve adjustment of the forward tilt angle of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted.
[0167] In some embodiments of the present application, before step 140, the above method may further include:
[0168] Selecting a first preset number of feature points of the femoral head of the femur;
[0169] Fitting a first preset number of feature points to obtain the spherical center of the femoral head;
[0170] The center of the femoral head is taken as the origin of the femoral coordinate system;
[0171] The vector from the upper end point of the femoral shaft midline to the lower end point of the femoral shaft midline is used as the Z axis of the femoral coordinate;
[0172] The upper end point of the midline of the femoral shaft is taken as the plane origin and the Z axis of the femoral coordinate system is taken as the normal vector, and the projection points of the inner concave point of the femur and the outer convex point of the femur on the plane are calculated to obtain the first projection point and the second projection point;
[0173] Based on the first projection point and the second projection point, a projection vector is obtained;
[0174] Based on the projection vector and the Z axis of the femoral coordinate system, a fifth vector perpendicular to the projection vector and the Z axis of the femoral coordinate system is obtained;
[0175] The fifth vector is determined as the Y axis of the femoral coordinate system;
[0176] A sixth vector that is perpendicular to both the Z axis of the femoral coordinate system and the Y axis of the femoral coordinate system is determined as the X axis of the femoral coordinate system.
[0177] The first preset number may be the preset number of characteristic points of the selected femoral head, and the first preset number is usually not less than 4.
[0178] The first projection point can be the projection point of the medial concave point of the femur on the plane calculated by taking the upper end point of the midline of the femoral shaft as the plane origin and the Z axis of the femoral coordinate system as the normal vector.
[0179] The second projection point can be the projection point of the lateral femoral convex point on the plane calculated by taking the upper end point of the femoral shaft midline as the plane origin and the Z axis of the femoral coordinate system as the normal vector.
[0180] The projection vector can be a vector obtained based on the first projection point and the second projection point. Specifically, if the surgical side is the right side, the projection vector is the vector from the second projection point to the first projection point. If the surgical side is the left side, the projection vector is the vector from the first projection point to the second projection point.
[0181] The fifth vector may be a vector perpendicular to the projection vector and the Z axis of the femoral coordinate system. The sixth vector may be a vector perpendicular to both the Z axis of the femoral coordinate system and the Y axis of the femoral coordinate system.
[0182] In an embodiment of the present application, a femoral coordinate system can be accurately constructed by selecting a first preset number of feature points of the femoral head of the femur, and the upper end point of the femoral shaft midline and the lower end point of the femoral shaft midline of the femur.
[0183] It should be noted that the data processing method provided in the embodiments of the present application may be executed by a data processing device, or a control module in the data processing device for executing the data processing method.
[0184] Based on the same inventive concept as the above-mentioned data processing method, the present application also provides a data processing device. Fig.11 The data processing device provided in the embodiment of the present application is described in detail.
[0185] Fig.11 It is a schematic structural diagram of a data processing device according to an exemplary embodiment.
[0186] like Fig.11 As shown, the data processing device 1100 may include:
[0187] A first acquisition module 1110 is used to acquire first electronic computer tomography CT image data of a hip joint and second CT image data of a three-dimensional prosthesis model of the hip joint, wherein the first CT image data only includes the bone structure of the hip joint;
[0188] A first determination module 1120 is used to perform digitally reconstructed radiographic images DRR reconstruction on the first CT image data and the second CT image data, respectively, to obtain a first DRR image of the hip joint and a second DRR image of the hip joint prosthesis;
[0189] The second acquisition module 1130 is used to acquire the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system;
[0190] The second determination module 1140 is used to adjust the prosthesis in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system, so as to obtain the target placement position information of the prosthesis in the X-ray coordinate system, when it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system is adjusted, wherein the X-ray coordinate system is the coordinate system of the image obtained after DRR reconstruction of the CT image data.
[0191] In an embodiment of the present application, by performing DRR reconstruction on the acquired first CT image data of the hip joint and the second CT image data of the three-dimensional prosthesis model of the hip joint, a first DRR image of the hip joint and a second DRR image of the prosthesis of the hip joint can be obtained respectively, and then the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system is obtained. When it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system has been adjusted, the prosthesis is adjusted in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system, so as to obtain the target placement position of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted. In the embodiment of the present application, when the three-dimensional prosthesis model is adjusted, there is no need to reconvert the adjusted three-dimensional prosthesis model into image data and then perform DRR reconstruction on the image data. Instead, the position of the prosthesis in the X-ray coordinate system can be adjusted directly based on the projection matrix of the three-dimensional prosthesis model between the three-dimensional space coordinate system and the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system. In this way, it is only necessary to perform the operation of converting the three-dimensional prosthesis model to image data and performing DRR reconstruction on the image data once, thus avoiding multiple conversions of the three-dimensional prosthesis model to image data and DRR reconstruction of the image data, saving computing power and improving the display efficiency of the prosthesis on simulated anteroposterior X-ray films.
[0192] In some embodiments of the present application, the above-mentioned device may further include:
[0193] a setting module, used for placing a camera at the position of an X-ray light source, placing a projection screen at the position of an X-ray receiving plate, so as to simulate a process of generating a DRR image using the X-ray light source and the X-ray receiving plate, projecting sample CT image data placed between the camera and the projection screen onto the projection screen, wherein the internal and external parameters of the camera are consistent with the first parameters of a reconstruction device when generating a target DRR image, and the target DRR image is the first DRR image or the second DRR image;
[0194] The third determination module is used to obtain a projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system according to a first relationship between a first point in the sample CT image data and a second point on the projection screen, wherein the second point is a point obtained by projecting the first point onto the projection screen after perspective viewing the first point with a camera.
[0195] In some embodiments of the present application, the first relationship is shown in the following formula:
[0196]
[0197]
[0198] z p' =-d,z p' ∈[-n,-f];
[0199] Among them, (x p ,y p ,z p ) is the coordinate of the first site, (x p' ,y p' ,z p' ) is the coordinate of the second position, FOV is the viewing angle of the sample CT image data projected by the camera, n and f are respectively the front plane and the back plane of the sample CT image data in the spatial position, and d is the distance from the plane where the projection screen is located to the plane where the camera is located.
[0200] In some embodiments of the present application, the projection matrix is shown in the following formula:
[0201]
[0202] In some embodiments of the present application, the adjustment information of the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system includes the adjustment of the inner and outer eccentricities, the upper and lower eccentricities, and the inner and outer valgus angles of the three-dimensional prosthesis model, wherein the adjustment of the inner and outer eccentricities is used to characterize the translation of the three-dimensional prosthesis model along the X-axis in the three-dimensional space coordinate system, the adjustment of the upper and lower eccentricities is used to characterize the translation of the three-dimensional prosthesis model along the Z-axis in the three-dimensional space coordinate system, and the adjustment of the inner and outer valgus angles is used to characterize the angle of rotation of the three-dimensional prosthesis model along the Y-axis of the three-dimensional space coordinate system around the geometric center direction of the three-dimensional prosthesis model;
[0203] The second determining module 1140 is specifically used for:
[0204] Calculating first projection coordinate information of the first coordinate information on the projection screen according to first coordinate information of the first feature point in the three-dimensional space and the projection matrix, wherein the first feature point is determined based on the three-dimensional prosthesis model before adjustment;
[0205] Calculating second projection coordinate information of the second coordinate information on the projection screen according to second coordinate information of the second feature point in the three-dimensional space and the projection matrix, wherein the second feature point is determined based on the adjusted three-dimensional prosthesis model;
[0206] Performing homogenization processing on the first projection coordinate information and the second projection coordinate information respectively to obtain third coordinate information of the first projection coordinate information in the X-ray coordinate system and fourth coordinate information of the second projection coordinate information in the X-ray coordinate system;
[0207] Adjusting the prosthesis by a first difference in the X-axis direction of the X-ray coordinate system to adjust the inner and outer eccentricities of the prosthesis in the X-ray coordinate system, wherein the first difference is the difference between the third coordinate information and the fourth coordinate information on the X-axis;
[0208] Adjusting the prosthesis by a second difference in the Z-axis direction of the X-ray coordinate system to adjust the upper and lower eccentricities of the prosthesis in the X-ray coordinate system, wherein the second difference is the difference between the third coordinate information and the fourth coordinate information on the Z-axis;
[0209] The prosthesis is rotated around the Y-axis in the X-ray coordinate system at a target angle to adjust the valgus and valgus angles of the prosthesis in the X-ray coordinate system, wherein the target angle is the angle at which the valgus and valgus angles of the three-dimensional prosthesis model are adjusted in the three-dimensional space coordinate system.
[0210] In some embodiments of the present application, the adjustment information of the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system includes the adjustment of the front-back eccentricity of the three-dimensional prosthesis model, and the adjustment of the front-back eccentricity is used to characterize the translation of the three-dimensional prosthesis model along the Y axis in the three-dimensional space coordinate system;
[0211] The second determining module 1140 is specifically used for:
[0212] Acquire a first distance from the first coordinate information to the projection screen and a second distance from the second coordinate information to the projection screen;
[0213] Calculating a first scaling factor of the three-dimensional prosthesis model according to the first distance and the second distance;
[0214] The prosthesis is adjusted by a third difference in the Y-axis direction of the X-ray coordinate system. After the third difference is adjusted in the Y-axis direction of the X-ray coordinate system, the second DRR image is scaled according to the first scaling factor with the first projection coordinate information as the center on the second DRR image, and the scaled second DRR image is superimposed on the initial position information of the second DRR image to adjust the anterior-posterior eccentricity of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted, wherein the third difference is the difference between the third coordinate information and the fourth coordinate information on the Y-axis.
[0215] In some embodiments of the present application, the adjustment information of the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system includes the adjustment of the front-back flip angle and the anteversion angle of the three-dimensional prosthesis model, the adjustment of the front-back flip angle is used to represent that the three-dimensional prosthesis model rotates around the geometric center of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the axis line parallel to the X-axis of the three-dimensional space coordinate system by a first preset angle, and the adjustment of the anteversion angle is used to represent that the three-dimensional prosthesis model rotates around the geometric center of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the axis line parallel to the Z-axis of the femoral coordinate system by a second preset angle;
[0216] The second determining module 1140 is specifically used for:
[0217] Acquire a first length and a second length of the first feature point in the X-axis direction and the Z-axis direction, and a third length and a fourth length of the second feature point in the X-axis direction and the Z-axis direction;
[0218] Obtaining a second scaling factor of the three-dimensional prosthesis model in the X-axis direction according to the first length and the third length;
[0219] Obtaining a third scaling factor of the three-dimensional prosthesis model in the Z-axis direction according to the second length and the fourth length;
[0220] Scaling the second DRR image in the X-axis direction according to the second scaling factor, and superimposing the scaled second DRR image onto the initial position information of the second DRR image, so as to adjust the front-to-back turning angle of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted;
[0221] The second DRR image is scaled in the Z-axis direction according to the third scaling factor, and the scaled second DRR image is superimposed on the initial position information of the second DRR image to adjust the forward tilt angle of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted.
[0222] In some embodiments of the present application, the above-mentioned device may further include:
[0223] A selection module, used for selecting a first preset number of feature points of the femoral head of the femur;
[0224] A fitting module, used for fitting the first preset number of feature points to obtain the spherical center of the femoral head;
[0225] A fourth determination module, used for taking the spherical center of the femoral head as the origin of the femoral coordinate system;
[0226] A fifth determination module, for using a vector from an upper endpoint of a femoral shaft midline of the femur to a lower endpoint of the femoral shaft midline as a Z axis of the femoral coordinate;
[0227] A sixth determination module is used to calculate the projection points of the medial concave point of the femur and the lateral convex point of the femur on the plane by taking the upper end point of the midline of the femoral shaft as the plane origin and the Z axis of the femoral coordinate system as the normal vector to obtain a first projection point and a second projection point;
[0228] a seventh determination module, configured to obtain a projection vector based on the first projection point and the second projection point;
[0229] an eighth determination module, configured to obtain a fifth vector perpendicular to the projection vector and the Z axis of the femoral coordinate system based on the projection vector and the Z axis of the femoral coordinate system;
[0230] a ninth determination module, configured to determine the fifth vector as the Y axis of the femoral coordinate system;
[0231] The tenth determination module is used to determine a sixth vector that is perpendicular to both the Z axis of the femoral coordinate system and the Y axis of the femoral coordinate system as the X axis of the femoral coordinate system.
[0232] In some embodiments of the present application, the first acquisition module 1110 may be specifically used for:
[0233] Generate first CT image data of the hip joint according to the third CT image data of the target object and the template CT image data of the hip joint, wherein the template CT image data only includes the bone image data of the hip joint;
[0234] According to the first placement position information of the three-dimensional prosthesis model in the three-dimensional bone model of the hip joint, second CT image data of the three-dimensional prosthesis model is obtained.
[0235] The data processing device provided in the embodiment of the present application can be used to execute the data processing methods provided in the above-mentioned method embodiments. The implementation principles and technical effects are similar and will not be described here for the sake of simplicity.
[0236] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0237] Fig.12 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.12 As shown, the electronic device may include a processor 1201 and a memory 1202 storing computer programs or instructions.
[0238] Specifically, the processor 1201 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.
[0239] The memory 1202 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1202 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1202 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1202 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1202 is a non-volatile solid-state memory. The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Therefore, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the data processing methods provided in the above-mentioned embodiments.
[0240] The processor 1201 implements any one of the data processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 1202 .
[0241] In one example, the electronic device may further include a communication interface 1203 and a bus 1210. Fig.12 As shown, the processor 1201, the memory 1202, and the communication interface 1203 are connected via a bus 1210 and communicate with each other.
[0242] The communication interface 1203 is mainly used to implement the communication between the modules, devices, units and / or devices in the embodiment of the present invention.
[0243] Bus 1210 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1210 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0244] The electronic device can execute the data processing method in the embodiment of the present invention, thereby realizing Figure 1 Describe the data processing methods.
[0245] In addition, in combination with the data processing method in the above embodiments, the present invention can provide a readable storage medium to implement the data processing method in the above embodiments. The readable storage medium stores program instructions, and when the program instructions are executed by a processor, any one of the data processing methods in the above embodiments is implemented.
[0246] In addition, in combination with the data processing method in the above embodiments, an embodiment of the present invention may provide a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes any one of the data processing methods in the above embodiments.
[0247] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0248] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0249] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0250] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0251] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A data processing method, characterized in that: The method comprises: Acquire first computerized tomography (CT) image data of a hip joint and second CT image data of a three-dimensional prosthesis model of the hip joint, wherein the first CT image data only includes the bone structure of the hip joint; Performing digital radiographic reconstruction (DRR) on the first CT image data and the second CT image data to obtain a first DRR image of the hip joint and a second DRR image of the hip joint prosthesis; Acquiring initial placement position information of the three-dimensional prosthesis model in a three-dimensional space coordinate system; When it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system has been adjusted, the prosthesis is adjusted in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system to obtain the target placement position information of the prosthesis in the X-ray coordinate system, wherein the X-ray coordinate system is the coordinate system of the image obtained after DRR reconstruction of the CT image data.
2. The method according to claim 1, characterized in that In the case where it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system has been adjusted, the prosthesis is adjusted in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system, before obtaining the target placement position information of the prosthesis in the X-ray coordinate system, the method further includes: A camera is placed at the position of an X-ray source, and a projection screen is placed at the position of an X-ray receiving plate to simulate a process of generating a DRR image using the X-ray source and the X-ray receiving plate, and sample CT image data placed between the camera and the projection screen is projected onto the projection screen, wherein the internal and external parameters of the camera are consistent with the first parameters of a reconstruction device when generating a target DRR image, and the target DRR image is the first DRR image or the second DRR image; According to a first relationship between a first point in the sample CT image data and a second point on the projection screen, a projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system is obtained, wherein the second point is a point obtained by projecting the first point onto the projection screen after perspective viewing the first point with a camera.
3. The method according to claim 2, characterized in that The first relationship is shown in the following formula: Among them, (x p ,y p ,z p ) is the coordinate of the first site, (x p' ,y p' ,z p' ) is the coordinate of the second position, FOV is the viewing angle of the sample CT image data projected by the camera, n and f are respectively the front plane and the back plane of the sample CT image data in the spatial position, and d is the distance from the plane where the projection screen is located to the plane where the camera is located.
4. The method according to claim 3, characterized in that The projection matrix is shown in the following formula:
5. The method according to claim 1, characterized in that The adjustment information of the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system includes the adjustment of the inner and outer eccentricities, the upper and lower eccentricities and the inner and outer valgus angles of the three-dimensional prosthesis model, wherein the adjustment of the inner and outer eccentricities is used to characterize the translation of the three-dimensional prosthesis model along the X-axis in the three-dimensional space coordinate system, the adjustment of the upper and lower eccentricities is used to characterize the translation of the three-dimensional prosthesis model along the Z-axis in the three-dimensional space coordinate system, and the adjustment of the inner and outer valgus angles is used to characterize the angle of rotation of the three-dimensional prosthesis model along the Y-axis of the three-dimensional space coordinate system around the geometric center direction of the three-dimensional prosthesis model; The step of adjusting the prosthesis in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system to obtain the target placement position information of the prosthesis in the X-ray coordinate system includes: Calculating first projection coordinate information of the first coordinate information in the projection screen according to first coordinate information of the first feature point in the three-dimensional space coordinate system and the projection matrix, wherein the first feature point is determined based on the three-dimensional prosthesis model before adjustment; Calculating second projection coordinate information of the second coordinate information on the projection screen according to second coordinate information of the second feature point in the three-dimensional space coordinate system and the projection matrix, wherein the second feature point is determined based on the adjusted three-dimensional prosthesis model; Performing homogenization processing on the first projection coordinate information and the second projection coordinate information respectively to obtain third coordinate information of the first projection coordinate information in the X-ray coordinate system and fourth coordinate information of the second projection coordinate information in the X-ray coordinate system; Adjusting the prosthesis by a first difference in the X-axis direction of the X-ray coordinate system to adjust the inner and outer eccentricities of the prosthesis in the X-ray coordinate system, wherein the first difference is the difference between the third coordinate information and the fourth coordinate information on the X-axis; Adjusting the prosthesis by a second difference in the Z-axis direction of the X-ray coordinate system to adjust the upper and lower eccentricities of the prosthesis in the X-ray coordinate system, wherein the second difference is the difference between the third coordinate information and the fourth coordinate information on the Z-axis; The prosthesis is rotated around the Y-axis in the X-ray coordinate system at a target angle to adjust the valgus and valgus angles of the prosthesis in the X-ray coordinate system, wherein the target angle is the angle at which the valgus and valgus angles of the three-dimensional prosthesis model are adjusted in the three-dimensional space coordinate system.
6. The method according to claim 5, characterized in that The adjustment information of the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system includes the adjustment of the front-back eccentricity of the three-dimensional prosthesis model, and the adjustment of the front-back eccentricity is used to represent the translation of the three-dimensional prosthesis model along the Y axis in the three-dimensional space coordinate system; The step of adjusting the prosthesis in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system to obtain the target placement position information of the prosthesis in the X-ray coordinate system includes: Acquire a first distance from the first coordinate information to the projection screen and a second distance from the second coordinate information to the projection screen; Calculating a first scaling factor of the three-dimensional prosthesis model according to the first distance and the second distance; The prosthesis is adjusted by a third difference in the Y-axis direction of the X-ray coordinate system. After the third difference is adjusted in the Y-axis direction of the X-ray coordinate system, the second DRR image is scaled according to the first scaling factor with the first projection coordinate information as the center on the second DRR image, and the scaled second DRR image is superimposed on the initial position information of the second DRR image to adjust the anterior-posterior eccentricity of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted, wherein the third difference is the difference between the third coordinate information and the fourth coordinate information on the Y-axis.
7. The method according to claim 5, characterized in that The adjustment information of the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system includes the adjustment of the front-back flip angle and the anteversion angle of the three-dimensional prosthesis model, the adjustment of the front-back flip angle is used to represent that the three-dimensional prosthesis model is rotated by a first preset angle in the three-dimensional space coordinate system around the geometric center of the three-dimensional prosthesis model and the axis line parallel to the X-axis of the three-dimensional space coordinate system, and the adjustment of the anteversion angle is used to represent that the three-dimensional prosthesis model is rotated by a second preset angle in the three-dimensional space coordinate system around the geometric center of the three-dimensional prosthesis model and the axis line parallel to the Z-axis of the femoral coordinate system; The step of adjusting the prosthesis in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system to obtain the target placement position information of the prosthesis in the X-ray coordinate system includes: Acquire a first length and a second length of the first feature point in the X-axis direction and the Z-axis direction, and a third length and a fourth length of the second feature point in the X-axis direction and the Z-axis direction; Obtaining a second scaling factor of the three-dimensional prosthesis model in the X-axis direction according to the first length and the third length; Obtaining a third scaling factor of the three-dimensional prosthesis model in the Z-axis direction according to the second length and the fourth length; Scaling the second DRR image in the X-axis direction according to the second scaling factor, and superimposing the scaled second DRR image onto the initial position information of the second DRR image, so as to adjust the front-back turning angle of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted; The second DRR image is scaled in the Z-axis direction according to the third scaling factor, and the scaled second DRR image is superimposed on the initial position information of the second DRR image to adjust the forward tilt angle of the prosthesis in the X-ray coordinate system after the three-dimensional prosthesis model is adjusted.
8. The method according to claim 7, characterized in that The method further comprises: Selecting a first preset number of feature points of the femoral head of the femur; Fitting the first preset number of feature points to obtain the spherical center of the femoral head; Taking the spherical center of the femoral head as the origin of the femoral coordinate system; The vector from the upper end point of the femoral shaft midline of the femur to the lower end point of the femoral shaft midline is used as the Z axis of the femoral coordinate; The upper end point of the midline of the femoral shaft is taken as the plane origin and the Z axis of the femoral coordinate system is taken as the normal vector, and the projection points of the inner concave point of the femur and the outer convex point of the femur on the plane are calculated to obtain the first projection point and the second projection point; Obtaining a projection vector based on the first projection point and the second projection point; Based on the projection vector and the Z axis of the femoral coordinate system, a fifth vector perpendicular to the projection vector and the Z axis of the femoral coordinate system is obtained; Determine the fifth vector as the Y axis of the femoral coordinate system; A sixth vector that is perpendicular to both the Z axis of the femoral coordinate system and the Y axis of the femoral coordinate system is determined as the X axis of the femoral coordinate system.
9. The method according to claim 1, characterized in that: The step of acquiring a first computer tomography (CT) image of a hip joint and second CT image data of a three-dimensional prosthesis model of the hip joint comprises: Generate first CT image data of the hip joint according to the third CT image data of the target object and the template CT image data of the hip joint, wherein the template CT image data only includes the bone image data of the hip joint; According to the first placement position information of the three-dimensional prosthesis model in the three-dimensional bone model of the hip joint, second CT image data of the three-dimensional prosthesis model is obtained.
10. A data processing device, characterized in that: The device comprises: A first acquisition module is used to acquire first electronic computer tomography CT image data of a hip joint and second CT image data of a three-dimensional prosthesis model of the hip joint, wherein the first CT image data only includes the bone structure of the hip joint; A first determination module is used to perform digitally reconstructed radiographic images (DRR) on the first CT image data and the second CT image data, respectively, to obtain a first DRR image of the hip joint and a second DRR image of the hip joint prosthesis, respectively; A second acquisition module is used to acquire initial placement position information of the three-dimensional prosthesis model in a three-dimensional space coordinate system; The second determination module is used to adjust the prosthesis in the X-ray coordinate system according to the adjustment information of the three-dimensional prosthesis model in the three-dimensional space coordinate system and the projection matrix between the three-dimensional space coordinate system and the X-ray coordinate system, so as to obtain the target placement position information of the prosthesis in the X-ray coordinate system when it is detected that the initial placement position information of the three-dimensional prosthesis model in the three-dimensional space coordinate system is adjusted, wherein the X-ray coordinate system is the coordinate system of the image obtained after DRR reconstruction of the CT image data.
11. An electronic device, characterized in that: It comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the data processing method as described in any one of claims 1 to 9.
12. A readable storage medium, characterized in that: The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the steps of the data processing method according to any one of claims 1 to 9 are implemented.
13. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the steps of the data processing method as described in any one of claims 1 to 9.
Citation Information
Cited By
Method and device for generating X-ray perspective image and X-ray perspective inspection system
CN119180878A
Method for generating simulated X-ray image in hip joint prosthesis planning and electronic equipment
CN119498954A
