Visualization method for acetabulum grinding and storage medium
By directly performing Boolean operations on the surface mesh data, the problem of reduced model accuracy and low computing efficiency in navigation acetabular grinding is solved, and efficient and smooth visual display is achieved, reducing surgical risks and system delays, and providing intuitive operational feedback.
Patent Information
- Application Number
- CN202411102825.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-12
AI Technical Summary
The existing navigation acetabular grinding visualization method has problems such as decreasing model accuracy and low computing efficiency, which leads to granulation and screen lag, affecting the smooth progress of the operation.
Directly performing Boolean operations on the surface mesh data to be polished, buffered and alerted areas, and real-time difference set operation is performed through VTK tool to update the acetabulum model, avoiding the conversion between the surface mesh data and voxel image data, and improving The calculation efficiency and smoothness of visual results are obtained.
Improves smoothness and accuracy of visual results, reduces system delays, ensures the model's geometric details and morphological characteristics retention, provides intuitive grinding progress and position feedback, and reduces surgical risks.
Smart Images

Figure CN118986516A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of medical image processing, and in particular to a visualization method and storage medium for acetabulum grinding. Background Art
[0002] In navigation-based acetabular replacement surgery, acetabular grinding is a crucial step, which is directly related to the success of the surgery and the patient's recovery effect. Traditional acetabular grinding methods mainly rely on the doctor's experience and surgical skills. It is difficult to accurately control the amount and position of grinding, which can easily lead to problems such as insufficient or excessive grinding. In order to solve these problems, in recent years, navigation-based acetabular grinding methods based on computer vision and medical image processing technology have received widespread attention and application.
[0003] However, the existing navigation-based acetabular grinding visualization methods still have some significant technical defects. One commonly used method is to convert the surface mesh data into a three-dimensional image composed of voxels and perform addition and subtraction operations on the three-dimensional image to achieve grinding visualization. Although this method can simulate the grinding process to a certain extent, its disadvantages are:
[0004] (1) Reduced model accuracy: When surface mesh data is converted to 3D images, the model accuracy is inevitably reduced due to the limitation of the voxel size of the image, which makes the final visualization result granular (unsmooth). This granular phenomenon not only affects the visual effect, but also may mislead the doctor's judgment and operation.
[0005] (2) Low computational efficiency: Each time a cutting operation is performed, the 3D image needs to be converted back into surface mesh data. This data format conversion process takes a long time, resulting in low visualization computational efficiency. During surgeries that require high real-time performance, this low efficiency may cause screen freezes, affecting the smooth progress of the surgery.
[0006] In order to overcome the above defects, some researchers have tried to pre-process the three-dimensional images, such as filtering operations, to improve the smoothness of the visualization results. For example, CN116636902A proposed a method for direct visualization based on three-dimensional image volume drawing. Although it eliminates the step of reconstructing the surface after each cut and improves the calculation efficiency, the visualization results still have obvious granularity. CN116824100A has made improvements on the basis of CN116636902A. Through additional filtering operations and specific color mapping tables during the initialization of the three-dimensional image, the volume drawing display has a smoothing effect. However, this method still cannot completely solve the problem of obvious granularity of the newly formed section each time. Summary of the invention
[0007] The purpose of the present invention is to provide a visualization method for acetabulum grinding in view of the problems existing in the prior art, so as to solve the problems of granularization, low computational efficiency and the like in the prior art.
[0008] To achieve the above object, the technical solution adopted by the present invention is:
[0009] A visualization method for acetabulum grinding comprises the following steps:
[0010] S1. Generate two hemisphere shell surface mesh models according to the acetabular cup model cup, which are respectively recorded as hemisphere_0 and hemisphere_1, wherein the radius of hemisphere_0 is the same as the outermost hemisphere of cup, and the radius of hemisphere_1 is larger than that of hemisphere_0 by a specified buffer distance n;
[0011] S2, move the cup to the predetermined position of the acetabulum model bone, obtain its transformation matrix T, apply the transformation matrix T to hemisphere_0 and hemisphere_1, and move the two to the same position as the cup;
[0012] S3, using the vtkbool module to perform Boolean operations on bone, generating the to-be-polished area Green, the buffer area Buffer and the warning area Red respectively, and creating a thin shell White that wraps Red, to establish a color separation model of the acetabulum;
[0013] S4. Use the grinding head model reamer to grind the acetabulum color separation model, and update the acetabulum model through real-time difference operation to reflect the grinding process.
[0014] Step S1 specifically includes:
[0015] S1.1. Import the acetabular cup model in the image coordinates, and record the model as cup. The outermost layer of the cup is hemispherical. The center of the hemisphere is determined to be the rotation center o of the acetabular cup, and the radius of the hemisphere is a known value r.
[0016] S1.2. With the center o of the sphere as the center of the circle and the radius r of the hemisphere as the radius, a hemisphere shell surface mesh model is generated. The model is recorded as hemisphere_0, and its bottom surface is flush with the bottom surface of the cup to ensure the correspondence between the two in spatial position;
[0017] S1.3. Similarly, generate another hemispherical shell surface mesh model with the sphere center o as the circle center and r+n as the radius, where n is the thickness of the specified white buffer area.
[0018] Step S2 specifically includes:
[0019] S2.1, importing the acetabulum model in the image coordinates, recording the model as bone, moving the previously imported acetabulum cup model cup to a predetermined position on the acetabulum color separation model bone by translation and / or rotation, and during the movement, recording and obtaining the rigid body transformation matrix T of cup from the initial position to the planned position in the image coordinate system;
[0020] S2.2. Apply the rigid body transformation matrix T to hemisphere_0 and hemisphere_1. By applying this transformation matrix, hemisphere_0 and hemisphere_1 are also moved to the same planned position as cup.
[0021] Step S3 specifically includes:
[0022] S3.1. Use the vtkbool module to perform an intersection operation on bone and hemisphere_0. The resulting surface mesh data is recorded as Green. The vtkActor color corresponding to Green is set to green to indicate the area to be polished.
[0023] S3.2. Use the vtkbool module to perform an intersection operation on bone and hemisphere_1, and the resulting surface mesh data is recorded as Tmp. Use the vtkbool module to perform a difference operation on Tmp and Green, and the resulting surface mesh data is recorded as Buffer. Set the vtkActor color corresponding to Buffer to white to indicate the buffer area.
[0024] S3.3. Use the vtkbool module to perform a difference operation on bone and hemisphere_1. The resulting surface mesh data is recorded as Red. The color of the vtkActor corresponding to Red is set to red to indicate a warning area.
[0025] In step S3, a thin shell White is created to wrap Red, including:
[0026] S3.4. Copy a piece of Red surface mesh data; use the vtkPolyDataNormals filter to calculate the normal vector for each vertex of the copied Red surface mesh data; use the vtkWarpVector filter to move each vertex of the copied Red surface mesh data along the direction of its normal vector by a distance m that is much smaller than the accuracy of the navigation system, to generate a white thin shell area White that wraps Red; set the vtkActor color corresponding to White to white.
[0027] In step S3, a color separation model of the acetabulum is established, including:
[0028] S3.5. Create a vtkRenderer object as a rendering environment;
[0029] S3.6. For the four areas of Green, Buffer, Red, and White, create corresponding vtkActor objects and set their color properties.
[0030] S3.7. Add these four vtkActor objects to the same vtkRenderer so that they can be displayed together in the same scene;
[0031] S3.8. Render the entire scene through the rendering mechanism of VTK and establish a color separation model of the acetabulum, in which the area to be polished is green, the buffer area is white, the part beyond the planned area is red, and the red part is blocked by a white thin shell.
[0032] Step S4 specifically includes:
[0033] S4.1. The surface mesh model of the grinding head is called reamer, where reamer is a hemispherical shell model with the same size as the real grinding head.
[0034] S4.2. During the navigation-based grinding process, the acetabulum color model remains stationary in the image, and the reamer moves in the image as the grinding head in the real world moves. The relative position relationship between the reamer and the acetabulum model conforms to the relative position relationship between the grinding head in the real world and the patient's acetabulum.
[0035] S4.3. Whenever the position of the reactor changes, the acetabulum color separation model is updated using the Boolean operation function of the VTK tool.
[0036] Step S4.3 specifically includes:
[0037] S4.3.1. Use the vtkbool module to perform a difference operation on Green and reamer. If reamer and Green have an intersection, remove the intersection from Green, indicating that the part has been ground.
[0038] S4.3.2, use the vtkbool module to perform a difference operation on the Buffer and the reamer. If the Buffer and the reamer have an intersection, the intersection part is removed from the Buffer, indicating that it is close to the edge of the planned grinding area;
[0039] S4.3.3. Use the vtkbool module to perform a difference operation on the red area Red and reamer. If reamer and Red have an intersection, the intersection part is removed from Red, indicating that the warning area has been entered.
[0040] S4.3.4. Use the vtkImplicitPolyDataDistance filter to determine whether each vertex in the White area is inside the reamer mesh model; if the vertex is inside the reamer, use the vtkClipPolyData filter to remove the vertex and its adjacent parts from the White, and update the White area.
[0041] A computer-readable storage medium stores a computer program, wherein the computer program implements the above method steps when executed by a processor.
[0042] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method steps when executing the computer program.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] By directly performing Boolean operations on the surface mesh data, the step of converting the surface mesh data into voxel-based image data and then performing operations is avoided, and the fineness and smoothness of the original surface mesh data are retained, making the visualization of the polishing results smoother without granularity.
[0045] The traditional cutting and reconstruction method based on voxel image data requires image-to-surface reconstruction after each cutting. This conversion process is time-consuming and easily causes screen freezes. However, the surface Boolean operation of the present application is performed directly on the surface mesh data without the need for data format conversion, thereby greatly improving the operation efficiency and reducing system delays.
[0046] Since the conversion between surface mesh data and voxel image data is avoided, the present application can more accurately retain the geometric details and morphological features of the model, improve the accuracy of the polished model, and make the visualization result closer to the real situation;
[0047] During the grinding process, the present application intuitively reflects the relative position relationship between the grinding head and the acetabulum model and the grinding progress through real-time updates of different color areas. When the grinding exceeds the planned area, the display of the red warning area can immediately alert the operator to avoid possible surgical risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] 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.
[0049] Figure 1 This is a schematic diagram of the structure of an acetabular cup model in one embodiment of the present application;
[0050] Figure 2 This is a schematic diagram of the structure of the hemisphere shell surface grid model hemisphere_0 in one embodiment of the present application;
[0051] Figure 3 This is a schematic diagram of the structure of the hemisphere shell surface grid model hemisphere_1 in one embodiment of the present application;
[0052] Figure 4 A schematic diagram of moving a cup from an initial position to a planned position in one embodiment of the present application;
[0053] Figure 5 This is a schematic diagram of moving the planned positions of hemisphere_0 and hemisphere_1 in one embodiment of the present application;
[0054] Figure 6 This is a schematic diagram of the intersection operation of bone and hemisphere_0 in one embodiment of the present application;
[0055] Figure 7 This is a schematic diagram of performing an intersection operation on bone and hemisphere_1, and performing a difference operation on Tmp and Green in one embodiment of the present application;
[0056] Figure 8 This is a schematic diagram of performing a difference operation between bone and hemisphere_1 in one embodiment of the present application;
[0057] Fig. 9 A schematic diagram of generating a thin shell region White in an embodiment of the present application;
[0058] Fig.10 A schematic diagram of an acetabulum color separation model in one embodiment of the present application;
[0059] Fig.11 It is a schematic diagram of updating the acetabulum color separation model in one embodiment of the present application. DETAILED DESCRIPTION
[0060] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings 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.
[0061] In a first aspect of the present application, a visualization method for acetabulum grinding is provided, comprising the following steps:
[0062] S1. Generate two hemisphere shell surface mesh models according to the acetabular cup model cup, which are respectively recorded as hemisphere_0 and hemisphere_1, wherein the radius of hemisphere_0 is the same as the outermost hemispherical part of cup, and the radius of hemisphere_1 is larger than that of hemisphere_0 by a specified buffer distance n.
[0063] Specifically, by generating two hemisphere shells hemisphere_0 and hemisphere_1 with different radii, the acetabulum area Green that needs to be ground and the buffer area Buffer and warning area Red that may exceed the planned grinding area can be accurately defined. Among them, the buffer distance n can be specified according to the specific situation, such as n is set to 1mm, to meet different surgical needs.
[0064] S2. Move cup to the predetermined position of the acetabulum model bone, obtain its transformation matrix T, apply the transformation matrix T to hemisphere_0 and hemisphere_1, and move them to the same position as cup, providing an accurate benchmark for subsequent intersection and difference operations.
[0065] S3. Use the vtkbool module to perform Boolean operations on bone to generate the to-be-polished area Green, the buffer area Buffer, and the warning area Red, respectively. Create a thin shell White that wraps Red to establish a color separation model of the acetabulum.
[0066] S4. Use the grinding head model reamer to grind the acetabulum color separation model, and update the acetabulum model through real-time difference operation to reflect the grinding process.
[0067] In summary, by directly performing Boolean operations on the surface mesh data, the process of converting the surface mesh data into three-dimensional images is avoided, thereby reducing the accuracy loss caused by the voxel size and improving the smoothness and accuracy of the visualization results.
[0068] By generating and dynamically coloring color area templates, the operator can intuitively understand the current grinding progress and position, making it easier to adjust the operation in a timely manner and improving the safety and success rate of the operation.
[0069] It should be noted that vtkbool is an open source tool library developed based on VTK, focusing on Boolean operations on surface mesh data; vtkbool can perform union operations (Union), intersection operations (Intersection) and difference operations (Difference) on two surface mesh data, thereby meeting the needs of complex three-dimensional graphics processing; the input and output of vtkbool are both closed spatial geometries, which enables it to maintain data integrity and accuracy when processing three-dimensional models.
[0070] It should be noted that the data types of all surface mesh data used in this embodiment are vtkPolyData; vtkPolyData is a data structure used to represent polygon data in VTK, which can store geometric information such as vertices, edges, and faces, as well as related attribute information such as color and texture. vtkPolyData is an efficient and flexible data type for processing three-dimensional graphics data.
[0071] In some embodiments, step S1 specifically includes:
[0072] S1.1, if Figure 1 As shown, the acetabular cup model is imported into the image coordinates, and the model is denoted as cup. The outermost layer of the cup is hemispherical, and the center of the hemisphere is determined to be the rotation center o of the acetabular cup, and the radius of the hemisphere is a known value r.
[0073] S1.2, such as Figure 2 As shown in the figure, with the center o as the center of the circle and the radius r of the hemisphere as the radius, a hemisphere shell surface mesh model is generated. The model is recorded as hemisphere_0, and its bottom surface is flush with the bottom surface of the cup to ensure the correspondence between the two in spatial position, so that the generated Green area can accurately reflect the part of the acetabulum that needs to be ground.
[0074] S1.3, if Figure 3 As shown in the figure, another hemispherical shell surface mesh model is generated with the sphere center o as the circle center and r+n as the radius, where n is the thickness of the specified white buffer area. By setting the buffer layer, it is helpful for the operator to adjust the grinding path in time to avoid over-grinding.
[0075] This embodiment provides a basis for grinding area planning and dynamic coloring in subsequent steps by accurately importing the acetabular cup model, generating two hemispherical shell surface mesh models with different radii, and setting a reasonable buffer area.
[0076] In some embodiments, step S2 specifically includes:
[0077] S2.1, such as Figure 4 As shown, the acetabulum model is imported into the image coordinates and the model is recorded as bone. The previously imported acetabulum cup model cup is moved to a predetermined position on the acetabulum color separation model bone by translation and / or rotation. During the movement, the rigid body transformation matrix T experienced by the cup from the initial position to the planned position in the image coordinate system is recorded and obtained.
[0078] S2.2, such as Figure 5 As shown, the rigid body transformation matrix T is applied to hemisphere_0 and hemisphere_1. By applying this transformation matrix, hemisphere_0 and hemisphere_1 are also moved to the same planned position as cup.
[0079] This embodiment achieves accuracy and consistency in grinding area planning by accurately moving the acetabular cup model to a predetermined position and recording a transformation matrix, and applying the transformation matrix to the hemispherical shell model.
[0080] In some embodiments, in step S3, the vtkbool module is used to perform Boolean operations on bone to generate the to-be-polished area Green, the buffer area Buffer, and the warning area Red, respectively, including:
[0081] S3.1, if Figure 6 As shown, the vtkbool module is used to perform an intersection operation on bone and hemisphere_0, and the resulting surface mesh data is recorded as Green. The vtkActor color corresponding to Green is set to green, indicating the area to be polished.
[0082] S3.2, such as Figure 7 As shown, the vtkbool module is used to perform an intersection operation on bone and hemisphere_1, and the resulting surface mesh data is recorded as Tmp; the vtkbool module is used to perform a difference operation on Tmp and Green, and the resulting surface mesh data is recorded as Buffer, and the vtkActor color corresponding to Buffer is set to white to indicate the buffer area.
[0083] S3.3, if Figure 8 As shown, the vtkbool module is used to perform a difference operation on bone and hemisphere_1, and the obtained surface mesh data is recorded as Red. The vtkActor color corresponding to Red is set to red to indicate a warning area.
[0084] In summary, in this embodiment, the to-be-grinded area Green, the buffer area Buffer, and the warning area Red are generated through Boolean operations and color identification, which provides support for grinding and visualization during the surgical process.
[0085] In some embodiments, in step S3, creating a thin shell White encapsulating Red includes:
[0086] S3.4, such as Fig. 9 As shown, copy a Red surface mesh data; use the vtkPolyDataNormals filter to calculate the normal vector for each vertex of the copied Red surface mesh data; use the vtkWarpVector filter to move each vertex of the copied Red surface mesh data along the direction of its normal vector by a distance m (such as 0.01mm) that is much smaller than the accuracy of the navigation system, to generate a white thin shell area White that wraps Red; set the vtkActor color corresponding to White to white.
[0087] The main purpose of this step is to generate a tightly wrapped but slightly different white thin shell area White outside the warning area Red, so as to avoid the striped display problem caused by the identical volume shapes of the Red area and the White area when rendering; by adding a tiny white border to the Red area, namely the White area, the visual distinction can be significantly improved, so that the operator can more clearly identify the boundary between the warning area and the normal grinding area.
[0088] In some embodiments, in step S3, establishing an acetabulum color separation model includes:
[0089] S3.5. Create a vtkRenderer object as the rendering environment.
[0090] S3.6. For the four regions of Green, Buffer, Red, and White, create corresponding vtkActor objects and set their color properties. vtkActor is the basic unit used to represent three-dimensional graphics objects in VTK. It can associate graphics data with rendering properties.
[0091] S3.7. Add these four vtkActor objects to the same vtkRenderer so that they can be displayed together in the same scene to form a complete acetabulum color separation model.
[0092] S3.8. Render the entire scene using VTK’s rendering mechanism, where the area to be polished is green, the buffer area is white, the area beyond the planned area is red, and the red part is blocked by a white thin shell. Fig.10 shown.
[0093] In summary, through the above steps, the VTK-based acetabulum color separation model achieves accurate geometric reconstruction and provides intuitive operation feedback and safety warnings through visualization technology.
[0094] In some embodiments, step S4 specifically includes:
[0095] S4.1. The surface mesh model of the grinding head is denoted as reactor. Reactor is a hemispherical shell model with the same size as the real grinding head, thereby accurately simulating the shape and movement of the real grinding head in the virtual environment.
[0096] S4.2. During the navigational grinding process, the acetabulum color model remains stationary in the image, and the reactor moves in the image as the real-world grinding head moves. The relative position relationship between the reactor and the acetabulum model conforms to the relative position relationship between the real-world grinding head and the patient's acetabulum.
[0097] S4.3. Whenever the position of the reactor changes, the acetabulum color separation model is updated using the Boolean operation function of the VTK tool to simulate the removal effect of the grinding head on the acetabulum.
[0098] In summary, in this embodiment, the acetabulum model will be updated in real time as the grinding head moves, showing the current grinding status. The distribution and changes of different color areas can intuitively reflect the progress of grinding and whether it exceeds the planned range. If the grinding exceeds the planned area, the red area Red will be exposed, sending a warning signal to the operator to remind him to pay attention and adjust the grinding operation.
[0099] In some embodiments, step S4.2 specifically includes:
[0100] S4.2.1. Rigidly attach an optical tracking array to the grinding instrument and the patient's acetabulum;
[0101] S4.2.2, transmit back in real time through the positioning camera the transformation matrix TcameraToToolRF from the positioning camera coordinate system Fcamera to the tool tracking array coordinate system FtoolRF, and the transformation matrix TcameraToBoneRF from Fcamera to the bone tracking array coordinate system FboneRF;
[0102] S4.2.3, performing an image registration operation, using the above two transformation matrices for image navigation positioning, to ensure that the relative position relationship between the patient's acetabulum and the grinding instrument in the real world is consistent with the relative position relationship between the acetabulum model and the grinding instrument model in the image space;
[0103] S4.2.4. When the grinding instrument in the real world moves, the positions of the acetabulum model and the grinding instrument model in the image are updated in real time using the established image navigation positioning relationship, so that the relative position relationship between the two in the image space is synchronized with the relative position relationship in the real world.
[0104] In some embodiments, Fig.11 As shown, step S4.3 specifically includes:
[0105] S4.3.1. Use the vtkbool module to perform a difference operation on Green and reamer. If reamer and Green intersect, remove the intersecting part from Green, indicating that the part has been ground. Use the updated Green area surface mesh data to redraw the corresponding part in the acetabulum color model, thereby reflecting the ground part in real time.
[0106] S4.3.2. Use the vtkbool module to perform a difference operation on the Buffer and the reamer. If the Buffer and the reamer intersect, remove the intersecting part from the Buffer, indicating that it is close to the edge of the planned grinding area. Use the updated surface mesh data of the Buffer area to redraw the corresponding part of the acetabulum color model to ensure that when the grinding approaches the planned edge, the buffer area can accurately reflect the remaining safety range.
[0107] S4.3.3. Use the vtkbool module to perform a difference operation on the red area Red and reamer. If reamer and Red intersect, the intersection part is removed from Red, indicating that it has entered the warning area. Use the updated surface mesh data of the Red area to redraw the corresponding part of the acetabulum model to ensure that when the grinding exceeds the planned area, the red area can reflect the dangerous area in real time and issue a warning to the operator.
[0108] S4.3.4. Use the vtkImplicitPolyDataDistance filter to determine whether each vertex on the White area is inside the reamer mesh model; if the vertex is inside the reamer, use the vtkClipPolyData filter to remove the vertex and its adjacent parts from the White, and update the White area; the result of the clipping operation is a new White area surface mesh data, which reflects the remaining part after the grinding head penetrates the white thin shell; use the clipped White area surface mesh data to update the corresponding part in the acetabulum color separation model, so that when the grinding head penetrates the white thin shell, the red warning area will be exposed, providing a clear warning signal for the operator.
[0109] In this embodiment, through the above four sub-steps, the acetabulum color separation model can be updated in real time, accurately reflecting the movement trajectory and removal effect of the grinding head, and providing intuitive and accurate surgical navigation and warning information for doctors or operators.
[0110] According to a second aspect of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program implements the above-mentioned method steps when executed by a processor.
[0111] According to a third aspect of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method steps when executing the computer program.
[0112] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0113] In the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish descriptions and cannot be understood as indicating or suggesting relative importance. It should also be understood that although the terms "first", "second", etc. are used to describe various elements in some embodiments of the present application in the text, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first table can be named as the second table, and similarly, the second table can be named as the first table without departing from the scope of the various described embodiments. The first table and the second table are both tables, but they are not the same table.
[0114] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0115] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A visualization method for acetabular grinding, It is characterized in that The following steps are involved: S1. Generate two hemisphere shell surface mesh models according to the acetabular cup model cup, which are respectively recorded as hemisphere_0 and hemisphere_1, wherein the radius of hemisphere_0 is the same as the outermost layer of cup, while the radius of hemisphere_1 is larger than that of hemisphere_0 by a specified buffer distance n; S2, move the cup to the predetermined position of the acetabulum model bone, obtain its transformation matrix T, and apply the transformation matrix T to hemisphere_0 and hemisphere_1; S3, use vtkbool module to perform Boolean operation on bone, generate the to-be-polished area Green, buffer area Buffer and warning area Red respectively, create a thin shell White that wraps Red, and establish the acetabulum color separation model; S4. Use the grinding head model reamer to grind the acetabulum color separation model, and update the model through real-time difference operation to reflect the grinding process.
2. A visualization method for acetabulum grinding according to claim 1, It is characterized in that Step S1 specifically includes: S1.
1. Import the acetabular cup model in the image coordinates, and record the model as cup. The outermost layer of the cup is hemispherical. The center of the hemisphere is determined to be the rotation center o of the acetabular cup, and the radius of the hemisphere is a known value r. S1.
2. With the center o of the sphere as the center of the circle and the radius r of the hemisphere as the radius, a hemisphere shell surface mesh model is generated. The model is recorded as hemisphere_0, and its bottom surface is flush with the bottom surface of the cup to ensure the correspondence between the two in spatial position; S1.
3. Similarly, generate another hemispherical shell surface mesh model with the sphere center o as the circle center and r+n as the radius, where n is the thickness of the specified buffer area.
3. A visualization method for acetabulum grinding according to claim 1, It is characterized in that Step S2 specifically includes: S2.1, importing the acetabulum model in the image coordinates, recording the model as bone, moving the previously imported acetabulum cup model cup to a predetermined position on the acetabulum color separation model bone by translation and / or rotation, and during the movement, recording and obtaining the rigid body transformation matrix T of cup from the initial position to the planned position in the image coordinate system; S2.
2. Apply the rigid body transformation matrix T to hemisphere_0 and hemisphere_1. By applying this transformation matrix, hemisphere_0 and hemisphere_1 are also moved to the same planned position as cup.
4. A visualization method for acetabulum grinding according to claim 1, It is characterized in that In step S3, the vtkbool module is used to perform Boolean operations on bone to generate the to-be-polished area Green, the buffer area Buffer and the warning area Red, respectively, including: S3.
1. Use the vtkbool module to perform an intersection operation on bone and hemisphere_0. The resulting surface mesh data is recorded as Green. The vtkActor color corresponding to Green is set to green to indicate the area to be polished. S3.
2. Use the vtkbool module to perform an intersection operation on bone and hemisphere_1, and the resulting surface mesh data is recorded as Tmp. Use the vtkbool module to perform a difference operation on Tmp and Green, and the resulting surface mesh data is recorded as Buffer. Set the vtkActor color corresponding to Buffer to white to indicate the buffer area. S3.
3. Use the vtkbool module to perform a difference operation on bone and hemisphere_1. The resulting surface mesh data is recorded as Red. The color of the vtkActor corresponding to Red is set to red to indicate a warning area.
5. A visualization method for acetabulum grinding according to claim 4, It is characterized in that In step S3, the creation of the thin shell White that wraps Red includes: S3.
4. Copy a piece of Red surface mesh data; use the vtkPolyDataNormals filter to calculate the normal vector for each vertex of the copied Red surface mesh data; use the vtkWarpVector filter to move each vertex of the copied Red surface mesh data along the direction of its normal vector by a distance m that is much smaller than the accuracy of the navigation system, to generate a white thin shell area White that wraps Red; set the vtkActor color corresponding to White to white.
6. A visualization method for acetabulum grinding according to claim 1, It is characterized in that In step S3, establishing the acetabulum color separation model includes: S3.
5. Create a vtkRenderer object as a rendering environment; S3.
6. For the four areas of Green, Buffer, Red, and White, create corresponding vtkActor objects and set their color properties. S3.
7. Add these four vtkActor objects to the same vtkRenderer so that they can be displayed together in the same scene; S3.
8. Render the entire scene through the rendering mechanism of VTK and establish a color separation model of the acetabulum, in which the area to be polished is green, the buffer area is white, the part beyond the planned area is red, and the red part is blocked by a thin shell.
7. A visualization method for acetabulum grinding according to claim 1, It is characterized in that Step S4 specifically includes: S4.
1. The surface mesh model of the grinding head is called reamer, where reamer is a hemispherical shell model with the same size as the real grinding head. S4.
2. During the navigation-based grinding process, the acetabulum color model remains stationary in the image, and the reamer moves in the image as the grinding head in the real world moves. The relative position relationship between the reamer and the acetabulum model conforms to the relative position relationship between the grinding head in the real world and the patient's acetabulum. S4.
3. Whenever the position of the reactor changes, the acetabulum color separation model is updated using the Boolean operation function of the VTK tool.
8. A visualization method for acetabulum grinding according to claim 7, It is characterized in that Step S4.3 specifically includes: S4.3.
1. Use the vtkbool module to perform a difference operation on Green and reamer. If reamer and Green have an intersection, remove the intersection from Green, indicating that the part has been ground. S4.3.2, use the vtkbool module to perform a difference operation on the Buffer and the reamer. If the Buffer and the reamer have an intersection, the intersection part is removed from the Buffer, indicating that it is close to the edge of the planned grinding area; S4.3.
3. Use the vtkbool module to perform a difference operation on the red area Red and reamer. If reamer and Red have an intersection, the intersection part is removed from Red, indicating that the warning area has been entered. S4.3.
4. Use the vtkImplicitPolyDataDistance filter to determine whether each vertex in the White area is inside the reamer mesh model; if the vertex is inside the reamer, use the vtkClipPolyData filter to remove the vertex and its adjacent parts from the White, and update the White area.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the method steps of any one of claims 1 to 8 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method steps of any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Numerical control machining milling real-time display method
CN115047825A
Acetabulum grinding method in total hip replacement surgery
CN116269750A
Visualization method and equipment for navigation type acetabulum grinding and storage medium
CN116636902A
Smooth display method for navigation type acetabulum grinding
CN116824100A
Software interface interaction method based on hip joint filing control
CN118151805A
