A method, device and storage medium for visualizing navigated acetabular reaming

By employing volumetric data generation and coloring methods in guided acetabular grinding, the problem of screen stuttering caused by surface mesh data conversion in existing technologies has been solved, achieving faster calculation speed and smoother visualization.

CN116636902BActive Publication Date: 2026-11-27LANCET ROBOTICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310673594.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-07
Publication Date
2026-11-27
Estimated Expiration
2043-06-07

AI Technical Summary

Technical Problem

In the visualization process of navigation-based acetabular grinding in the existing technology, the conversion and color determination of surface mesh data and image volume drawing data takes a long time, which causes screen lag and affects the smoothness of operation.

Method used

A volumetric data generation and coloring method is adopted. After the mortar cup model is moved to the predetermined position, the surface mesh data is converted to volumetric data only once, and deep coloring is performed based on the volumetric data, thus avoiding the generation of surface mesh data for visualization during the grinding process.

Benefits of technology

It improves calculation speed and the smoothness of visualization, reduces the amount of calculation required for grinding updates, and ensures the continuity and efficiency of navigation operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116636902B_ABST
    Figure CN116636902B_ABST
Patent Text Reader

Abstract

The application provides a navigation type acetabulum grinding visualization method, comprising the following steps: S1, moving an acetabular cup model to a predetermined position of an acetabulum model; S2, planning a grinding area on the acetabulum model according to an overlapping area of the acetabular cup model and the acetabulum model, and generating volume rendering data of the acetabulum model according to the planned grinding area; S3, coloring the acetabulum model according to the volume rendering data; and S4, in a navigation grinding process, with the movement of a grinding instrument, the corresponding part on the acetabulum model is removed, and the exposed grinding area is displayed with a corresponding color. According to the volume rendering data of the acetabulum model generated according to the planned grinding area, the acetabulum model is colored according to the volume rendering data, only one conversion from surface mesh data to volume rendering data is needed, and deep coloring is performed on each area of the acetabulum model, and grinding visualization is only realized by updating the volume rendering data, so that the calculation speed is improved, and the fluency of the visualization display picture is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical technology, and in particular to a visualization method, device and storage medium for navigable acetabular grinding. Background Technology

[0002] Acetabular grinding is an important step in guided acetabular replacement surgery, and it includes the following steps:

[0003] First step, such as Figure 1 As shown, during preoperative planning, in image space (image coordinate system F) image (Next), move the acetabular cup model and place it in the appropriate position of the patient's acetabular model. The area where the acetabular cup model and the acetabular model overlap (the shaded area) is the part that needs to be ground away during the operation.

[0004] The second step, as Figure 2 As shown, during the surgery, an optical tracking array is rigidly connected to both the grinding instrument and the patient's acetabulum (pelvis), and the positioning camera can transmit the positioning camera coordinate system F in real time. camera To the grinding machine tracking array coordinate system F toolRF Transformation matrix T cameraToToolRF , and F camera To the acetabular tracking array coordinate system F boneRF Transformation matrix T cameraToBoneRF After image registration, the two matrices mentioned above can be used for image navigation and localization. The final result is that the relative positional relationship between the patient's acetabulum and the grinding instrument in the real world matches the relative positional relationship between the acetabulum model and the grinding instrument model in the image space. Moving the real patient's acetabulum or the real grinding instrument will also cause the acetabulum model and the grinding instrument model in the image to move accordingly.

[0005] The third step involves using the image as a guide to move the grinding machine to the area to be ground.

[0006] The fourth step involves grinding with a grinding machine. As the actual acetabulum is gradually ground away, the acetabular model in the image space also needs to undergo corresponding deformation until the part to be ground is removed. Figure 1 The shaded area (with the center line) is completely removed. During the grinding process, if the grinding exceeds the planned grinding area, the over-ground surface of the acetabular model needs to display a different color to warn the operator.

[0007] The drawbacks of existing technologies are:

[0008] The visualization of the above process involves real-time cutting calculations between the grinding machine model and the acetabulum model. The visualization object of the existing technology is surface mesh data. Each time the display is updated, it is necessary to perform several conversions between image volume drawing data and surface mesh data, and to color-judge the surface mesh data (whether it is over-grinding). The calculation time is long, which can easily cause screen lag and affect navigation operations. Summary of the Invention

[0009] This invention proposes a visualization method, device, and storage medium for navigable acetabular grinding, which solves the problems in the prior art where several conversions between image volumetric data and surface mesh data are required each time the display is updated, and color judgment is performed on the surface mesh data. The calculation time is long, which can easily cause screen lag and affect navigation operation.

[0010] The technical solution of this invention is implemented as follows:

[0011] According to one aspect of the present invention, a visualization method for navigable acetabular grinding is provided, comprising the following steps:

[0012] S1, move the acetabular cup model to the predetermined position of the acetabular model;

[0013] S2, Based on the overlapping area between the acetabular cup model and the acetabular model, a grinding area is planned on the acetabular model, and the volume drawing data of the acetabular model is generated based on the planned grinding area.

[0014] S3, color the acetabular model based on the volumetric drawing data;

[0015] S4, during the guided grinding process, as the grinding machine moves, the corresponding part on the acetabular model is removed, and the grinding area exposed on the surface of the acetabular model is displayed in the corresponding color to the operator.

[0016] This invention plans a grinding area on the acetabular model based on the overlapping area of ​​the acetabular cup model and the acetabular model. It generates volumetric data of the acetabular model based on the planned grinding area and colors the acetabular model based on the volumetric data. Only after the acetabular cup model moves to the predetermined position of the acetabular model is a conversion from surface mesh data to volumetric data performed once, and each area of ​​the acetabular model is deeply colored. This eliminates the need to generate surface mesh data for visualization during the grinding process. Grinding visualization is achieved solely by updating the volumetric data, thereby improving the calculation speed and the smoothness of the visualization display.

[0017] Specifically, step S1 includes the following steps:

[0018] S101, Generate the hemispherical shell model of the mortar cup:

[0019] Import the acetabular cup model into the image coordinate system, and generate a hemispherical shell model on the side where the acetabular cup model contacts the acetabulum model;

[0020] S102, Moving mortising cup model:

[0021] The acetabular cup model is moved to the predetermined position of the acetabular model by translation and rotation, and the rigid body transformation matrix of the acetabular cup model from the initial position to the predetermined position is obtained in the image coordinate system.

[0022] S103, a moving hemispherical shell model;

[0023] The rigid body transformation matrix is ​​applied to the hemispherical shell model, causing it to move to the predetermined position of the mortar cup model.

[0024] The gap between the hemispherical shell model and the mortar cup model is the planned grinding area. The hemispherical shell model is not used for visualization, so it will not be displayed in actual operation.

[0025] Specifically, step S2 includes the following steps:

[0026] S201, construct the minimum bounding box of the acetabulum model, and perform 3D meshing on the bounding box to obtain several small cubes, each of which is a voxel;

[0027] S202, for each voxel in the bounding box, if the voxel is located outside the acetabular model, then the value of the voxel is set to a; if the voxel is located inside the acetabular model, then the value of the voxel is set to b.

[0028] S203, for each voxel inside the acetabular model, if the voxel is located within the planned grinding area on the acetabular model, then the value of the voxel is modified to c.

[0029] S204. For each voxel inside the acetabular model, if the voxel's position exceeds the planned grinding area on the acetabular model, and the excess thickness is within the allowable error range, then the value of that voxel is modified to d.

[0030] Furthermore, in step S201, the method for constructing the minimum bounding box of the acetabular model is as follows:

[0031] Traverse the coordinates of each vertex on the surface of the acetabular model and record the maximum and minimum coordinate values ​​in the x-axis, y-axis, and z-axis directions: x_max, x_min, y_max, y_min, z_max, z_min. The spatial closed shape formed by the eight vertices (x_max, y_max, z_max), (x_min, y_max, z_max), (x_max, y_min, z_max), (x_max, y_max, z_min), (x_min, y_min, z_max), (x_min, y_max, z_min), (x_min, y_max, z_min), (x_max, y_min, z_min), (x_min, y_min, z_min), (x_min, y_min, z_min) is the minimum bounding box of the acetabular model.

[0032] Furthermore, in step S204, if the maximum allowable deviation thickness of grinding is d', then the number of voxels corresponding to the maximum allowable deviation thickness is n = ceil(d' / l), where ceil represents rounding up to the nearest integer; l is the size of the voxel, i.e. the side length of the small cube;

[0033] Traverse the voxels in the bounding box. If a voxel has a value of b, and there is a voxel with a value of c or a among its neighboring voxels (if the value of the neighboring voxel is c, it means that the current voxel is adjacent to the edge of the planned grinding area; if the value of the neighboring voxel is a, it means that the current voxel is adjacent to the outer edge of the acetabular model, that is, the current voxel is on the surface skin of the acetabular model), then change the value of the voxel to d. After traversal, update the value of n to n = n-1.

[0034] Perform the following steps to increase the thickness of the model region with voxel value d to the maximum deviation thickness d':

[0035] Step 1: Determine if n > 0 is true. If yes, proceed to step 2; otherwise, terminate the process.

[0036] Step 2: Traverse the voxels in the bounding box. If a voxel has a value of b and there is a voxel with a value of d among its neighboring voxels, then set the value of that voxel to e.

[0037] Step 3: Iterate through the voxels in the bounding box. If the value of a voxel is e, then set the value of that voxel to d.

[0038] Step 4: Update the value of n to n = n-1, and return to step 1.

[0039] The purpose of setting the voxel value to e is to prevent step 2 from getting stuck in a loop until all voxels with a value of b inside the acetabular model are changed to a value of d.

[0040] Specifically, in step S3, the method for coloring the acetabular model based on the volumetric data is as follows:

[0041] The portion of the bounding box with voxel value 'a' is rendered as completely transparent, the portion with voxel value 'b' is rendered as the first color, the portion with voxel value 'c' is rendered as the second color, and the portion with voxel value 'd' is rendered as the third color.

[0042] Specifically, in step S4, as the grinding instrument moves, the grinding areas exposed on the surface of the acetabular model are displayed sequentially:

[0043] The second color indicates that the current grinding area is within the planned grinding area.

[0044] The third color indicates that the current grinding area exceeds the planned grinding area, and the excess thickness is within the allowable error range.

[0045] The first color indicates that the current grinding area exceeds the planned grinding area range, and the excess thickness is greater than the maximum value of the allowable error range.

[0046] According to another aspect of the present invention, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the visualization method described above.

[0047] According to another aspect of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described visualization method.

[0048] Beneficial effects

[0049] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0050] (1) The present invention plans a grinding area on the acetabular model based on the overlapping area of ​​the acetabular cup model and the acetabular model, generates volumetric data of the acetabular model based on the planned grinding area, and colors the acetabular model based on the volumetric data. It only needs to perform a conversion from surface mesh data to volumetric data once after the acetabular cup model moves to the predetermined position of the acetabular model, and perform deep coloring on each area of ​​the acetabular model. It can realize that there is no need to generate surface mesh data for visualization during the grinding process. Grinding visualization is achieved only by updating the volumetric data, thereby improving the calculation speed.

[0051] (2) Since the present invention uses volumetric rendering as visualization, the deep coloring of the acetabular model is completed when the volumetric rendering data is initially generated. There is no need to calculate the color of different surfaces in real time during the grinding process, which reduces the amount of calculation for grinding updates, further improves the calculation speed, and improves the smoothness of the visualization display. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a schematic diagram of preoperative planning for navigation-based acetabular replacement surgery in the existing technology.

[0054] Figure 2 This is a schematic diagram of the intraoperative grinding operation in a navigation-based acetabular replacement surgery in the prior art;

[0055] Figure 3 This is a flowchart illustrating a visualization method for navigating acetabular grinding according to the present invention.

[0056] Figure 4 This is a schematic diagram showing the state of the acetabular cup model and the acetabular model in conjunction in an embodiment of the present invention;

[0057] Figure 5 This is a schematic diagram of the structure of the mortar cup hemispherical shell model and the mortar cup model in an embodiment of the present invention;

[0058] Figure 6 This is a rendering of a three-dimensional image in an embodiment of the present invention;

[0059] Figure 7 This is a cross-sectional view of an image with voxel values ​​of 0 and 2000 in an embodiment of the present invention.

[0060] Figure 8 The images shown are cross-sectional views of voxel values ​​of 0, 1000, and 2000 in the embodiments of the present invention.

[0061] Figure 9 The images shown are cross-sectional views of voxel values ​​of 0, 1000, 2000, and 3000 in embodiments of the present invention.

[0062] Figure 10 This is an overall rendering of the colored acetabular model in an embodiment of the present invention;

[0063] Figure 11This is a rendering of the internal layering of the colored acetabular model in an embodiment of the present invention. Detailed Implementation

[0064] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0065] Reference Figure 3 As shown, this embodiment provides a visualization method for guided acetabular grinding, including the following steps:

[0066] S1, move the acetabular cup model to the predetermined position of the acetabular model. The state diagram after the acetabular cup model and the acetabular model are combined is shown below. Figure 4 As shown;

[0067] S2, Based on the overlapping area between the acetabular cup model and the acetabular model, a grinding area is planned on the acetabular model, and the volume drawing data of the acetabular model is generated based on the planned grinding area.

[0068] S3, color the acetabular model based on the volumetric drawing data;

[0069] S4, during the guided grinding process, as the grinding machine moves, the corresponding part on the acetabular model is removed, and the grinding area exposed on the surface of the acetabular model is displayed in the corresponding color to the operator.

[0070] In this embodiment, a grinding area is planned on the acetabular model based on the overlapping area of ​​the acetabular cup model and the acetabular model. The volumetric data of the acetabular model is generated based on the planned grinding area, and the acetabular model is colored based on the volumetric data. Only after the acetabular cup model moves to the predetermined position of the acetabular model is a conversion from surface mesh data to volumetric data performed once, and each area of ​​the acetabular model is deeply colored. This means that surface mesh data does not need to be generated for visualization during the grinding process. Grinding visualization is achieved only by updating the volumetric data, thereby improving the calculation speed and the smoothness of the visualization display.

[0071] In the specific implementation process, step S1 includes the following steps:

[0072] S101, Generate the hemispherical shell model of the mortar cup:

[0073] Import the acetabular cup model into the image coordinate system. Generate a hemispherical shell model, denoted as `implant_bound`, on the side where the acetabular cup model contacts the acetabulum model. Its bottom surface is aligned with the bottom surface of the acetabular cup model. Figure 5As shown; the gap between the hemispherical shell model and the mortar cup model is the planned grinding area. The hemispherical shell model is not used for visualization, so it will not be displayed in actual operation.

[0074] S102, Moving mortising cup model:

[0075] The acetabular cup model is moved to the predetermined position of the acetabular model by translation and rotation, and the rigid body transformation matrix T of the acetabular cup model from the initial position to the predetermined position is obtained in the image coordinate system.

[0076] S103, a moving hemispherical shell model;

[0077] The rigid body transformation matrix T is applied to the hemispherical shell model implant_bound, causing it to move to the predetermined position of the mortar cup model.

[0078] In the specific implementation process, step S2 includes the following steps:

[0079] S201, construct the minimum bounding box of the acetabulum model, and perform 3D meshing on the bounding box to obtain several small cubes, each of which is a voxel;

[0080] S202, for each voxel in the bounding box, if the voxel is located outside the acetabular model, the value of the voxel is set to a; if the voxel is located inside the acetabular model, the value of the voxel is set to b; in this embodiment, a is 0 and b is 2000, and the specific values ​​can be flexibly selected.

[0081] S203, for each voxel inside the acetabular model, if the voxel is located within the planned grinding area on the acetabular model, then the value of the voxel is modified to c; in this embodiment, c is 1000, and the specific value can be flexibly selected.

[0082] S204. For each voxel inside the acetabular model, if the position of the voxel exceeds the planned grinding area on the acetabular model and the thickness of the excess is within the allowable error range, then the value of the voxel is modified to d; in this embodiment, d is 3000, and the specific value can be flexibly selected.

[0083] Furthermore, in step S201, the method for constructing the minimum bounding box of the acetabular model is as follows:

[0084] Let the surface model of the acetabulum be bone. Traverse the coordinate values ​​of each vertex on the surface of bone and record the maximum and minimum coordinate values ​​in the x-axis, y-axis, and z-axis directions, respectively: x_max, x_min, y_max, y_min, z_max, z_min. The spatial closed shape formed by the eight vertices (x_max, y_max, z_max), (x_min, y_max, z_max), (x_max, y_min, z_max), (x_max, y_max, z_min), (x_min, y_min, z_max), (x_min, y_max, z_min), (x_min, y_min, z_min), (x_max, y_min, z_min), (x_min, y_min, z_min) is the minimum bounding box of the acetabulum model.

[0085] A blank 3D image, denoted as "image", is generated using the bounding box described above, such as... Figure 6 As shown;

[0086] Let the voxel size of the image be l, where a voxel is a small cube with a side length of l, and l is a value determined by the user in advance;

[0087] Calculate the dimensions (number of voxels) of the image along the three coordinate axes:

[0088] x-axis dimension: ceil[(x_max–x_min) / l]

[0089] y-axis dimension: ceil[(y_max–y_min) / l]

[0090] z-axis dimension: ceil[(z_max–z_min) / l]

[0091] ceil means round up;

[0092] Calculate the origin coordinates of the image:

[0093] x-axis coordinate: x_min+l / 2

[0094] y-axis coordinate: y_min+l / 2

[0095] z-axis coordinate: z_min+l / 2

[0096] Use the above information to initialize the image.

[0097] Furthermore, in step S202, the specific implementation steps are as follows:

[0098] Use bone to initialize a VTK template tool vtkPolyDataToImageStencil, and name it boneStencil;

[0099] Use the vtkImageStencil filter, take the image as the input to the filter, use boneStencil as the template tool used by the filter, set the filter mode to forward template extraction using the ReverseStencilOff() method, and set the background voxel value to 0 using the SetBackgroundValue() method.

[0100] The filter output is assigned to the image, such as a cross-section of the image. Figure 7 As shown.

[0101] Furthermore, in step S203, the specific implementation steps are as follows:

[0102] Initialize a VTK template utility vtkPolyDataToImageStencil using implant_bound and name it implantStencil;

[0103] Use the vtkImageStencil filter, take the image as the input of the filter, use implantStencil as the template tool used by the filter, use the ReverseStencilOff() method to set the filter mode to reverse template extraction, and use the SetBackgroundValue() method to set the background voxel value to 1000;

[0104] The output of the filter is denoted as implantImage. implantImage has the same voxel distribution as image, but the voxel values ​​are different. The image itself is not changed by the filter.

[0105] Iterate through the corresponding voxels (voxels at the same position) of the image and the implantImage. If the voxel value of the image at a certain position is 2000 and the voxel value of the implantImage is 1000, set the voxel value of the image to 1000. After the iteration is complete, a cross-section of the image will look like this: Figure 8 As shown.

[0106] Furthermore, in step S204, if the maximum allowable deviation thickness of grinding is d', then the number of voxels corresponding to the maximum allowable deviation thickness is n = ceil(d' / l), where ceil represents rounding up to the nearest integer; l is the size of the voxel, i.e. the side length of the small cube;

[0107] Traverse the voxels in the bounding box. If a voxel has a value of 2000 and there is a voxel with a value of 1000 or 0 among its neighboring voxels (if the value of the neighboring voxel is 1000, it means that the current voxel is adjacent to the edge of the planned grinding area; if the value of the neighboring voxel is 0, it means that the current voxel is adjacent to the outer edge of the acetabular model, that is, the current voxel is on the surface skin of the acetabular model), then change the value of the voxel to 3000. After traversal, update the value of n to n = n-1.

[0108] Perform the following steps to increase the thickness of the model region with a voxel value of 3000 to the maximum deviation thickness d':

[0109] Step 1: Determine if n > 0 is true. If yes, proceed to step 2; otherwise, terminate the process.

[0110] Step 2: Traverse the voxels in the bounding box. If a voxel has a value of 2000 and there is a voxel with a value of 3000 in its neighboring voxels, then set the value of the voxel to 2500.

[0111] Step 3: Iterate through the voxels in the bounding box. If the value of a voxel is 2500, then set the value of that voxel to 3000.

[0112] Step 4: Update the value of n to n = n-1, and return to step 1;

[0113] After traversal, a certain section of the image is shown. Figure 9 As shown, the area between the region with a voxel value of 1000 and the region with a voxel value of 2000 is the region with a voxel value of 3000, which is the allowable grinding error range; the area between the region with a voxel value of 2000 and the region with a voxel value of 0 is the region with a voxel value of 3000, which represents the allowable grinding error range of the surface skin of the acetabular model.

[0114] The purpose of setting the voxel value to 2500 is to prevent step 2 from getting stuck in a loop until all voxels with a value of 2000 inside the acetabular model are changed to 3000, so as to facilitate the replacement of voxel values ​​within the maximum deviation thickness d' layer by layer.

[0115] In the specific implementation process, the method for coloring the acetabular model based on the volumetric data in step S3 is as follows:

[0116] The portion of the bounding box with a voxel value of 0 is rendered as completely transparent, the portion with a voxel value of 2000 is rendered as the first color (red in this embodiment), the portion with a voxel value of 1000 is rendered as the second color (green in this embodiment), and the portion with a voxel value of 3000 is rendered as the third color (white in this embodiment).

[0117] In the specific implementation process, step S3 includes the following steps:

[0118] 1) Define the color transfer function.

[0119] The goal is to render the portion of the image with a voxel value of 1000 as green, the portion with a voxel value of 2000 as red, and the portion with a voxel value of 3000 as white.

[0120] Initialize a vtkColorTransferFunction named colorFunction;

[0121] At a voxel value of 0, set the color to white:

[0122] colorFunction->AddRGBPoint(0,1,1,1)

[0123] At a voxel value of 950, set the color to white:

[0124] colorFunction->AddRGBPoint(950,1,1,1)

[0125] At a voxel value of 960, set the color to green:

[0126] colorFunction->AddRGBPoint(960,0,1,0)

[0127] At a voxel value of 1020, set the color to green:

[0128] colorFunction->AddRGBPoint(1020,0,1,0)

[0129] At a voxel value of 1030, set the color to red:

[0130] colorFunction->AddRGBPoint(1050,1,0,0)

[0131] At a voxel value of 2000, set the color to red:

[0132] colorFunction->AddRGBPoint(2000,1,0,0)

[0133] At a voxel value of 2010, set the color to white:

[0134] colorFunction->AddRGBPoint(2010,1,1,1)

[0135] At a voxel value of 3000, set the color to white:

[0136] colorFunction->AddRGBPoint(3000,1,1,1)

[0137] Use this color transfer function to render the image.

[0138] 2) Set the opacity transfer function.

[0139] The goal is to make the parts of the image with zero voxel values ​​fully transparent, and the parts with non-zero voxel values ​​opaque.

[0140] Initialize a vtkPiecewiseFunction named opacityFunction

[0141] At voxel value 0, set the opacity to 0: opacityFunction->AddPoint(0,0)

[0142] At voxel value 960, set the opacity to 0: opacityFunction->AddPoint(960,0)

[0143] At a voxel value of 1000, set the opacity to 1: opacityFunction->AddPoint(1000,1)

[0144] At a voxel value of 1020, set the opacity to 0: opacityFunction->AddPoint(1020,0)

[0145] At voxel value 1980, set the opacity to 0: opacityFunction->AddPoint(1980,0)

[0146] At a voxel value of 2000, set the opacity to 1: opacityFunction->AddPoint(2000,1)

[0147] At a voxel value of 3000, set the opacity to 1: opacityFunction->AddPoint(3000,1)

[0148] The transparency transfer function is used for image rendering, and the overall effect of the shaded acetabular model is shown below. Figure 10 As shown.

[0149] In the specific implementation process, in step S4, as the grinding instrument moves, the grinding area exposed on the surface of the acetabular model is displayed sequentially:

[0150] Green indicates that the current grinding area is within the planned grinding area;

[0151] White indicates that the current grinding area exceeds the planned grinding area, but the excess thickness is within the allowable error range;

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

[0153] In practice, the surface model of the grinding head is denoted as reamer, which is a pre-prepared hemispherical shell surface with the same size as the actual grinding head. During the guided grinding process, the image remains stationary in the image, while the reamer moves in the image as the real-world grinding head moves. The relative positional relationship between the reamer and the image corresponds to the relative positional relationship between the real-world grinding head and the patient's acetabulum.

[0154] Whenever the position of the reamer changes, update the image as follows, so that the voxel values ​​within the reamer in the image are set to 0:

[0155] Use reamer to initialize a VTK template tool vtkPolyDataToImageStencil, and name it reamerStencil;

[0156] Use the vtkImageStencil filter, take the image as the input of the filter, use reamerStencil as the template tool used by the filter, set the filter mode to reverse template extraction using the ReverseStencilOn() method, and set the background voxel value to 0 using the SetBackgroundValue() method.

[0157] Assign the filter output to the image.

[0158] Because voxels with a voxel value of 0 are completely transparent, the overlapping areas of the image and reamer are no longer displayed. Furthermore, as the grinding process continues, the green, white, and red parts of the image are gradually exposed, as shown below. Figure 11 As shown, this is used to simulate the grinding process.

[0159] In another aspect, this embodiment also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the visualization method described above.

[0160] In another aspect, this embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described visualization method.

[0161] accomplish Figure 3 The computer program of the method shown can be stored on one or more computer-readable media. A computer-readable medium can be a readable signal medium or a readable storage medium. A readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.

[0162] The computer-readable storage medium may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0163] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0164] In summary, this invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that in practice, general-purpose data processing devices such as microprocessors or digital signal processors (DSPs) can be used to implement some or all of the functions of some or all of the components according to the embodiments of the invention. The invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the invention can be stored on a computer-readable medium or can take the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0165] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the present invention is not inherently related to any specific computer, virtual device, or electronic device, and various general-purpose devices can also implement the present invention. The above descriptions are merely specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A visualization method for navigable acetabular grinding, characterized in that, Includes the following steps: S1, move the acetabular cup model to the predetermined position of the acetabular model; S2, based on the overlapping area between the acetabular cup model and the acetabular model, a grinding area is planned on the acetabular model, and the volumetric data of the acetabular model is generated based on the planned grinding area; step S2 specifically includes the following steps: S201, construct the minimum bounding box of the acetabulum model, and perform 3D meshing on the bounding box to obtain several small cubes, each of which is a voxel; S202, for each voxel in the bounding box, if the voxel is located outside the acetabular model, then set the value of that voxel to... a If the voxel is located inside the acetabular model, then the value of that voxel is set to... b ; S203, for each voxel inside the acetabular model, if the voxel is located within the planned grinding area on the acetabular model, then modify the value of that voxel to... c ; S204, for each voxel inside the acetabular model, if the voxel's position exceeds the planned grinding area on the acetabular model, and the excess thickness is within the allowable error range, then the value of that voxel is modified to... d ; The maximum allowable deviation in thickness during grinding is defined as follows: d’ The maximum allowable deviation in thickness corresponds to the number of voxels. n = ceil ( d’ / l ),in, ceil Indicates rounding up to the nearest integer; l The dimensions of the voxel are the side lengths of the small cube. Iterate through the voxels in the bounding box; if the value of a voxel is... b And there exists a value in the adjacent voxels of this voxel. c or a If the voxel is a certain value, then modify the value of that voxel to... d Update after traversal is complete. n Value n = n -1; Perform the following steps to increase the voxel value d Model region thickness to maximum deviation thickness d’ : step1, judge n If the value >0 is true, proceed to step 2; otherwise, terminate the process. Step 2: Iterate through the voxels in the bounding box. If the value of a voxel is... b And there exists a value in the adjacent voxels of this voxel. d If the voxel is a voxel, then set the value of that voxel to... e ; Step 3: Iterate through the voxels in the bounding box. If the value of a voxel is... e Then set the value of the voxel to d ; Step 4, Update n Value n = n -1, return to step 1; S3, color the acetabular model based on the volumetric drawing data; Set the value of the voxels in the bounding box to a The portion is rendered completely transparent, and the value of the voxels within the bounding box is set to... b The portion is rendered as the first color, and the voxel value within the bounding box is... c The portion is rendered as the second color, and the value of the voxels within the bounding box is... d The portion is rendered in the third color; S4, during the guided grinding process, as the grinding machine moves, the corresponding part on the acetabular model is removed, and the grinding area exposed on the surface of the acetabular model is displayed in the corresponding color to the operator.

2. The visualization method for navigable acetabular grinding as described in claim 1, characterized in that, Step S1 specifically includes the following steps: S101, Generate the hemispherical shell model of the mortar cup: Import the acetabular cup model into the image coordinate system, and generate a hemispherical shell model on the side where the acetabular cup model contacts the acetabulum model; S102, Moving mortising cup model: The acetabular cup model is moved to the predetermined position of the acetabular model by translation and rotation, and the rigid body transformation matrix of the acetabular cup model from the initial position to the predetermined position is obtained in the image coordinate system. S103, Moving hemispherical shell model: The rigid body transformation matrix is ​​applied to the hemispherical shell model, causing it to move to the predetermined position of the mortar cup model.

3. The visualization method for navigable acetabular grinding as described in claim 1, characterized in that, In step S201, the method for constructing the minimum bounding box of the acetabular model is as follows: Traverse the coordinates of each vertex on the surface of the acetabulum model and record the maximum and minimum coordinate values ​​in the x-axis, y-axis, and z-axis directions: x_max, x_min, y_max, y_min, z_max, z_min. The spatial closed shape formed by the eight vertices (x_max, y_max, z_max), (x_min, y_max, z_max), (x_max, y_min, z_max), (x_max, y_max, z_min), (x_min, y_min, z_max), (x_min, y_max, z_min), (x_min, y_min, z_min), (x_max, y_min, z_min), (x_min, y_min, z_min), (x_min, y_min, z_min) is the minimum bounding box of the acetabulum model.

4. The visualization method for navigable acetabular grinding as described in claim 1, characterized in that, In step S4, as the grinding machine moves, the grinding areas exposed on the surface of the acetabular model are displayed sequentially: The second color indicates that the current grinding area is within the planned grinding area. The third color indicates that the current grinding area exceeds the planned grinding area, and the excess thickness is within the allowable error range. The first color indicates that the current grinding area exceeds the planned grinding area range, and the excess thickness is greater than the maximum value of the allowable error range.

5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 4.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Joint replacement surgical robot navigation and positioning system and method

    CN112641510A

  • Haptic guidance system and method

    US20060142657A1