Visual rendering method, system and equipment for grinding in surgical navigation and storage medium

Through the surface drawing and rendering method, the surface is represented by a triangular mesh or polygon and layered processing is solved, which solves the problem of unreal visual effects of the acetabular grinding model in the prior art, and realizes more efficient visualization of the acetabular grinding process. Improves the accuracy and efficiency of surgical navigation.

CN118942634AActive Publication Date: 2024-11-12FUDAN UNIVERSITY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411037487.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-12
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

In the prior art, the acetabular grinding process during surgical navigation is visually rendered by body drawing rendering. The visual effect of the model is not real, the generated model is not smooth enough, and cannot accurately reflect the polishing effect, which affects the doctor's intuitive judgment of the grinding effect.

Method used

The surface drawing rendering method is used to represent the surface using a triangle mesh or polygon, and the surface features are emphasized through lighting and shadow effects, layered processing is performed and different colors are given to mesh surfaces of different levels, accurately capturing the boundaries and details of the anatomical structure. Improve visual effects and interactivity.

Benefits of technology

It realizes a more realistic and smoother rendering of the acetabular grinding model, improves doctors' intuitive judgment of the grinding effect, meets the real-time performance requirements of surgical navigation, and improves the accuracy and efficiency of surgical operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118942634A_ABST
    Figure CN118942634A_ABST
Patent Text Reader

Abstract

The invention provides a grinding visual rendering method in surgical navigation, which comprises the following steps of: planning an acetabular cup model, and moving the acetabular cup model to a preset position of an acetabular model; generating a grinding image, generating the grinding image of the acetabulum model according to the relative position relationship between the acetabular cup model and the acetabulum model, and performing hierarchical processing on the grinding image; and surface drawing and rendering: drawing a grid surface for the grinding image subjected to layering processing, and endowing different colors to the grid surfaces of different layers. Visualization of grinding in the surgical navigation process is achieved in a surface drawing rendering mode, a triangular mesh or a polygon is directly used for representing the surface, the representing method can accurately capture boundaries and details of an anatomical structure, surface features can be emphasized by using illumination and shadow effects, and the surface rendering effect can be improved. Therefore, a doctor can identify the tissue structure more easily, and the method has higher definition and details.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical technology, and in particular to a grinding visualization rendering method, system, device and storage medium in surgical navigation. Background Art

[0002] Surgical navigation uses imaging and computer-assisted technology to provide doctors with real-time, three-dimensional anatomical information and positioning guidance during surgery to help doctors perform surgery accurately. The navigation system processes and reconstructs patient images and provides guidance to doctors through a visual interface.

[0003] In navigation-guided hip replacement surgery, it is necessary to visualize and render the polishing of the acetabulum model in real time in the interface, which includes the following steps:

[0004] The first step, such as Figure 1 As shown, during preoperative planning, in the image space (image coordinate system F image The acetabular cup model is moved and placed at a reasonable position on the patient's acetabular model. The overlapping area between the acetabular cup model and the acetabular model (the shaded area) is the part that needs to be removed by grinding during the operation.

[0005] The second step is, Figure 2 As shown, during the operation, the grinding instrument and the patient's acetabulum (pelvis) are rigidly connected to an optical tracking array, and the positioning camera can transmit the camera coordinate system F in real time. camera To the grinding machine tracking array coordinate system F toolRF The transformation matrix T cameraToToolRF , and F camera To the acetabulum tracking array coordinate system F boneRF The transformation matrix T cameraToBoneRF After the image registration operation, the above two matrices can be used for image navigation and positioning, and the final effect is that the relative position relationship between the patient's acetabulum and the grinding instrument in the real world conforms to the relative position relationship between the acetabulum model and the grinding instrument model in the image space. If the real patient's acetabulum or the real grinding instrument is moved, the acetabulum model and the grinding instrument model in the image will also move accordingly.

[0006] The third step is to use the image as a guide to move the grinding tool to the area to be ground.

[0007] The fourth step is to use a grinding instrument to grind. As the real acetabulum is gradually ground away, the acetabulum model in the image space also needs to be deformed accordingly until the part to be ground ( Figure 1 During the grinding process, if the grinding exceeds the planned grinding area, the over-grinded surface of the acetabulum model needs to display a different color to warn the operator.

[0008] In the above process, every time the grinding head model updates its position, the grinding effect of the acetabulum model must be recalculated. The prior art determines the degree of grinding by coloring the acetabulum image in advance, and uses the grinding head image for voxel calculation. Finally, the voxel model is projected onto the screen through volume rendering to obtain a real-time acetabulum grinding three-dimensional model. The disadvantage of this method is that the visual effect of the model is not realistic, the generated model is not smooth enough, and it cannot accurately reflect the grinding effect, which affects the doctor's intuitive judgment of the grinding effect. Summary of the invention

[0009] The present invention proposes a method, system, device and storage medium for visual rendering of grinding in surgical navigation, which solves the problems of visual rendering of the grinding process by volume rendering in the prior art, such as unrealistic model visual effect and insufficient smoothness of the generated model.

[0010] The technical solution of the present invention is achieved in this way:

[0011] A first aspect of the present invention provides a method for visualizing and rendering grinding in surgical navigation, comprising the following steps:

[0012] Acetabular cup model planning, moving the acetabular cup model to the predetermined position of the acetabulum model;

[0013] Grinding image generation: generating a grinding image of the acetabulum model according to the relative position relationship between the acetabular cup model and the acetabulum model, and performing layered processing on the grinding image;

[0014] Surface drawing rendering draws the mesh surface of the layered grinding image and gives different colors to mesh surfaces at different levels.

[0015] The present invention uses surface rendering to achieve visualization of grinding during surgical navigation, and directly uses triangular meshes or polygons to represent the surface. This representation method can accurately capture the boundaries and details of anatomical structures. By using lighting and shadow effects, surface rendering can emphasize surface features, making it easier for doctors to identify tissue structures with high clarity and details. At the same time, surface rendering requires less storage space and less preprocessing time, meeting the real-time performance requirements of navigation. Surface rendering geometric data is usually composed of relatively few vertices and faces, which makes operations such as rotating, scaling, and cutting the model faster and smoother. For surgical navigation, doctors need to frequently adjust the viewing angle and zoom in on details. The high interactivity and response speed of surface rendering can improve the accuracy and efficiency of surgical operations.

[0016] Specifically, the method of acetabular cup model planning includes:

[0017] Import the acetabular cup model, and move the acetabular cup model to the position and angle where the acetabulum model is to be placed by translation and rotation;

[0018] A hemispherical shell model for calculating the grinding area is generated by taking the bottom surface center of the acetabular cup model as the sphere center and the bottom surface radius of the acetabular cup model as the sphere radius.

[0019] The method of generating a milled image of an acetabulum model comprises the following steps:

[0020] Get the vtkPolyData data of the current grinding head model and convert it into image stencil data;

[0021] Create a bounding box for the acetabulum image to be ground. The bounding box is defined by the left boundary x min , right boundary x max , front boundary y min , rear boundary y max , lower boundary z min , upper boundary z max determined;

[0022] Along the z-axis direction of the bounding box, a slice of the bounding box is generated at every interval SpacingZ. SpacingZ represents the physical size of each voxel in the z-axis direction. The number of slices generated is (z max -z min ) / SpacingZ, the length and width of the slice are (x max -x min ) and (y max -y min );

[0023] The grinding head model is cut by using a plurality of slices to obtain a plurality of cross-sectional lines;

[0024] For each section line, traverse along the y-axis direction and record the x-axis coordinate value of the section line at each integer y-axis coordinate value;

[0025] According to the coordinate values ​​of all the cross-section lines, the mask data of the grinding head model is created, that is, the projection of the grinding head model on each slice;

[0026] Then, the hemispherical shell model is cut by the slices to obtain a plurality of cross-section lines, and the mask data of the hemispherical shell model is created by the above method, that is, the projection of the hemispherical shell model on each slice;

[0027] Use the vtkImageStencil filter and use the mask data of the grinding head model as a mask; for the image of the acetabulum model to be ground, set the voxel pixel values ​​within the mask to 0, and keep the voxel pixel values ​​outside the mask unchanged, to generate the reamed_image of the acetabulum after grinding.

[0028] Further, the layering process of the grinding image includes the following steps:

[0029] Use the vtkImageStencil filter to use the mask data of the hemispherical shell model as a mask; for the reamed_image image of the acetabulum after grinding, set the voxel pixel values ​​within the mask to 0, and keep the voxel pixel values ​​outside the mask unchanged, and obtain the partial image reamed_image1 where the acetabulum image after grinding intersects with the hemispherical shell model;

[0030] Use the Sobel edge detection algorithm to get the boundary of image reamed_image1;

[0031] Binarize the border of image reamed_image1;

[0032] Perform an AND operation on the image reamed_image1 and the boundary after binary processing to obtain the partial image reamed_image2 where the boundary intersects with the image reamed_image1;

[0033] Add image reamed_image1 and image reamed_image to obtain image image1;

[0034] Add image image1 and image reamed_image2 to obtain image image2.

[0035] Specifically, image image2 contains the following three levels:

[0036] The first level is the part where the ground acetabulum image intersects with the hemispherical shell model, and the pixel value of the voxels in this level is 1;

[0037] The second level is the part of the acetabulum image after grinding except the part intersecting with the hemispherical shell model. The pixel value of the voxels in this level is 2;

[0038] The third level is the part where the boundary of the acetabulum image after grinding intersects with the hemispherical shell model, and the pixel value of the voxel in this level is 3.

[0039] Specifically, the method for drawing the mesh surface of the grinding image after layering processing is as follows: importing the image image2 into the vtkDiscreteFlyingEdge3D software to draw the mesh surface, setting three isosurfaces corresponding to the mesh surfaces with pixel values ​​of 1, 2, and 3 in the image image2, respectively, and using a smoothing filter to smooth the drawn mesh surface.

[0040] Specifically, the method of assigning different colors to mesh surfaces at different levels is:

[0041] Set the mesh faces with voxel values ​​of 1 to the first color;

[0042] Set the mesh face with voxel value 2 to the second color;

[0043] Sets the mesh faces with voxel value 3 to the third color.

[0044] A second aspect of the present invention provides a grinding virtual visualization rendering system in surgical navigation, comprising:

[0045] An acetabular cup model planning module, used for moving the acetabular cup model to a predetermined position of the acetabulum model;

[0046] A grinding image generation module, used for generating a grinding image of the acetabulum model according to the relative position relationship between the acetabulum cup model and the acetabulum model;

[0047] A grinding image layering module is used to perform layering processing on the grinding image;

[0048] The surface drawing and rendering module is used to draw the mesh surface of the grinding image after layering processing and give different colors to the mesh surfaces of different layers.

[0049] A third aspect of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps of the above-mentioned visualization rendering method when executing the computer program.

[0050] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned visualization rendering method are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0052] Figure 1 A schematic diagram of preoperative planning for navigation-based acetabular replacement surgery in the prior art;

[0053] Figure 2 It is a schematic diagram of the intraoperative grinding operation of the navigation-type acetabular replacement surgery in the prior art;

[0054] Figure 3 It is a flow chart of a method for visualizing grinding in surgical navigation according to the present invention;

[0055] Figure 4 A schematic diagram of the process of acetabular cup model planning in an embodiment of the present invention;

[0056] Figure 5 Schematic diagram of the relative positions of the hemispherical shell model and the acetabular cup model in an embodiment of the present invention;

[0057] Figure 6 It is a structural schematic diagram of the acetabulum model bounding box in an embodiment of the present invention;

[0058] Figure 7 is a schematic diagram of a mask of a grinding head in an embodiment of the present invention;

[0059] Figure 8 A schematic diagram of a mask of a hemispherical shell in an embodiment of the present invention;

[0060] Fig. 9 is a schematic diagram of an image reamed_image in an embodiment of the present invention;

[0061] Fig.10 is a schematic diagram of image reamed_image1 in an embodiment of the present invention;

[0062] Fig.11 is a schematic diagram of image reamed_image2 in an embodiment of the present invention;

[0063] Fig.12 is a schematic diagram of image image1 in an embodiment of the present invention;

[0064] Fig.13 is a schematic diagram of image image2 in an embodiment of the present invention;

[0065] Fig.14 is a schematic diagram of a grid surface of an image image2 in an embodiment of the present invention;

[0066] Fig.15 Schematic diagram of a mesh surface after smoothing in an embodiment of the present invention;

[0067] Fig.16 This is a diagram showing the effect of the mesh surface being colored in an embodiment of the present invention. DETAILED DESCRIPTION

[0068] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0069] Reference Figure 3According to a first aspect of an embodiment of the present invention, a method for visualizing grinding in surgical navigation is provided, comprising the following steps:

[0070] Acetabular cup model planning, moving the acetabular cup model to the predetermined position of the acetabulum model;

[0071] Grinding image generation: generating a grinding image of the acetabulum model according to the relative position relationship between the acetabular cup model and the acetabulum model, and performing layered processing on the grinding image;

[0072] Surface drawing rendering draws the mesh surface of the layered grinding image and gives different colors to mesh surfaces at different levels.

[0073] The present invention uses surface rendering to achieve visualization of grinding during surgical navigation, and directly uses triangular meshes or polygons to represent the surface. This representation method can accurately capture the boundaries and details of anatomical structures. By using lighting and shadow effects, surface rendering can emphasize surface features, making it easier for doctors to identify tissue structures with high clarity and details. At the same time, surface rendering requires less storage space and less preprocessing time, meeting the real-time performance requirements of navigation. Surface rendering geometric data is usually composed of relatively few vertices and faces, which makes operations such as rotating, scaling, and cutting the model faster and smoother. For surgical navigation, doctors need to frequently adjust the viewing angle and zoom in on details. The high interactivity and response speed of surface rendering can improve the accuracy and efficiency of surgical operations.

[0074] Specifically, the method of acetabular cup model planning includes:

[0075] Import the acetabular cup model and move the acetabular cup model to the position and angle where the acetabulum model is to be placed through the rigid body transformation matrix T (translation, rotation), such as Figure 4 As shown;

[0076] With the bottom center of the acetabular cup model as the sphere center and the bottom radius of the acetabular cup model as the sphere radius, a hemispherical shell model for calculating the grinding area is generated, such as Figure 5 As shown, the bottom surface of the hemispherical shell model is flush with the bottom surface of the acetabular cup model, and the normal direction is consistent with the normal direction of the acetabular cup model. The gap between the hemispherical shell model and the acetabular cup model is the planned grinding area.

[0077] The method of generating a milled image of an acetabulum model comprises the following steps:

[0078] Get the vtkPolyData data of the current grinding head model real_reamer, which is a form of describing the surface of a three-dimensional object using a set of polygons (triangles or quadrilaterals), and convert it into image stencil data using the vtkSurfaceToImageStencil method;

[0079] like Figure 6 As shown, a bounding box of the acetabulum image to be ground is established, and the range of the bounding box is determined by the left boundary x min , right boundary x max , front boundary y min , rear boundary y max , lower boundary z min , upper boundary z max determined;

[0080] Along the z-axis direction of the bounding box, a slice of the bounding box is generated at every interval SpacingZ. The number of slices generated is (z max -z min ) / SpacingZ, the length and width of the slice are (x max -x min ) and (y max -y min );

[0081] The image spacing refers to the spacing of each voxel in the width, depth, and height directions in the physical space, where:

[0082] SpacingX: The physical size of each voxel in the x-axis direction.

[0083] SpacingY: The physical size of each voxel in the y-axis direction;

[0084] SpacingZ: The physical size of each voxel in the z-axis direction;

[0085] Use several slices to cut the grinding head model real_reamer into pieces to obtain several cross-section lines;

[0086] For each section line, traverse along the y-axis direction and record the x-axis coordinate value of the section line at each integer y-axis coordinate value;

[0087] According to the coordinate values ​​of all section lines, create the mask data real_reamer_stencil of the grinding head model real_reamer, that is, the projection of the grinding head model real_reamer on each slice, such as Figure 7 As shown;

[0088] Then, the hemispherical shell model shell is cut by the slices to obtain a plurality of cross-section lines, and the mask data shell_stencil of the hemispherical shell model shell is created by the above method, that is, the projection of the hemispherical shell model on each slice, such as Figure 8 As shown;

[0089] Use the vtkImageStencil filter to use the mask data of the grinding head model as a mask; for the image of the acetabulum model to be ground, use SetReverseStencil (reverse template) to set the voxel pixel value within the mask to 0, and the voxel pixel value outside the mask remains unchanged, generating the reamed_image of the acetabulum after grinding, such as Fig. 9 As shown;

[0090] Further, the layering process of the grinding image includes the following steps:

[0091] Use the vtkImageStencil filter and use the mask data of the hemispherical shell model as a mask. For the reamed_image image of the acetabulum after grinding, set the voxel pixel values ​​within the mask to 0, and keep the voxel pixel values ​​outside the mask unchanged, and obtain the partial image reamed_image1 where the acetabulum image after grinding intersects with the hemispherical shell model, as shown in the figure. Fig.10 As shown;

[0092] Use the Sobel edge detection algorithm to get the boundary of image reamed_image1;

[0093] Binarize the boundary of image reamed_image1 so that the pixel value on the boundary is 1 if it is greater than 1 and 0 if it is less than 1.

[0094] Perform an AND operation between the image reamed_image1 and the binary processed boundary to obtain the partial image reamed_image2 where the boundary intersects with the image reamed_image1. Fig.11 As shown;

[0095] Add image reamed_image1 and image reamed_image to get image image1, such as Fig.12 As shown, that is:

[0096] image1(x,y,z)=reamed_image(x,y,z)+reamed_image1(x,y,z)

[0097] Add image1 and image reamed_image2 to get image2, as shown in Fig.13 As shown, that is:

[0098] image2(x,y,z)=image1(x,y,z)+reamed_image2(x,y,z).

[0099] Specifically, image image2 contains the following three levels:

[0100] The first level is the part where the ground acetabulum image intersects with the hemispherical shell model, and the pixel value of the voxels in this level is 1;

[0101] The second level is the part of the acetabulum image after grinding except the part intersecting with the hemispherical shell model. The pixel value of the voxels in this level is 2;

[0102] The third level is the part where the boundary of the acetabulum image after grinding intersects with the hemispherical shell model, and the pixel value of the voxel in this level is 3.

[0103] Specifically, the method for drawing the mesh surface of the grinding image after the layering process is as follows: import the image image2 into the vtkDiscreteFlyingEdge3D software to draw the mesh surface, such as Fig.14 As shown; set 3 isosurfaces, corresponding to the mesh surfaces with pixel values ​​of 1, 2, and 3 in image2, disable gradient calculation, disable normal calculation, enable scalar value calculation, and use a smoothing filter to smooth the drawn mesh surface, as shown Fig.15 As shown;

[0104] Specifically, the method of assigning different colors to mesh surfaces at different levels is:

[0105] like Fig.16 As shown; create a color table and set different colors for the equivalent surfaces with different pixel values:

[0106] SetTableValue(1,0,1,0,1), sets the grid surface with voxel value 1 to the first color (green in this embodiment);

[0107] SetTableValue(2,1,0,0,1), sets the grid surface with voxel value 2 to the second color (red in this embodiment);

[0108] SetTableValue(3,1,1,1,1), sets the grid surface with voxel value 3 to the third color (white in this embodiment).

[0109] For the area outside the acetabulum image after grinding, its pixel value is set to 0, which is correspondingly set to be transparent.

[0110] During the surgical navigation process, as the grinding head goes deeper, the grinding areas exposed on the surface of the acetabulum model are displayed in sequence:

[0111] Green means the current grinding area is within the planned grinding area;

[0112] White means that the current grinding area exceeds the planned grinding area, and the excess thickness is within the allowable error range;

[0113] Red means that the current grinding area exceeds the planned grinding area and the excess thickness is greater than the maximum value of the allowable error range.

[0114] During the polishing process of the acetabulum, the surface of the acetabulum model in the image is exposed in green, white, and red in turn to indicate the current polishing status. Fig.16 The red area is not shown.

[0115] A second aspect of an embodiment of the present invention provides a grinding virtual visualization rendering system in surgical navigation, comprising:

[0116] An acetabular cup model planning module, used for moving the acetabular cup model to a predetermined position of the acetabulum model;

[0117] A grinding image generation module, used for generating a grinding image of the acetabulum model according to the relative position relationship between the acetabulum cup model and the acetabulum model;

[0118] A grinding image layering module is used to perform layering processing on the grinding image;

[0119] The surface drawing and rendering module is used to draw the mesh surface of the grinding image after layering processing and give different colors to the mesh surfaces of different layers.

[0120] A third aspect of an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps of the above-mentioned visualization rendering method when executing the computer program.

[0121] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned visualization rendering method are implemented.

[0122] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A grinding visualization rendering method in surgical navigation, characterized in that: The following steps are involved: Acetabular cup model planning, moving the acetabular cup model to the predetermined position of the acetabulum model; Grinding image generation: generating a grinding image of the acetabulum model according to the relative position relationship between the acetabular cup model and the acetabulum model, and performing layered processing on the grinding image; Surface drawing rendering draws the mesh surface of the layered grinding image and gives different colors to mesh surfaces at different levels.

2. The method for visualizing grinding in surgical navigation according to claim 1, characterized in that: Methods for cup model planning include: Import the acetabular cup model, and move the acetabular cup model to the position and angle where the acetabulum model is to be placed by translation and rotation; A hemispherical shell model for calculating the grinding area is generated by taking the bottom surface center of the acetabular cup model as the sphere center and the bottom surface radius of the acetabular cup model as the sphere radius.

3. The method for visualizing grinding in surgical navigation according to claim 2, characterized in that: The method of generating a milled image of an acetabulum model comprises the following steps: Get the vtkPolyData data of the current grinding head model and convert it into image stencil data; Create a bounding box for the acetabulum image to be ground. The bounding box is defined by the left boundary x min , right boundary x max , front boundary y min , rear boundary y max , lower boundary z min , upper boundary z max determined; Along the z-axis direction of the bounding box, a slice of the bounding box is generated at every interval SpacingZ. SpacingZ represents the physical size of each voxel in the z-axis direction. The number of slices generated is (z max -z min ) / SpacingZ, the length and width of the slice are (x max -x min ) and (y max -y min ); The grinding head model is cut by using a plurality of slices to obtain a plurality of cross-sectional lines; For each section line, traverse along the y-axis direction and record the x-axis coordinate value of the section line at each integer y-axis coordinate value; According to the coordinate values ​​of all the cross-section lines, the mask data of the grinding head model is created, that is, the projection of the grinding head model on each slice; Then, the hemispherical shell model is cut by the slices to obtain a plurality of cross-section lines, and the mask data of the hemispherical shell model is created by the above method, that is, the projection of the hemispherical shell model on each slice; Use the vtkImageStencil filter and use the mask data of the grinding head model as a mask; for the image of the acetabulum model to be ground, set the voxel pixel values ​​within the mask to 0, and keep the voxel pixel values ​​outside the mask unchanged, to generate the reamed_image of the acetabulum after grinding.

4. The method for visualizing grinding in surgical navigation according to claim 3, characterized in that: The layering process of grinding images includes the following steps: Use the vtkImageStencil filter to use the mask data of the hemispherical shell model as a mask; for the reamed_image image of the acetabulum after grinding, set the voxel pixel values ​​within the mask to 0, and keep the voxel pixel values ​​outside the mask unchanged, and obtain the partial image reamed_image1 where the acetabulum image after grinding intersects with the hemispherical shell model; Use the Sobel edge detection algorithm to get the boundary of image reamed_image1; Binarize the border of image reamed_image1; Perform an AND operation on the image reamed_image1 and the boundary after binary processing to obtain the partial image reamed_image2 where the boundary intersects with the image reamed_image1; Add image reamed_image1 and image reamed_image to obtain image image1; Add image image1 and image reamed_image2 to obtain image image2.

5. The method for visualizing grinding in surgical navigation according to claim 4, characterized in that: Image image2 contains the following three levels: The first level is the part where the ground acetabulum image intersects with the hemispherical shell model, and the pixel value of the voxels in this level is 1; The second level is the part of the acetabulum image after grinding except the part intersecting with the hemispherical shell model. The pixel value of the voxels in this level is 2; The third level is the part where the boundary of the acetabulum image after grinding intersects with the hemispherical shell model, and the pixel value of the voxel in this level is 3.

6. The method for visualizing grinding in surgical navigation according to claim 4, characterized in that: The method for drawing the mesh surface of the grinding image after layering is as follows: importing the image image2 into the vtkDiscreteFlyingEdge3D software to draw the mesh surface, setting three isosurfaces corresponding to the mesh surfaces with pixel values ​​of 1, 2, and 3 in the image image2, and smoothing the drawn mesh surface using a smoothing filter.

7. The method for visualizing grinding in surgical navigation according to claim 6, characterized in that: The method to assign different colors to mesh faces at different levels is: Set the mesh faces with voxel values ​​of 1 to the first color; Set the mesh face with voxel value 2 to the second color; Sets the mesh faces with voxel value 3 to the third color.

8. A grinding virtual visualization rendering system in surgical navigation, based on the visualization rendering method according to any one of claims 1 to 7, characterized in that: include: An acetabular cup model planning module, used for moving the acetabular cup model to a predetermined position of the acetabulum model; A grinding image generation module, used for generating a grinding image of the acetabulum model according to the relative position relationship between the acetabulum cup model and the acetabulum model; A grinding image layering module is used to perform layering processing on the grinding image; The surface drawing and rendering module is used to draw the mesh surface of the grinding image after layering processing and give different colors to the mesh surfaces of different layers.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the visualization rendering method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the visualization rendering method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Grinding simulation method and device, electronic equipment and storage medium

    CN112288887A

  • Image rendering method and device, equipment, storage medium and product

    CN115861508A

  • Visualization method and equipment for navigation type acetabulum grinding and storage medium

    CN116636902A

  • Robot grinding track planning method

    CN116787425A

  • Smooth display method for navigation type acetabulum grinding

    CN116824100A