Medical image processing method, system, computer device and storage medium
By obtaining the matching relationship between the real medical image and the target virtual medical image in the surgical navigation system, integrating the operation information into the real surgical space, and using the augmented reality device to display the mixed reality image, it solves the problem that the existing technology cannot provide surgery in a real scene. Data issues improve the accuracy and efficiency of surgery.
Patent Information
- Application Number
- CN202111338635.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-11-12
AI Technical Summary
The existing surgical navigation system cannot provide surgical data in real scenarios and lacks intelligence, resulting in doctors being unable to obtain accurate operational information in real time during the surgery.
By obtaining the matching relationship between the real medical image and the target virtual medical image, the operation information is integrated into the real space to be operated on, and the augmented reality device is used to display the mixed reality image and provide real-time operation prompts.
It achieves the provision of globally controllable data prompts in the real surgical space, improves the accuracy and efficiency of surgery, reduces the interaction between doctors and computers, and reduces the risk of contaminating the sterile area.
Smart Images

Figure CN114224508B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a medical image processing method, apparatus, computer equipment and storage medium. Background Art
[0002] With the development of computer technology, surgical navigation systems have emerged, which are in line with the development trend of precision surgery. Through the analysis of patients' medical images and the application of various sensors during surgery, surgical navigation systems provide more abundant reference information and more accurate guidance for surgical operations, becoming a powerful tool to assist doctors in completing surgery.
[0003] In traditional technology, the preoperative surgical plan is completed by collecting the patient's CT and other data before the operation in the computer of the surgical navigation system, and the doctor then performs the operation according to the preoperative surgical plan.
[0004] However, in the current surgical navigation system, doctors cannot see surgical data based on real scenarios and can only see preoperative surgical plans, which is not intelligent enough. Summary of the invention
[0005] Based on this, it is necessary to provide a medical image processing method, device, computer equipment and storage medium that can integrate operation information into the real space to be operated on and provide doctors with data prompts that can give a global grasp of the operation in order to address the above technical problems.
[0006] A medical image processing method, the method comprising:
[0007] Acquire a real medical image acquired by a real image acquisition device, wherein the real medical image includes a first marker;
[0008] Acquire a target virtual medical image corresponding to the real medical image and containing operation information, and a positional relationship between the target virtual medical image and the operation information, wherein the target virtual medical image includes the first marker;
[0009] Calculating a matching relationship between the target virtual medical image and the real medical image according to the first marker, and fusing the target virtual medical image with the real medical image to obtain a current medical image;
[0010] According to the matching relationship between the target virtual medical image and the real medical image and the positional relationship between the target virtual medical image and the operation information, the operation information is integrated into the current medical image.
[0011] In one embodiment, calculating the matching relationship between the target virtual medical image and the real medical image according to the first marker, and fusing the target virtual medical image with the real medical image to obtain the current medical image includes:
[0012] Calculating corresponding matching features between the target virtual medical image and the real medical image according to the first marker;
[0013] The matching relationship between the target virtual medical image and the real medical image is calculated according to the matching features, and the target virtual medical image and the real medical image are fused to obtain a current medical image.
[0014] In one of the embodiments, before acquiring the target virtual medical image corresponding to the real medical image, the method further includes:
[0015] Acquire an initial medical image scanned by a medical imaging device;
[0016] Performing three-dimensional reconstruction on the initial medical image to obtain a target virtual medical image;
[0017] An operation information configuration instruction for the target virtual medical image is received, and operation information is configured on the target virtual medical image according to the operation information configuration instruction, and a positional relationship between the target virtual medical image and the operation information is acquired.
[0018] In one embodiment, it is characterized in that the method further comprises:
[0019] Acquire a matching relationship between a visual space coordinate system of an augmented reality device and the real space coordinate system; acquire a reference image captured by the augmented reality device and to be displayed in the visual space;
[0020] According to the matching relationship between the visual space coordinate system of the augmented reality device and the real space coordinate system and the matching relationship between the target virtual medical image and the real medical image, the current medical image carrying the operation information is matched and fused with the reference image to obtain a mixed reality image, and the mixed reality image is displayed in the visual space of the augmented reality device.
[0021] In one embodiment, the step of obtaining a matching relationship between a visual space coordinate system of an augmented reality device and the real space coordinate system includes:
[0022] Obtaining a first transformation matrix between a real space coordinate system and an image space coordinate system of an augmented reality device;
[0023] Acquire a second transformation matrix between the image space coordinate system of the augmented reality device and the visual space coordinate system of the augmented reality device;
[0024] The matching relationship between the visual space coordinate system of the augmented reality device and the real space coordinate system is obtained according to the first transformation matrix and the second transformation matrix.
[0025] In one embodiment, obtaining a first transformation matrix between a real space coordinate system and an image space coordinate system of an augmented reality device includes:
[0026] Acquire a first reference object image of a first calibration reference object in an image space through an augmented reality device, establish an image coordinate system with a target point of the first reference object image as an origin, and determine a preset number of reference points from the first reference object image based on the image coordinate system;
[0027] Acquire a second reference object image of the first calibration reference object acquired by the real image acquisition device in the image coordinate system of the real image acquisition device, and determine a mapping point corresponding to the reference point from the second reference object image;
[0028] Convert the mapping points to a real space coordinate system;
[0029] Based on the coordinate calculation of the reference point and the mapping point in the real space coordinate system, a first transformation matrix between the real space coordinate system and the image space coordinate system of the augmented reality device is obtained.
[0030] In one embodiment, displaying the mixed reality image in the visual space of the augmented reality device further includes:
[0031] Acquiring a display angle of the mixed reality image;
[0032] Calculating a reference angle based on the display angle, and acquiring a target virtual medical image at the reference angle;
[0033] The target virtual medical image and the mixed reality image at the reference angle are displayed in the visual space.
[0034] In one embodiment, after displaying the mixed reality image in the visual space of the augmented reality device, the method further includes:
[0035] An editing instruction for the operation information is received through the enhanced display device; and the operation information is edited based on the editing instruction through the enhanced display device.
[0036] In one embodiment, the receiving, by the enhanced display device, an editing instruction for the operation information includes:
[0037] Recognizing the operator's gesture through the enhanced display device, and displaying the operation information editing instruction receiving panel when the operator's gesture meets the preset requirements;
[0038] An editing instruction for the operation information is received through the editing instruction receiving panel.
[0039] In one embodiment, the editing of the operation information based on the editing instruction includes:
[0040] The operation information at the corresponding angle is queried according to the editing instruction, and the queried operation information is displayed in the visual space.
[0041] In one embodiment, the editing of the operation information based on the editing instruction includes:
[0042] performing at least one of translation, rotation, and type and size transformation on the operation information according to the editing instruction;
[0043] The edited operation information is displayed in the visual space.
[0044] In one embodiment, the editing of the operation information based on the editing instruction includes:
[0045] Performing a capture operation on the mixed reality image according to the editing instruction to obtain a captured image;
[0046] An editing operation is performed on the operation information in the captured image, wherein the editing operation includes translation and / or rotation.
[0047] In one embodiment, after editing the operation information in the captured image, the method further includes:
[0048] The edited operation information is acquired, and the edited operation information is displayed in the visual space.
[0049] In one embodiment, the method further comprises:
[0050] A robot arm control command is generated according to the operation information, and the robot arm control command is sent to the robot arm, wherein the robot arm control command is used to instruct the robot arm to operate according to the operation information.
[0051] A medical image processing system, the system comprising a real image acquisition device and an image processing device;
[0052] The real image acquisition device is used to acquire a real medical image and send the acquired real medical image to the image processing device, wherein the real medical image includes a first marker;
[0053] The image processing device is used to implement the above-mentioned medical image processing method.
[0054] In one of the embodiments, the system further includes at least one display, which is connected to the image processing device, and is used to display a current medical image processed by the image processing device, wherein the current medical image carries operation information.
[0055] In one embodiment, the system further includes at least one medical imaging device, which is connected to the image processing device, and is used to scan and obtain an initial medical image, and send the scanned initial medical image to the image processing device.
[0056] In one of the embodiments, the system further includes an augmented reality device, which communicates with the image processing device, and the augmented reality device is used to display a mixed reality image processed by the image processing device.
[0057] In one of the embodiments, the augmented reality device is further used to receive an editing instruction for the operation information, and edit the operation information based on the editing instruction.
[0058] In one embodiment, the augmented reality device includes a gesture recognition module, an interactive control module and a display module. The gesture recognition module is used to recognize the operator's gesture, and when the operator's gesture meets the preset requirements, controls the display module to display the operation information editing instruction receiving panel; the interactive control module is used to convert and calculate the editing instructions received by the operation information editing instruction receiving panel, and display the converted operation information on the display module.
[0059] In one embodiment, the system further includes a robotic arm, a controller of the robotic arm communicates with the image processing device, the robotic arm is used to receive a robotic arm control command generated by the image processing device according to operation information, and to operate according to the operation information based on the robotic arm control instruction.
[0060] A surgical system, comprising a surgical trolley, a navigation trolley and an operating table;
[0061] A real medical image acquisition device is installed on the navigation trolley; an image processing device is installed on the operating trolley and / or the navigation trolley; the real image acquisition device is used to acquire a real medical image of a patient on the operating table and send the acquired real medical image to the image processing device, wherein the real medical image includes a first marker;
[0062] The image processing device is used to implement the medical image processing method described in any one of the above embodiments.
[0063] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0064] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.
[0065] The above-mentioned medical image processing method, device, computer equipment and storage medium first obtain a real medical image and a corresponding target virtual medical image, and then calculate the matching relationship between the real medical image and the corresponding target virtual medical image based on the first marker existing in the real medical image and the corresponding target virtual medical image, so that the real medical image and the corresponding target virtual medical image can be fused according to the matching relationship to obtain the current medical image, and the operation information is also fused and displayed in the current medical image, so that the operation information can be fused to the real space to be operated on, providing doctors with data prompts that can globally grasp the operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 is a schematic diagram of a medical image processing system in one embodiment;
[0067] Figure 2 is a schematic diagram of a medical image processing system in yet another embodiment;
[0068] Figure 3 is a schematic diagram of the relationship between various parts of an image processing system in one embodiment;
[0069] Figure 4 is a schematic flow chart of a medical image processing method in one embodiment;
[0070] Figure 5 is a schematic flow chart of a medical image processing method in another embodiment;
[0071] Figure 6 A schematic diagram of the spatial coordinate transformation relationship of each part in an embodiment;
[0072] Figure 7is a schematic diagram of a mixed display image in an embodiment;
[0073] Figure 8 A schematic diagram of the relationship between a real space coordinate system and an image space coordinate system of an augmented reality device in one embodiment;
[0074] Fig. 9 A schematic diagram showing a visual space of an augmented reality device in another embodiment;
[0075] Fig.10 A schematic diagram of an operation information adjustment process in one embodiment;
[0076] Fig.11 A schematic diagram showing a visual space of an augmented reality device in yet another embodiment;
[0077] Fig.12 is a functional schematic diagram of an interactive control module of an augmented reality device in an embodiment;
[0078] Fig.13 is a functional schematic diagram of an interactive control module of an augmented reality device in yet another embodiment;
[0079] Fig.14 is a functional schematic diagram of an interactive control module of an augmented reality device in yet another embodiment;
[0080] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0081] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0082] Combination Figure 1 As shown, in one embodiment of the present application, a medical image processing system is provided, which comprises at least an image processing device and a real medical image acquisition device, wherein the image processing device and the real medical image acquisition device communicate with each other. Figure 1 As shown, Figure 1Schematic diagram of a medical image processing system in an embodiment, in which the real medical image acquisition device is an optical tracking module 6. The image processing device here can be understood as a processor, and the processor is not limited to the processor in the navigation car, and it can also include a processor of an augmented reality device. In a preferred embodiment, the image processing system can include at least two processors, and at least two processors communicate with each other to complete different functions. For convenience, the processors with processing functions are collectively referred to as image processing devices.
[0083] The medical image processing system includes an image processing device and an optical tracking module 6, wherein the optical tracking module 6 is installed on a navigation trolley 9, and the image processing device can refer to the above definition, and is not specifically limited here. During the operation, the patient 17 lies on the operating table 16 and marks the surgical site with a first marker. Figure 1 Take the lower limb bones in the figure as an example, the lower limb bones include a tibia 14 and a femur 12, wherein the first marker includes a tibia marker 13 and a femur marker 11. The real medical image can be acquired through the optical tracking module 6, and the real medical image includes the first marker, so that the surgical site can be marked. The image processing device obtains a target virtual medical image corresponding to the real medical image, and the positional relationship between the target virtual medical image and the operation information. The target virtual medical image also includes the first marker, so that the real medical image and the target virtual medical image can be matched and fused to obtain the current medical image according to the first marker. In this way, according to the matching relationship between the target virtual medical image and the real medical image, and the positional relationship between the target virtual medical image and the operation information, the operation information can be displayed in the current medical image, so as to integrate the operation information into the real surgical site in real time.
[0084] In one embodiment, the medical image processing system further includes a display, such as Figure 1 The navigation trolley 9 is also equipped with a main display 8 and an auxiliary display 7, so that the image processing device can send the current medical image to the display for display. It should be noted that the current medical image displayed on the display carries the operation information. The navigation trolley 9 can also be equipped with a keyboard 10, etc., through which the operation information in the current medical image on the display can be adjusted.
[0085] In one embodiment, the medical image processing system also includes a robotic arm 2, which is fixed on an operating trolley 1. The operating trolley 1 includes a base target 15. The front end of the robotic arm 2 is provided with an oscillating saw 5, an osteotomy guide tool 4, etc., wherein the osteotomy guide tool 4 is also marked with a tool marker 3, so that the optical tracking module 6 can obtain the position of the tool in real time, and then adjust the position of the tool and the operation of the tool according to the operation information.
[0086] One point that needs to be explained is that the above-mentioned target virtual medical image is obtained through preoperative planning. For example, the target part is scanned by medical imaging equipment before the operation to obtain an initial medical image, and three-dimensional reconstruction is performed based on the initial medical image to obtain the target virtual medical image, and then operation information configuration instructions for the target virtual medical image are received, so as to configure the operation information on the target virtual medical image.
[0087] In one embodiment, in combination Figure 2 As shown, in order to enable the surgeon 21 to view the current medical image in real time without touching the computer, an augmented reality device is introduced. Furthermore, in order to enable the surgeon 21 to make optimal adjustments to the surgical plan based on the real surgical scene without touching the computer, an augmented reality device is introduced. Through the interactive operation of the augmented reality device, the adjustment of the operation information can be made faster and more accurate.
[0088] The augmented reality device communicates with the image processing device, so that the current medical image can be matched and fused with the reference image collected by the augmented reality device to obtain a mixed reality image, and then the mixed reality image is displayed in the augmented reality device. Preferably, the augmented reality device can also receive editing instructions for the operation information, and edit the operation information based on the editing instructions.
[0089] The augmented reality device includes a gesture recognition module, an interactive control module and a display module. The gesture recognition module is used to recognize the operator's gesture, and when the operator's gesture meets the preset requirements, the display module controls the display module to display the operation information editing instruction receiving panel; the interactive control module is used to convert and calculate the editing instructions received by the operation information editing instruction receiving panel, and display the converted operation information on the display module.
[0090] Specifically, combined Figure 3 As shown, Figure 3Schematic diagram of the relationship between the various parts of the image processing system in one embodiment, wherein first, the preoperative planning module obtains the initial medical image of the patient through the medical imaging device, and reconstructs the target virtual medical image, and then performs operation information on the target virtual medical image, that is, the configuration of the surgical plan, etc. The spatial coordinates corresponding to the target virtual medical image are called virtual surgical space coordinates. The optical tracking module 6 can obtain the position information of the first marker in the real surgical scene, so as to provide the real surgical space coordinates. The AR glasses 20 can collect the image in the real surgical scene and display it in its visual space, so that it can provide the visual space coordinates. The space matching module matches the virtual surgical space coordinates with the real surgical space coordinates according to the first marker, matches the real surgical space coordinates with the visual space coordinates, and then completes the matching of the virtual surgical space coordinates with the visual space coordinates, so that the operation information configured on the target virtual medical image can be displayed in the visual space.
[0091] Furthermore, combined with Figure 3 , wherein the AR glasses augmented reality device may include a gesture recognition module, an interactive control module and a display module, wherein the gesture recognition module is used to recognize the operator's gesture, so that the interactive control command panel button or the interactive control virtual rectangular box can be triggered according to the operator's gesture to send the operation information adjustment instruction. The interactive control module is used to process the coordinate system conversion calculation required for the interactive control, and provide the adjusted conversion relationship to the display module for display; the display module is used to fuse the operation information to the intraoperative area of the patient's 17 joint, provide suggestions for adjusting the operation information, and display the interactive control command panel and / or the interactive control virtual rectangular box for adjusting the operation information.
[0092] in, Figure 3 The various functional modules in the embodiment may be implemented by processors of different entities or may be implemented in one processor, and no specific limitation is made here.
[0093] In one embodiment, Figure 4 As shown, a medical image processing method is provided, which is applied to Figure 1 The image processing device in the embodiment is taken as an example to illustrate, and the following steps are included:
[0094] S402: Acquire a real medical image acquired by a real image acquisition device, where the real medical image includes a first marker.
[0095] Specifically, the real image acquisition device is Figure 1 The optical tracking module 6 in the real space can obtain the position of each first marker in the real space. The first marker is used to mark the surgical site and / or surgical equipment to be operated on in the real space. Figure 1For example, the first marker includes a tibia marker 13 and a femur marker 11, which can record the position of the patient's 17 bones in real space, so that the real image acquisition device can obtain the real space coordinate system by acquiring the real medical image including the first marker. Figure 1 , place the operating trolley 1 and the navigation trolley 9 at a suitable position next to the bed, install the femoral marker 11, tibial marker 13, base target 15, sterile bag, osteotomy guide tool 4, tool marker 3, etc. to provide a surgical environment.
[0096] The real medical images include real information about the real prosthesis, such as real-time force lines, prosthesis positioning effects, force line angles, flexion angle displays, and intraoperative osteotomy gaps.
[0097] S404: Acquire a target virtual medical image that corresponds to the real medical image and contains the operation information, and a positional relationship between the target virtual medical image and the operation information, wherein the target virtual medical image includes a first marker.
[0098] Specifically, the target virtual medical image is acquired before the surgical operation, for example, by collecting an initial medical image of the target part of the patient through a medical imaging device, and performing three-dimensional reconstruction on the initial medical image to obtain the target virtual medical image, so that the doctor can configure corresponding operation information on the target virtual medical image to guide the operation. The three-dimensional reconstruction can be obtained by first performing image segmentation on the initial medical image to obtain the target organ, tissue or bone, and then performing three-dimensional reconstruction. For subsequent coordinate space matching, before collecting the initial medical image, a corresponding first marker is installed at the corresponding feature point of the target area, and the reconstructed target virtual medical image includes the first marker.
[0099] Among them, the operation information is the surgical plan planned before surgery, which includes anatomical landmark marks and prosthesis information. Among them, the prosthesis information includes the model and installation orientation of the prosthesis, and the anatomical landmark marks are used to guide the operation trajectory of the surgical equipment, such as the operation trajectory of the robot 2, the screenshot plane coordinates, etc. After the target virtual medical image is generated, the doctor's operation information configuration instruction is received, so that the operation information is configured on the target virtual medical image, and then the position relationship between the target virtual medical image and the operation information is established according to the position size of the configured operation information. In actual application, the doctor calls the prosthesis icon of the corresponding model through the terminal, and then moves the prosthesis icon to the corresponding position of the target virtual medical image, and adjusts the size of the prosthesis icon to meet the requirements, and then generates the operation information according to the size and position of the prosthesis icon. Furthermore, the doctor can also configure the anatomical landmark, that is, select the corresponding anatomical point on the target virtual medical image. In other embodiments, the doctor can also automatically identify the anatomical points in the target virtual medical image by means of a neural network to improve efficiency.
[0100] After the operation information is planned before surgery, the target virtual medical image and operation information are imported into the image processing equipment during surgery for use during surgery.
[0101] S406: Calculate the matching relationship between the target virtual medical image and the real medical image according to the first marker, and fuse the target virtual medical image with the real medical image to obtain a current medical image.
[0102] Specifically, since the first marker exists in both the target virtual medical image and the real medical image and its position is fixed, that is, the relative position of the first marker and the target object, such as a bone, is fixed, the movement of the target object will not affect the surgical effect. Figure 1 For example, the actual positions of the femur 12 and tibia 14 are linked to the corresponding first markers mounted on the femur 12 and tibia 14, so that the femoral marker 11 and the tibia marker 13 can track the actual positions of the bones in real time.
[0103] In this way, according to the coordinate positions of each corresponding first marker in the target virtual medical image and the real medical image, a spatial transformation matrix can be established to calculate the matching relationship between the target virtual medical image and the real medical image, and then according to the matching relationship, the target virtual medical image can be mapped to the real medical image, that is, mapped to the real space to obtain the current medical image. In this way, the current medical image includes both the information in the real space and the information of the preoperative planning.
[0104] When calculating the matching relationship, the optical tracking module 6 collects the first marker to obtain the target object, such as the feature point position of the bone, and then sends the position of the feature point to the image processing device. Finally, the feature matching algorithm of the image processing device is used to calculate the correspondence between the target object in the real space and the target object in the target virtual medical image, that is, the matching relationship between the target virtual medical image and the real medical image.
[0105] S408: According to the matching relationship between the target virtual medical image and the real medical image, and the positional relationship between the target virtual medical image and the operation information, the operation information is integrated into the current medical image.
[0106] Specifically, the image processing device converts the operation information into the target virtual medical image coordinate system based on the positional relationship between the operation information and the target virtual medical image, and then converts the operation information in the target virtual medical image coordinate system into the coordinate system of the real medical image based on the matching relationship between the target virtual medical image and the real medical image, and then displays it in the current medical image obtained by the fusion of the target virtual medical image and the real medical image, so that the doctor can fuse the operation information into the real space to be operated on, providing the doctor with data prompts that can help the doctor grasp the operation globally.
[0107] The above-mentioned medical image processing method first obtains a real medical image and a corresponding target virtual medical image, and then calculates the matching relationship between the real medical image and the corresponding target virtual medical image based on the first marker existing in the real medical image and the corresponding target virtual medical image, so that the real medical image and the corresponding target virtual medical image can be fused according to the matching relationship to obtain the current medical image, and the operation information is also fused and displayed in the current medical image, so that the doctor can fuse the operation information into the real space to be operated on, providing the doctor with data prompts that can globally grasp the operation.
[0108] In one of the embodiments, a matching relationship between a target virtual medical image and a real medical image is calculated based on a first marker, and the target virtual medical image and the real medical image are fused to obtain a current medical image, including: calculating corresponding matching features in the target virtual medical image and the real medical image based on the first marker; calculating a matching relationship between the target virtual medical image and the real medical image based on the matching features, and fusing the target virtual medical image with the real medical image to obtain the current medical image.
[0109] Specifically, the matching feature refers to the feature point of the target object corresponding to the target virtual medical image and the real medical image, which is obtained by marking with a first marker. For example, before the real medical image is acquired, the first marker is installed at the position of the target object, so that the optical tracking module 6 can track the position of the first marker. Before the target virtual medical image is acquired, the first marker is also installed at the corresponding position of the target object, so that the first marker exists in the initial medical image acquired, and then the first marker also exists in the reconstructed target virtual medical image. The matching features in the target virtual medical image and the real medical image are determined according to the corresponding first marker, and then the spatial transformation matrix can be constructed according to these matching features to obtain the matching relationship between the target virtual medical image and the real medical image. Therefore, the target virtual medical image and the real medical image can be fused according to the obtained matching relationship to obtain the current medical image.
[0110] In the above embodiment, the first marker is used to achieve the matching of the real space and the virtual space, thereby laying a foundation for the subsequent display of the surgical plan, that is, the operation information, in the real space.
[0111] In one of the embodiments, before obtaining a target virtual medical image corresponding to a real medical image, the method further includes: obtaining an initial medical image scanned by a medical imaging device; performing three-dimensional reconstruction on the initial medical image to obtain a target virtual medical image; receiving an operation information configuration instruction for the target virtual medical image, and configuring operation information on the target virtual medical image according to the operation information configuration instruction, and obtaining a positional relationship between the target virtual medical image and the operation information.
[0112] Specifically, the initial medical image is obtained by scanning the target object with a medical imaging device, such as by scanning with a CT or other medical imaging device. Figure 1 Taking the lower limb bones in the operation as an example, before the operation, the lower limb bones are scanned to obtain an initial medical image, and the initial medical image is segmented to obtain a target object, and then three-dimensional reconstruction is performed based on the segmented target object to obtain a target virtual medical image.
[0113] Doctors can configure anatomical landmarks and prosthesis information on the target virtual medical image, so as to generate operation information. Taking the lower limb bones as an example, doctors can configure all anatomical feature points (such as the rotation center of the femur 12, the knee joint center, the talus center, etc.), all corresponding lines (such as force lines, condylar lines, etc.), related angles (such as force line angles, internal and external rotation angles, etc.), osteotomy markers (such as the distal tangent points of the internal and external condyles of the femur 12, the internal and external tangent points of the posterior condyle, etc.) and osteotomy thickness (such as the internal and external osteotomy thickness of the distal femur 12, the proximal osteotomy thickness of the tibia 14, etc.) on the target virtual medical image, and can also configure the prosthesis positioning, etc. on the target virtual medical image. The operation information configured by the doctor is not limited here, and only the surgical needs are targeted.
[0114] After the operation information is configured, the positional relationship between the operation information and the target virtual medical image may be recorded, for example, the coordinates of the corresponding operation information may be obtained in the virtual coordinate system of the target virtual medical image.
[0115] In the above embodiment, medical images of the target object are collected before the operation, and corresponding operation information is configured, which lays a foundation for subsequently displaying the operation information in the real space.
[0116] Specifically, combined Figure 5 As shown, Figure 5 The figure is a flowchart of a medical image processing method in another embodiment, wherein before surgery, CT image data of a target object of a patient is obtained, and the CT image data is subjected to bone segmentation, and three-dimensional bone reconstruction is performed based on the bone segmentation result, and anatomical landmarks are marked on the reconstructed CT image, and the prosthesis is positioned according to the anatomical landmarks, wherein the anatomical landmarks and the prosthesis positioning are the operation information mentioned above. The reconstructed CT image corresponds to a virtual surgical space.
[0117] Before the operation, the robot 2 and the navigation trolley 9 are placed at a suitable position next to the bed, and the first marker, that is, the optical marker, is installed. The position of the first marker on the patient's 17 bone is collected through the optical tracking module 6 to obtain the characteristic point position data on the patient's 17 bone, and then the real surgical space is matched with the virtual surgical space through the feature matching algorithm to realize the display of the operation information in the real surgical space, and the operation information can be adjusted in combination with the real surgical space during the operation, that is, the doctor adjusts and confirms the preoperative surgical plan based on the actual situation during the operation. The osteotomy plane coordinates in the operation information are sent to the robot 2, and the robot 2 can automatically locate to the corresponding place, which can assist the doctor in osteotomy, that is, the doctor can use the oscillating saw 5 or the electric drill to perform osteotomy and drilling operations through the osteotomy guide groove and guide hole of the osteotomy guide tool 4. If the osteotomy is completed, the prosthesis is installed, otherwise the adjustment of the operation information can be repeated to complete the osteotomy. After all the osteotomy and drilling operations are completed, the doctor can install the prosthesis and perform other surgical operations.
[0118] In one of the embodiments, an augmented reality device is introduced to enable the surgeon 21 to view the current medical image in real time without touching the computer. The above-mentioned image processing method also includes: obtaining the matching relationship between the image coordinate system in the visual space of the augmented reality device and the matching space coordinate system of the real medical image; obtaining the reference image collected by the augmented reality device and to be displayed in the visual space; according to the matching relationship between the image in the visual space coordinate system of the augmented reality device and the image in the real medical space coordinate system, and the matching relationship between the target virtual medical image and the real medical image, the current medical image carrying the operation information is matched and fused with the reference image to obtain a mixed reality image, and the mixed reality image is displayed in the visual space of the augmented reality device.
[0119] Specifically, the augmented reality device may refer to AR glasses, etc., which can collect medical images in real space and convert the medical images in real space to the visual space of the augmented reality device for display. In other words, the doctor sees the image in the visual space. In order to enable the doctor to see the real medical image and operation information, it is necessary to match and fuse the target virtual medical image carrying the operation information with the reference image in the visual space.
[0120] Combination Figure 6 As shown, Figure 6 Schematic diagram of the spatial coordinate transformation relationship of each part in an embodiment, wherein the transformation relationship of the virtual surgical space coordinate system to the visual space coordinate system can be calculated by the following formula:
[0121] DT R =CT R *DT C =CTB *ET C *DT E
[0122] The transformation relationship between the virtual surgical space coordinate system R and the real surgical space coordinate system C is CT R The transformation relationship ET between the optical marker and the image coordinate system of the augmented reality device can be obtained by matching the three-dimensional reconstructed bone model surface point cloud data with the feature point cloud data on the real bone surface of the patient 17 recorded by the optical tracking module 6. C It can be obtained through calibration. The transformation relationship DT between the image coordinate system of the augmented reality device and the visual space coordinate system of the augmented reality device E It can be obtained through image recognition algorithm. In this way, the conversion relationship from the virtual surgical space coordinate system to the visual space coordinate system can be obtained, so that the current medical image carrying the operation information can be matched and fused with the reference image to obtain a mixed reality image, and the mixed reality image can be displayed in the visual space of the augmented reality device.
[0123] Specifically, combined Figure 7 As shown, Figure 7 It is a schematic diagram of a mixed display image in an embodiment, in which a mixed reality image of the force line, force line angle, prosthesis position and intraoperative osteotomy gap of the patient 17 in the extended position is displayed in real time.
[0124] Among them combined Figure 7 The conversion relationship of each spatial coordinate system is described. The content displayed by the mixed reality image of the embodiment of the present invention includes at least but not limited to the following aspects: all anatomical feature points marked in the virtual surgical space (such as the rotation center B of the femur 12, the knee joint center C, the talus center D, etc.) and all corresponding lines (such as force lines, condylar lines, etc.) can be integrated into the real surgical scene in real time, and the relevant angles (such as force line angle A, internal and external rotation angles, femur 12 rotation center B, etc.) can be displayed. The preoperatively planned prosthesis positioning can be integrated into the real surgical scene for the doctor to view the prosthesis positioning effect on the real bone; the osteotomy marking points (such as the distal tangent points of the internal and external condyles of the femur 12, the medial and lateral tangent points of the posterior condyle, etc.) and the osteotomy thickness (such as the medial and lateral osteotomy thickness of the distal femur 12, the proximal osteotomy thickness of the tibia 14, etc.) can be integrated into the real surgical scene.
[0125] Among them Figure 7Also shown are the lateral distal plane E of the femoral prosthesis 12, the lateral distal plane F of the tibial prosthesis 14, the lateral osteotomy gap G of the knee joint in the extended position, the medial distal plane H of the femoral prosthesis 12, the medial osteotomy gap I in the extended position, the medial distal plane J of the tibial prosthesis 14, the femur 12K of the real patient 17, the virtual femoral prosthesis 12 L, the virtual tibial prosthesis 14 M, the tibia 14N of the real patient 17, and the fibula Z of the real patient 17. Figure 7 As shown, no further description is given here.
[0126] In one of the embodiments, the method of obtaining the matching relationship between the image coordinate system in the visual space of the augmented reality device and the matching space coordinate system of the real medical image includes: obtaining a first transformation matrix between the real space coordinate system and the image space coordinate system of the augmented reality device; obtaining a second transformation matrix between the image space coordinate system of the augmented reality device and the visual space coordinate system of the augmented reality device; and obtaining the matching relationship between the visual space coordinate system of the augmented reality device and the real space coordinate system based on the first transformation matrix and the second transformation matrix.
[0127] Among them, the first transformation matrix is the first transformation matrix between the real space coordinate system (that is, the real surgical space coordinate system mentioned above) and the image space coordinate system of the augmented reality device. The first transformation matrix can be a transformation matrix between the optical marker and the image 19 to be identified by the AR glasses obtained by calibration method, so as to establish a matching relationship between the real space coordinate system and the image space coordinate system of the augmented reality device. For details, please refer to the following.
[0128] The second transformation matrix is a second transformation matrix between the image space coordinate system of the augmented reality device and the visual space coordinate system of the augmented reality device obtained through an image recognition algorithm.
[0129] In this way, the matching relationship between the visual space coordinate system and the real space coordinate system of the augmented reality device is obtained according to the first transformation matrix and the second transformation matrix.
[0130] Specifically, obtaining a first conversion matrix between a real space coordinate system and an image space coordinate system of an augmented reality device includes: acquiring a first reference object image of a first calibration reference object in image space through an augmented reality device, establishing an image coordinate system with a target point of the first reference object image as the origin, and determining a preset number of reference points from the first reference object image based on the image coordinate system; acquiring a second reference object image of the first calibration reference object acquired by the real image acquisition device in the image coordinate system of the real image acquisition device, and determining mapping points corresponding to the reference points from the second reference object image; converting the mapping points to the real space coordinate system; and obtaining a first conversion matrix between the real space coordinate system and the image space coordinate system of the augmented reality device based on coordinate calculation of the reference points and the mapping points in the real space coordinate system.
[0131] Specifically, combined Figure 8 As shown, Figure 8 The system includes an optical tracking module 6, a base target 15, a pointed target 18, and an image 19 to be identified of an augmented reality device, wherein the first calibration reference object is the physical reference object corresponding to the image 19 to be identified, and the image 19 to be identified can be any type of image that can be identified by the augmented reality device, such as a QR code, a frame image, etc. The image 19 to be identified of the augmented reality device is fixed on the base target 15, and in other embodiments, it can be fixed on any other target and keep the position fixed, that is, the picture collected by the augmented reality device is the base target 15. The coordinate system where the base target 15 is located is the real space coordinate system.
[0132] The image of the base target 15 in the image space is collected by the augmented reality device, and the image coordinate system is established with the center point of the image as the origin to obtain at least four coordinate points ABCD. The second reference object image of the corresponding pointed target 18 in the image coordinate system of the real image acquisition device is obtained by the optical tracking module 6, and the mapping point corresponding to the reference point is determined from the second reference object image, and then the mapping point is converted to the corresponding base target 15 coordinate system, that is, the real space coordinate system, so that the conversion relationship between the reference point and the mapping point in the real space coordinate system can be obtained by calculating the coordinates of the reference point and the mapping point in the real space coordinate system, that is, using the feature matching algorithm according to the coordinates of the corresponding points.
[0133] In the above embodiment, a calibration method of the first transformation matrix between the real space coordinate system and the image space coordinate system of the augmented reality device is provided.
[0134] In one of the embodiments, after displaying the mixed reality image in the visual space of the augmented reality device, it also includes: obtaining the display angle of the mixed reality image; calculating a reference angle based on the display angle, and obtaining a target virtual medical image at the reference angle; and displaying the target virtual medical image at the reference angle and the mixed reality image in the visual space.
[0135] Specifically, combined Fig. 9 As shown, Fig. 9 Schematic diagram of the display of the visual space of the augmented reality device in another embodiment. In this embodiment, the visual space displays the force line, flexion angle, prosthesis position and intraoperative osteotomy gap of the patient 17 in the flexed position in real time, wherein the mixed reality image includes the flexion angle A2, the rotation center B of the femur 12, the knee joint center C, and the talus center D. The image processing device also obtains the display angle of the mixed display image in the visual space, and then calculates the reference angle according to the display angle, such as an angle 90 degrees to the display angle, so as to obtain the reference angle of the mixed display image in the visual space. Fig. 9For example, the image processing device extracts the target virtual medical image at the corresponding angle from the target virtual medical image according to the reference angle, and displays it in the visual space together with the mixed reality image. Fig. 9 The lateral posterior condyle plane E2 of the femoral prosthesis 12, the lateral distal plane F of the tibial prosthesis 14, the lateral osteotomy gap G2- in the flexion position, the medial posterior condyle plane H2 of the femoral prosthesis 12, the medial osteotomy gap I2 in the flexion position, the medial distal plane J of the tibial prosthesis 14, the real patient 17 femur 12K, the virtual femur 12 prosthesis L, the virtual tibial prosthesis M, the real patient 17 tibia 14N and the real patient 17 fibula Z.
[0136] In one of the embodiments, after displaying the mixed reality image in the visual space of the augmented reality device, it also includes: receiving an editing instruction for operation information through the augmented reality device; and editing the operation information based on the editing instruction through the augmented reality device.
[0137] Combination Fig.10 As shown, Fig.10 It is a schematic diagram of the operation information adjustment process in one embodiment, wherein the editing instructions include but are not limited to position adjustment, display adjustment, etc.
[0138] Among them, combined Fig.10 and Figure 2 First, a matching relationship between the real surgical space and the image to be identified 19 (the image coordinate system of the augmented reality device) is established through the conversion matrix between the optical marker and the image to be identified 19 of the AR glasses. Then, the coordinates of the AR image to be identified 19 in the glasses visual space are obtained, and a matching relationship between the image coordinate system and the glasses visual space is established. In this way, a matching relationship between the real surgical space and the glasses visual space can be established. Since there is a matching relationship between the real surgical space and the virtual surgical space, a matching relationship between the virtual surgical space and the glasses visual space can be established. Then, the operation information in the virtual surgical space can be integrated into the real surgical scene, that is, integrated into the glasses visual space scene. In this way, the doctor can use the gesture recognition and interactive control operations of the augmented reality device to make intraoperative plans, that is, adjust the operation information.
[0139] In one of the embodiments, receiving editing instructions for operation information through an augmented reality device includes: recognizing operator gestures through the augmented reality device, and displaying an operation information editing instruction receiving panel when the operator gestures meet preset requirements; receiving editing instructions for the operation information through the editing instruction receiving panel.
[0140] Specifically, the augmented reality device may include multiple modules, combined with Figure 2 and Figure 3, wherein the gesture recognition module of the augmented reality device is used to recognize the surgeon's gesture 22, thereby triggering the reality editing command receiving panel, wherein the editing command receiving panel can be an interactive control command panel button or an interactively controlled virtual rectangular box to send a plan adjustment instruction. The interactive control module is used to process the coordinate system conversion calculation required for interactive control, and provide the adjusted conversion relationship to the display module for display; the display module is used to integrate the surgical plan information into the intraoperative area of the patient's 17 joint, provide suggestions for adjusting the surgical plan, and display the interactive control command panel and the interactively controlled virtual rectangular box for intraoperative plan adjustment.
[0141] In one embodiment, editing the operation information based on the editing instruction includes: querying the operation information at a corresponding angle according to the editing instruction, and displaying the queried operation information in the visual space.
[0142] Specifically, combined Fig.11 and Fig.12 As shown, Fig.11 A schematic diagram of displaying a visual space of an augmented reality device in yet another embodiment.
[0143] Among them, the editing instruction can be a query instruction, so as to query the operation information at the corresponding angle and display the queried operation information in the visual space, wherein the corresponding angle can be the operation information of the patient 17 in the extended position and the operation information of the patient 17 in the flexed position. In other embodiments, other angles can be set in advance to facilitate user selection, and then the operation information at the corresponding angle can be displayed.
[0144] like Fig.11 As shown, the doctor can also choose to display the overall surgical plan information (prosthesis model and size, angle and osteotomy amount) of the patient 17 in the extended position in real time in the AR glasses, so that the doctor can have a global grasp of the surgical-related data.
[0145] In other embodiments, the doctor may also choose to display the overall surgical plan information (prosthesis model and size, angle, and osteotomy amount) of the patient 17 in the flexion position in the AR glasses in real time, so that the doctor can have a global grasp of the surgical-related data.
[0146] In one of the embodiments, editing the operation information based on the editing instruction includes: translating, rotating, and transforming the type and size of the operation information according to the editing instruction; and displaying the edited operation information in the visual space.
[0147] Specifically, combined Fig.12 , Fig.12 A functional schematic diagram of an interactive control module of an augmented reality device in one embodiment.
[0148] like Fig.12 As shown, it is a schematic diagram of an interactive control panel in AR glasses that allows doctors to adjust the intraoperative plan of femur 12 in real time, so that doctors can use their fingers to trigger the corresponding up, down, left, right, and rotation command buttons 22 in the front, right, and top views to change the corresponding angle and osteotomy plan; they can also use their fingers to trigger the corresponding command buttons 22 in the right column of the schematic diagram to change the prosthesis type and size, as well as the adjustment range of distance and angle.
[0149] In other embodiments, an interactive control panel can be provided in the AR glasses for the doctor to adjust the intraoperative plan of the tibia 14 in real time, so that the doctor can use his fingers to trigger the corresponding up, down, left, right, and rotation command buttons 22 in the front, right, and top views to change the corresponding angle and osteotomy plan; the doctor can also use his fingers to trigger the corresponding command button 22 in the right column of the schematic diagram to change the prosthesis type and size, as well as the adjustment range of the distance and angle.
[0150] In one of the embodiments, the operation information is edited based on the editing instruction, including: performing a capture operation on the current medical mixed reality image according to the editing instruction to obtain a captured image; and performing an editing operation on the operation information in the captured image, the editing operation including translation and / or rotation.
[0151] In one of the embodiments, after editing the operation information in the captured image, the method further includes: acquiring the edited operation information, and displaying the edited operation information in the visual space.
[0152] Specifically, combined Fig.13 and Fig.14 As shown, Fig.13 is a functional schematic diagram of an interactive control module of an augmented reality device in yet another embodiment, Fig.14 A functional schematic diagram of an interactive control module of an augmented reality device in yet another embodiment.
[0153] like Fig.13 As shown, it is a schematic diagram of the AR glasses allowing doctors to adjust the femur 12 intraoperatively by gesture grabbing in real time, wherein the patient 17's real femur 12K and the femur 12 virtual prosthesis L are displayed. The doctor can grab the virtual rectangular frame 23 for adjusting the prosthesis position by hand, translate it up and down, left and right, and rotate it, and the adjusted plan details are displayed in real time on the plan details display panel 24 during the intraoperative plan adjustment.
[0154] like Fig.14As shown, it is a schematic diagram of the AR glasses that allows doctors to adjust the tibia 14 intraoperative gesture grabbing scheme in real time, wherein the virtual tibia 14 prosthesis M, the patient 17 real tibia 14N and the patient 17 real fibula Z are displayed. The doctor can grab the virtual rectangular frame 23 for adjusting the prosthesis position by hand, translate it up and down, left and right, and rotate it, and the adjusted scheme details are displayed in real time on the scheme details display panel 24 during the intraoperative scheme adjustment.
[0155] In one of the embodiments, the method further includes: generating a robot arm 2 control command according to the operation information, and sending the robot arm 2 control command to the robot arm 2, wherein the robot arm 2 control command is used to instruct the robot arm 2 to operate according to the operation information.
[0156] Specifically, after the operation information is determined, a robot arm 2 control command is generated according to the operation information to send the robot arm 2 control command to the robot arm 2, so that the robot arm 2 can perform operations according to the operation information to assist the doctor in performing osteotomy, etc.
[0157] In each of the above embodiments, a conversion relationship between the virtual surgical space, the real surgical space and the AR glasses visual space is established, so that the information between the three can be quickly converted and integrated. And the detailed surgical plan information is integrated into the real surgical site using augmented reality technology (including real-time force lines, prosthesis positioning effects, force line angles, flexion angle displays, intraoperative osteotomy gaps, etc.), providing doctors with data prompts and adjustment plan prompts that can globally grasp the operation, and produce more accurate and personalized surgical plans. Furthermore, a convenient interactive operation based on augmented reality technology is set up, so that the surgeon 21 can make the optimal adjustment of the surgical plan based on the real surgical scene in real time without touching the computer, reducing the risk of contaminating the sterile area.
[0158] It should be understood that although Figure 4 and Figure 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 4 and Figure 5 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0159] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.15 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a medical image processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard 10, touchpad or mouse, etc.
[0160] Those skilled in the art will understand that Fig.15 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0161] In one embodiment, a computer device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining a real medical image acquired by a real image acquisition device, wherein the real medical image includes a first marker; obtaining a target virtual medical image corresponding to the real medical image and containing operation information, and a positional relationship between the target virtual medical image and the operation information, wherein the target virtual medical image includes a first marker; calculating a matching relationship between the target virtual medical image and the real medical image based on the first marker, and fusing the target virtual medical image with the real medical image to obtain a current medical image; and fusing the operation information into the current medical image based on the matching relationship between the target virtual medical image and the real medical image and the positional relationship between the target virtual medical image and the operation information.
[0162] In one embodiment, the processor executes a computer program to calculate the matching relationship between the target virtual medical image and the real medical image based on the first marker, and fuse the target virtual medical image with the real medical image to obtain the current medical image, including: calculating the corresponding matching features in the target virtual medical image and the real medical image based on the first marker; calculating the matching relationship between the target virtual medical image and the real medical image based on the matching features, and fusing the target virtual medical image with the real medical image to obtain the current medical image.
[0163] In one embodiment, before the processor executes the computer program to obtain the target virtual medical image corresponding to the real medical image, the method also includes: obtaining an initial medical image scanned by a medical imaging device; performing three-dimensional reconstruction on the initial medical image to obtain the target virtual medical image; receiving an operation information configuration instruction for the target virtual medical image, and configuring the operation information on the target virtual medical image according to the operation information configuration instruction, and obtaining the positional relationship between the target virtual medical image and the operation information.
[0164] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the matching relationship between the image coordinate system in the visual space of the augmented reality device and the matching space coordinate system of the real medical image; according to the matching relationship between the image in the visual space coordinate system of the augmented reality device and the image in the real medical space coordinate system, and the matching relationship between the target virtual medical image and the real medical image, matching and fusing the current medical image carrying the operation information with the reference image to obtain a mixed reality image, and displaying the mixed reality image in the visual space of the augmented reality device.
[0165] In one embodiment, the processor executes a computer program to obtain a matching relationship between an image coordinate system in the visual space of an augmented reality device and a matching space coordinate system of a real medical image, including: obtaining a first transformation matrix between the real space coordinate system and the image space coordinate system of the augmented reality device; obtaining a second transformation matrix between the image space coordinate system of the augmented reality device and the visual space coordinate system of the augmented reality device; and obtaining a matching relationship between the visual space coordinate system of the augmented reality device and the real space coordinate system based on the first transformation matrix and the second transformation matrix.
[0166] In one embodiment, the first transformation matrix of a real space coordinate system and an image space coordinate system of an augmented reality device implemented by a processor executing a computer program includes: acquiring a first reference object image of a first calibration reference object in an image space through an augmented reality device, establishing an image coordinate system with a target point of the first reference object image as an origin, and determining a preset number of reference points from the first reference object image based on the image coordinate system; acquiring a second reference object image of the first calibration reference object acquired by the real image acquisition device in the image coordinate system of the real image acquisition device, and determining mapping points corresponding to the reference points from the second reference object image; and obtaining a first transformation matrix of the real space coordinate system and the image space coordinate system of the augmented reality device based on coordinate calculation of the reference points and the mapping points in the real space coordinate system.
[0167] In one embodiment, after the processor executes a computer program to display the mixed reality image in the visual space of the augmented reality device, it also includes: displaying the target virtual medical image and the mixed reality image at a reference angle in the visual space; calculating the reference angle based on the display angle, and acquiring the target virtual medical image at the reference angle; displaying the target virtual medical image and the mixed reality image at the reference angle in the visual space.
[0168] In one embodiment, after the processor executes the computer program to display the mixed reality image in the visual space of the augmented reality device, it also includes: receiving editing instructions for operation information through the augmented reality device; and editing the operation information based on the editing instructions through the augmented reality device.
[0169] In one embodiment, the receiving of editing instructions for operation information through an augmented reality device implemented when the processor executes a computer program includes: recognizing operator gestures through the augmented reality device, and displaying an operation information editing instruction receiving panel when the operator gesture meets preset requirements; receiving editing instructions for the operation information through the editing instruction receiving panel.
[0170] In one embodiment, the editing of the operation information based on the editing instruction implemented when the processor executes the computer program includes: querying the operation information at the corresponding angle according to the editing instruction, and displaying the queried operation information in the visual space.
[0171] In one embodiment, the editing of operation information based on the editing instruction implemented when the processor executes the computer program includes: translating, rotating, and transforming the type and size of the operation information according to the editing instruction; and displaying the edited operation information in the visual space.
[0172] In one embodiment, the editing of operation information based on editing instructions implemented when the processor executes a computer program includes: performing a capture operation on the current medical mixed reality image according to the editing instruction to obtain a captured image; and performing an editing operation on the operation information in the captured image, wherein the editing operation includes translation and / or rotation.
[0173] In one embodiment, after the processor executes the computer program to edit the operation information in the captured image, the method further includes: acquiring the edited operation information, and displaying the edited operation information in the visual space.
[0174] In one embodiment, when the processor executes the computer program, it also implements the following steps: generating a robot arm 2 control command according to the operation information, and sending the robot arm 2 control command to the robot arm 2, wherein the robot arm 2 control command is used to instruct the robot arm 2 to operate according to the operation information.
[0175] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining a real medical image acquired by a real image acquisition device, the real medical image including a first marker; obtaining a target virtual medical image corresponding to the real medical image and containing operation information, and a positional relationship between the target virtual medical image and the operation information, the target virtual medical image including the first marker; calculating a matching relationship between the target virtual medical image and the real medical image based on the first marker, and fusing the target virtual medical image with the real medical image to obtain a current medical image; and displaying the operation information in the current medical image based on the matching relationship between the target virtual medical image and the real medical image and the positional relationship between the target virtual medical image and the operation information.
[0176] In one embodiment, the computer program implemented when executed by a processor calculates the matching relationship between a target virtual medical image and a real medical image based on a first marker, and fuses the target virtual medical image with the real medical image to obtain a current medical image, including: calculating corresponding matching features in the target virtual medical image and the real medical image based on the first marker; calculating the matching relationship between the target virtual medical image and the real medical image based on the matching features, and fusing the target virtual medical image with the real medical image to obtain the current medical image.
[0177] In one embodiment, before obtaining a target virtual medical image corresponding to a real medical image when the computer program is executed by a processor, the method further includes: obtaining an initial medical image scanned by a medical imaging device; performing three-dimensional reconstruction on the initial medical image to obtain a target virtual medical image; receiving an operation information configuration instruction for the target virtual medical image, configuring operation information on the target virtual medical image according to the operation information configuration instruction, and obtaining a positional relationship between the target virtual medical image and the operation information.
[0178] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the matching relationship between the image coordinate system in the visual space of the augmented reality device and the matching space coordinate system of the real medical image; according to the matching relationship between the image in the visual space coordinate system of the augmented reality device and the image in the real medical space coordinate system, and the matching relationship between the target virtual medical image and the real medical image, matching and fusing the current medical image carrying the operation information with the reference image to obtain a mixed reality image, and displaying the mixed reality image in the visual space of the augmented reality device.
[0179] In one embodiment, the computer program implemented when executed by a processor obtains the matching relationship between the image coordinate system in the visual space of an augmented reality device and the matching space coordinate system of a real medical image, including: obtaining a first transformation matrix between the real space coordinate system and the image space coordinate system of the augmented reality device; obtaining a second transformation matrix between the image space coordinate system of the augmented reality device and the visual space coordinate system of the augmented reality device; and obtaining the matching relationship between the visual space coordinate system of the augmented reality device and the real space coordinate system based on the first transformation matrix and the second transformation matrix.
[0180] In one embodiment, the computer program implemented when executed by the processor obtains a first transformation matrix between a real space coordinate system and an image space coordinate system of an augmented reality device, including: acquiring a first reference object image of a first calibration reference object in image space through the augmented reality device, establishing an image coordinate system with a target point of the first reference object image as the origin, and determining a preset number of reference points from the first reference object image based on the image coordinate system; acquiring a second reference object image of the first calibration reference object acquired by the real image acquisition device in the image coordinate system of the real image acquisition device, and determining mapping points corresponding to the reference points from the second reference object image; and obtaining a first transformation matrix between the real space coordinate system and the image space coordinate system of the augmented reality device based on coordinate calculation of the reference points and the mapping points in the real space coordinate system.
[0181] In one embodiment, after the computer program is executed by the processor and displays the mixed reality image in the visual space of the augmented reality device, it also includes: displaying the target virtual medical image and the mixed reality image at a reference angle in the visual space; calculating the reference angle based on the display angle, and acquiring the target virtual medical image at the reference angle; displaying the target virtual medical image and the mixed reality image at the reference angle in the visual space.
[0182] In one embodiment, after the computer program is executed by the processor to display the mixed reality image in the visual space of the augmented reality device, it also includes: receiving editing instructions for operation information through the augmented reality device; and editing the operation information based on the editing instructions through the augmented reality device.
[0183] In one embodiment, the computer program implemented when executed by the processor receives editing instructions for operation information through an augmented reality device, including: recognizing operator gestures through the augmented reality device, and displaying an operation information editing instruction receiving panel when the operator gesture meets preset requirements; receiving editing instructions for the operation information through the editing instruction receiving panel.
[0184] In one embodiment, the computer program executed by the processor implements editing of the operation information based on the editing instruction, including: querying the operation information at the corresponding angle according to the editing instruction, and displaying the queried operation information in the visual space.
[0185] In one embodiment, the computer program implemented when executed by the processor edits the operation information based on the editing instructions, including: translating, rotating, and transforming the type and size of the operation information according to the editing instructions; and displaying the edited operation information in the visual space.
[0186] In one embodiment, the computer program implemented when executed by the processor edits the operation information based on the editing instructions, including: performing a capture operation on the current medical mixed reality image according to the editing instructions to obtain a captured image; performing an editing operation on the operation information in the captured image, and the editing operation includes translation and / or rotation.
[0187] In one embodiment, after the computer program is executed by the processor and the operation information in the captured image is edited, the computer program further includes: acquiring the edited operation information and displaying the edited operation information in the visual space.
[0188] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: generating a robot arm 2 control command based on the operation information, and sending the robot arm 2 control command to the robot arm 2, wherein the robot arm 2 control command is used to instruct the robot arm 2 to operate according to the operation information.
[0189] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0190] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0191] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A medical image processing method, It is characterized in that The method comprises: Acquire a real medical image acquired by a real image acquisition device, wherein the real medical image includes a first marker, and the first marker is used to mark a site to be operated on in a real space; Acquire a target virtual medical image corresponding to the real medical image and containing operation information, and a positional relationship between the target virtual medical image and the operation information, wherein the target virtual medical image includes the first marker and is acquired before the surgical operation; and the operation information is a surgical plan planned before the operation; Calculating a matching relationship between the target virtual medical image and the real medical image according to the first marker, and fusing the target virtual medical image with the real medical image to obtain a current medical image; According to the matching relationship between the target virtual medical image and the real medical image and the positional relationship between the target virtual medical image and the operation information, the operation information is integrated into the current medical image; Obtaining a matching relationship between a visual space coordinate system of an augmented reality device and a real space coordinate system; obtaining a reference image captured by the augmented reality device and to be displayed in the visual space; According to the matching relationship between the visual space coordinate system of the augmented reality device and the real space coordinate system and the matching relationship between the target virtual medical image and the real medical image, the current medical image carrying the operation information is matched and fused with the reference image to obtain a mixed reality image, and the mixed reality image is displayed in the visual space of the augmented reality device.
2. The method according to claim 1, It is characterized in that The step of calculating the matching relationship between the target virtual medical image and the real medical image according to the first marker, and fusing the target virtual medical image with the real medical image to obtain the current medical image includes: Calculating corresponding matching features between the target virtual medical image and the real medical image according to the first marker; The matching relationship between the target virtual medical image and the real medical image is calculated according to the matching features, and the target virtual medical image and the real medical image are fused to obtain a current medical image.
3. The method according to claim 2, It is characterized in that Before acquiring the target virtual medical image corresponding to the real medical image, the method further includes: Acquire an initial medical image scanned by a medical imaging device; Performing three-dimensional reconstruction on the initial medical image to obtain a target virtual medical image; An operation information configuration instruction for the target virtual medical image is received, and operation information is configured on the target virtual medical image according to the operation information configuration instruction, and a positional relationship between the target virtual medical image and the operation information is acquired.
4. The method according to claim 1, It is characterized in that The obtaining of the matching relationship between the visual space coordinate system of the augmented reality device and the real space coordinate system includes: Obtaining a first transformation matrix between a real space coordinate system and an image space coordinate system of an augmented reality device; Acquire a second transformation matrix between the image space coordinate system of the augmented reality device and the visual space coordinate system of the augmented reality device; The matching relationship between the visual space coordinate system of the augmented reality device and the real space coordinate system is obtained according to the first transformation matrix and the second transformation matrix.
5. The method according to claim 4, It is characterized in that The step of obtaining a first conversion matrix between a real space coordinate system and an image space coordinate system of an augmented reality device includes: Acquire a first reference object image of a first calibration reference object in an image space through an augmented reality device, establish an image coordinate system with a target point of the first reference object image as an origin, and determine a preset number of reference points from the first reference object image based on the image coordinate system; Acquire a second reference object image of the first calibration reference object acquired by the real image acquisition device in the image coordinate system of the real image acquisition device, and determine a mapping point corresponding to the reference point from the second reference object image; Convert the mapping points to the real space coordinate system; Based on the reference point and the coordinates of the mapping point in the real space coordinate system, a first transformation matrix between the real space coordinate system and the image space coordinate system of the augmented reality device is calculated.
6. The method according to claim 1, It is characterized in that The step of displaying the mixed reality image in the visual space of the augmented reality device further comprises: Acquiring a display angle of the mixed reality image; Calculating a reference angle based on the display angle, and acquiring a target virtual medical image at the reference angle; The target virtual medical image and the mixed reality image at the reference angle are displayed in the visual space.
7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: A robot arm control command is generated according to the operation information, and the robot arm control command is sent to the robot arm.
8. The method according to claim 1, It is characterized in that After displaying the mixed reality image in the visual space of the augmented reality device, the method further includes: An editing instruction for the operation information is received through the augmented reality device; and the operation information is edited based on the editing instruction through the augmented reality device.
9. The method according to claim 8, It is characterized in that The receiving, through the augmented reality device, an editing instruction for the operation information includes: Recognizing the operator's gesture through the augmented reality device, and displaying the operation information editing instruction receiving panel when the operator's gesture meets the preset requirements; An editing instruction for the operation information is received through the editing instruction receiving panel.
10. The method according to claim 8, It is characterized in that The editing of the operation information based on the editing instruction includes: The operation information at the corresponding angle is queried according to the editing instruction, and the queried operation information is displayed in the visual space.
11. The method according to claim 8, It is characterized in that The editing of the operation information based on the editing instruction includes: performing at least one of translation, rotation, and type and size transformation on the operation information according to the editing instruction; The edited operation information is displayed in the visual space.
12. The method according to claim 8, It is characterized in that The editing of the operation information based on the editing instruction includes: Performing a capture operation on the mixed reality image according to the editing instruction to obtain a captured image; An editing operation is performed on the operation information in the captured image, wherein the editing operation includes translation and / or rotation.
13. The method according to claim 12, It is characterized in that After the operation information in the captured image is edited, the method further includes: The edited operation information is acquired, and the edited operation information is displayed in the visual space.
14. The method according to any one of claims 8 to 13, It is characterized in that The method further comprises: A robot arm control command is generated according to the edited operation information, and the robot arm control command is sent to the robot arm.
15. A medical image processing system, It is characterized in that The system includes a real image acquisition device and an image processing device; The real image acquisition device is used to acquire a real medical image and send the acquired real medical image to the image processing device, wherein the real medical image includes a first marker; The image processing device is used to implement the medical image processing method according to any one of claims 1 to 14; The system also includes an augmented reality device, which communicates with the image processing device and is used to display a mixed reality image processed by the image processing device.
16. The system according to claim 15, It is characterized in that The system further comprises at least one display, which is connected to the image processing device and is used to display a current medical image processed by the image processing device, wherein the current medical image carries operation information.
17. The system according to claim 15, It is characterized in that The system also includes at least one medical imaging device, which is connected to the image processing device and is used to scan and obtain an initial medical image, and send the scanned initial medical image to the image processing device.
18. The system according to claim 15, It is characterized in that The augmented reality device is also used to receive an editing instruction for the operation information, and edit the operation information based on the editing instruction.
19. The system according to claim 18, It is characterized in that The augmented reality device includes a gesture recognition module, an interactive control module and a display module. The gesture recognition module is used to recognize the operator's gesture, and when the operator's gesture meets the preset requirements, control the display module to display the operation information editing instruction receiving panel; the interactive control module is used to convert and calculate the editing instructions received by the operation information editing instruction receiving panel, and display the converted operation information on the display module.
20. The system according to claim 15, It is characterized in that The system also includes a robotic arm, a controller of the robotic arm communicates with the image processing device, the robotic arm is used to receive a robotic arm control command generated by the image processing device according to operation information, and operate according to the operation information based on the robotic arm control instruction.
21. A surgical system, It is characterized in that The surgical system includes a surgical trolley, a navigation trolley and an operating table; A real medical image acquisition device is installed on the navigation trolley; an image processing device is installed on the operating trolley and / or the navigation trolley; the real medical image acquisition device is used to acquire a real medical image of a patient on the operating table and send the acquired real medical image to the image processing device, wherein the real medical image includes a first marker; The image processing device is used to implement the medical image processing method described in any one of claims 1 to 14.
22. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 14 are implemented.
23. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.
