Knee joint bone tunnel reconstruction display method, device and equipment and readable storage medium
By performing threshold segmentation and processing on DICOM images, a three-dimensional femoral and tibial STL model is generated, and the entry and exit points of the bone tunnel are marked, which solves the problem of inaccurate bone tunnel position and improves the efficiency and accuracy of knee joint bone tunnel reconstruction surgery. .
Patent Information
- Application Number
- CN202410217184.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
The existing technology has a high failure rate due to the inaccurate position of the bone tunnel in knee joint bone tunnel reconstruction surgery, and the three-dimensional model image simulation consumes a large amount of resources, resulting in low efficiency.
By performing threshold segmentation and processing on DICOM images, a virtual three-dimensional femoral and tibial STL model is generated, and the VTK library is used to create an STL reader, VTK mapper and renderer, mark the bone tunnel entry and exit points, and generate a bone tunnel model image. .
It improves the efficiency of knee joint bone tunnel reconstruction display, reduces memory consumption and performance loss, and enhances the accuracy and reliability of surgery.
Smart Images

Figure CN118570365A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of knee bone tunnel reconstruction display, and in particular, relates to a knee bone tunnel reconstruction display method, device, equipment and computer-readable storage medium. Background Art
[0002] As people engage in healthy exercise, knee joint injuries often occur, and anterior cruciate ligament (ACL) injury is a common knee joint injury.
[0003] After the anterior cruciate ligament is injured, it needs to be repaired. Although arthroscopic ACL reconstruction surgery is relatively mature, there is still a high failure rate, mainly due to inaccurate bone tunnel position.
[0004] With the rise of computer-assisted surgery, reconstructed 3D model images can be used for simulation before surgery to assist surgery. At present, the technology of 3D model image simulation mainly uses 3D rendering engines based on Web technology: such as Three.js, Babylon.js, etc. These engines can use Web front-end technologies (such as HTML, CSS and JavaScript) to build cross-platform 3D interactive applications, but due to the need for additional resource usage during runtime, it may lead to higher memory consumption and performance loss.
[0005] Therefore, how to improve the efficiency of knee bone tunnel reconstruction display is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0006] The embodiments of the present application provide a method, device, equipment and computer-readable storage medium for displaying knee bone tunnel reconstruction, which can improve the efficiency of displaying knee bone tunnel reconstruction.
[0007] In a first aspect, an embodiment of the present application provides a method for displaying knee bone tunnel reconstruction, comprising:
[0008] Perform threshold segmentation on the patient's DICOM image and extract the femur and tibia mask image;
[0009] Generate a virtual three-dimensional femur and tibia STL model according to the femur and tibia mask image;
[0010] Create STL reader, VTK mapper, Actor and VTK renderer; STL reader is used to read the 3D femur and tibia STL model; VTK mapper is used to convert different data types into graphic data; Actor is used to execute rendering of VTK mapper objects;
[0011] On the virtual three-dimensional femoral and tibia STL model, mark the entry and exit points of the femoral and tibia bone tunnels;
[0012] A bone tunnel model image is generated based on the connection lines between the bone tunnel entry point and exit point.
[0013] Optionally, threshold segmentation is performed on the patient's DICOM image to extract the femur and tibia mask image, including:
[0014] Use DICOM image processing library to load DICOM image data;
[0015] Perform image smoothing, noise reduction and image enhancement on DICOM images;
[0016] Segment the femur and tibia in the image according to global threshold segmentation, adaptive threshold segmentation or region growing based segmentation;
[0017] Post-processing the images after segmentation of the femur and tibia to obtain a femur and tibia mask image;
[0018] Among them, post-processing operations include removing small isolated areas, filling holes, and performing morphological operations.
[0019] Optionally, perform image smoothing on the DICOM image, including:
[0020] Use filtering algorithms to perform image smoothing on DICOM images;
[0021] Wherein, the filtering algorithm includes at least one of mean filtering, Gaussian filtering and median filtering;
[0022] Mean filtering is used to take the average value of surrounding pixels for each pixel in the image, smoothing the image and reducing noise;
[0023] Gaussian filtering is used to smooth the image using a Gaussian kernel to preserve the overall structure of the image;
[0024] Median filtering is used to take the median of neighboring pixels as the current pixel value, which is suitable for removing salt and pepper noise, etc.
[0025] Optionally, perform image enhancement processing on the DICOM image, including:
[0026] Use image enhancement algorithm to enhance DICOM images;
[0027] Wherein, the image enhancement algorithm includes at least one of histogram equalization, sharpening, and contrast enhancement;
[0028] Histogram equalization is used to adjust the grayscale distribution of an image and enhance the contrast of the image;
[0029] Sharpening is used to enhance the edges and details of an image through algorithms such as edge detection;
[0030] Contrast enhancement is used to adjust the contrast of image pixels to make the image clearer.
[0031] Optionally, a virtual three-dimensional femur and tibia STL model is generated according to the femur and tibia mask image, including:
[0032] Read the femur and tibia mask image;
[0033] Based on the femur and tibia mask image, the bone boundary information is extracted;
[0034] Based on the boundary information, a three-dimensional bone model is generated using a three-dimensional reconstruction algorithm;
[0035] Perform smoothing operation on the generated three-dimensional bone model;
[0036] The smoothed three-dimensional bone model is exported as a three-dimensional femur and tibia STL model.
[0037] Optionally, create an STL reader, VTK mapper, Actor, and VTK renderer, including:
[0038] Use the vtkSTLReader class in the VTK library to create an STL reader; the vtkSTLReader class is used to read the 3D model file in STL format and convert it into a data structure in VTK;
[0039] Use the vtkPolyDataMapper class in the VTK library to create a VTK mapper; the vtkPolyDataMapper class is used to convert the STL data read by the reader into VTK polygon data and perform rendering;
[0040] Use the vtkActor class in the VTK library to create an Actor; the vtkActor class is used to add the data converted by the mapper to the scene and set some rendering properties;
[0041] Use the vtkRenderer class in the VTK library to create a VTK renderer; the vtkRenderer class is used to add all Actor objects to the scene and set some rendering properties.
[0042] Optionally, mark the entry and exit points of the femoral and tibial bone tunnels on the virtual 3D femoral and tibial STL model, including:
[0043] Based on MRI or CT images to assist in positioning, determine the entry and exit points of the bone tunnel;
[0044] On the generated virtual three-dimensional femur and tibia STL model, use small spheres or marking lines to create a marking model of the entry and exit points of the bone tunnel;
[0045] The virtual three-dimensional femur and tibia STL model and the labeled model are generated and merged so as to be displayed and analyzed in the same scene.
[0046] In a second aspect, an embodiment of the present application provides a knee joint bone tunnel reconstruction display device, comprising:
[0047] A threshold segmentation module is used to perform threshold segmentation on the patient's DICOM image and extract the femur and tibia mask image;
[0048] A model generation module is used to generate a virtual three-dimensional femur and tibia STL model according to the femur and tibia mask image;
[0049] Create a module to create an STL reader, VTK mapper, Actor and VTK renderer; the STL reader is used to read the three-dimensional femur and tibia STL model; the VTK mapper is used to convert different data types into graphic data; the Actor is used to execute the rendering of the VTK mapper object;
[0050] A marking module is used to mark the entry and exit points of the femoral tibia bone tunnel on the virtual three-dimensional femoral tibia STL model;
[0051] The image generation module is used to generate a bone tunnel model image according to the connection lines between the bone tunnel entry point and the exit point.
[0052] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;
[0053] When the processor executes the computer program instructions, a method for reconstructing and displaying a knee joint bone tunnel is implemented.
[0054] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions, when executed by a processor, implement a method for displaying knee bone tunnel reconstruction.
[0055] The knee joint bone tunnel reconstruction display method, device, equipment and computer-readable storage medium of the embodiments of the present application can improve the efficiency of knee joint bone tunnel reconstruction display.
[0056] The knee joint bone tunnel reconstruction and display method comprises: performing threshold segmentation on a patient's DICOM image to extract a femur and tibia mask image; generating a virtual three-dimensional femur and tibia STL model according to the femur and tibia mask image; creating an STL reader, a VTK mapper, an Actor and a VTK renderer; wherein the STL reader is used to read the three-dimensional femur and tibia STL model; the VTK mapper is used to convert different data types into graphic data; the Actor is used to execute the rendering of the object of the VTK mapper; marking the femur and tibia bone tunnel entry point and exit point on the virtual three-dimensional femur and tibia STL model; and generating a bone tunnel model image according to the connection lines between the bone tunnel entry point and the bone tunnel exit point. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1 It is a flowchart of a method for reconstructing and displaying a knee joint bone tunnel provided by an embodiment of the present application;
[0059] Figure 2 This is a schematic diagram showing the results of knee joint bone tunnel reconstruction provided by an embodiment of the present application;
[0060] Figure 3 It is a structural schematic diagram of a knee joint bone tunnel reconstruction display device provided by an embodiment of the present application;
[0061] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0062] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0063] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0064] In order to solve the problems of the prior art, the embodiments of the present application provide a method, device, apparatus and computer-readable storage medium for displaying reconstruction of a knee bone tunnel. The following first introduces the method for displaying reconstruction of a knee bone tunnel provided by the embodiments of the present application.
[0065] Figure 1 FIG. 1 is a flow chart of a method for reconstructing and displaying a knee joint bone tunnel provided by an embodiment of the present application. Figure 1 As shown, the knee joint bone tunnel reconstruction display method comprises:
[0066] S101, performing threshold segmentation on the patient's DICOM image to extract a femur and tibia mask image;
[0067] In one embodiment, threshold segmentation is performed on the patient's DICOM image to extract the femur and tibia mask image, including:
[0068] Use DICOM image processing library to load DICOM image data;
[0069] Perform image smoothing, noise reduction and image enhancement on DICOM images;
[0070] Segment the femur and tibia in the image according to global threshold segmentation, adaptive threshold segmentation or region growing based segmentation;
[0071] Post-processing the images after segmentation of the femur and tibia to obtain a femur and tibia mask image;
[0072] Among them, post-processing operations include removing small isolated areas, filling holes, and performing morphological operations.
[0073] In one embodiment, performing image smoothing processing on a DICOM image includes:
[0074] Use filtering algorithms to perform image smoothing on DICOM images;
[0075] Wherein, the filtering algorithm includes at least one of mean filtering, Gaussian filtering and median filtering;
[0076] Mean filtering is used to take the average value of surrounding pixels for each pixel in the image, smoothing the image and reducing noise;
[0077] Gaussian filtering is used to smooth the image using a Gaussian kernel to preserve the overall structure of the image;
[0078] Median filtering is used to take the median of neighboring pixels as the current pixel value, which is suitable for removing salt and pepper noise, etc.
[0079] In one embodiment, performing image enhancement processing on a DICOM image includes:
[0080] Use image enhancement algorithm to enhance DICOM images;
[0081] Wherein, the image enhancement algorithm includes at least one of histogram equalization, sharpening, and contrast enhancement;
[0082] Histogram equalization is used to adjust the grayscale distribution of an image and enhance the contrast of the image;
[0083] Sharpening is used to enhance the edges and details of an image through algorithms such as edge detection;
[0084] Contrast enhancement is used to adjust the contrast of image pixels to make the image clearer.
[0085] S102, generating a virtual three-dimensional femur-tibia STL model according to the femur-tibia mask image;
[0086] In one embodiment, a virtual three-dimensional femur and tibia STL model is generated according to the femur and tibia mask image, including:
[0087] Read the femur and tibia mask image;
[0088] Based on the femur and tibia mask image, the bone boundary information is extracted;
[0089] Based on the boundary information, a three-dimensional bone model is generated using a three-dimensional reconstruction algorithm;
[0090] Perform smoothing operation on the generated three-dimensional bone model;
[0091] The smoothed three-dimensional bone model is exported as a three-dimensional femur and tibia STL model.
[0092] S103, creating an STL reader, a VTK mapper, an Actor and a VTK renderer; wherein the STL reader is used to read a three-dimensional femur and tibia STL model; the VTK mapper is used to convert different data types into graphic data; the Actor is used to execute the rendering of the object of the VTK mapper;
[0093] In one embodiment, creating an STL reader, a VTK mapper, an Actor, and a VTK renderer includes:
[0094] Use the vtkSTLReader class in the VTK library to create an STL reader; the vtkSTLReader class is used to read the 3D model file in STL format and convert it into a data structure in VTK;
[0095] Use the vtkPolyDataMapper class in the VTK library to create a VTK mapper; the vtkPolyDataMapper class is used to convert the STL data read by the reader into VTK polygon data and perform rendering;
[0096] Use the vtkActor class in the VTK library to create an Actor; the vtkActor class is used to add the data converted by the mapper to the scene and set some rendering properties;
[0097] Use the vtkRenderer class in the VTK library to create a VTK renderer; the vtkRenderer class is used to add all Actor objects to the scene and set some rendering properties.
[0098] S104, marking the entry point and exit point of the femoral tibia bone tunnel on the virtual three-dimensional femoral tibia STL model;
[0099] In one embodiment, on the virtual three-dimensional femoral tibia STL model, marking the femoral tibia bone tunnel entry point and exit point includes:
[0100] Based on MRI or CT images to assist in positioning, determine the entry and exit points of the bone tunnel;
[0101] On the generated virtual three-dimensional femur and tibia STL model, use small spheres or marking lines to create a marking model of the entry and exit points of the bone tunnel;
[0102] The virtual three-dimensional femur and tibia STL model and the labeled model are generated and merged so as to be displayed and analyzed in the same scene.
[0103] S105 , generating a bone tunnel model image according to the connection lines between the bone tunnel entry point and the exit point.
[0104] Figure 2This is a schematic diagram showing the results of knee joint bone tunnel reconstruction provided by an embodiment of the present application.
[0105] Figure 3 : is a schematic diagram of the structure of a knee joint bone tunnel reconstruction display device provided by an embodiment of the present application, the knee joint bone tunnel reconstruction display device comprises:
[0106] The threshold segmentation module 301 is used to perform threshold segmentation on the patient's DICOM image and extract the femur and tibia mask image;
[0107] A model generation module 302 is used to generate a virtual three-dimensional femur and tibia STL model according to the femur and tibia mask image;
[0108] The creation module 303 is used to create an STL reader, a VTK mapper, an Actor and a VTK renderer; wherein the STL reader is used to read a three-dimensional femur and tibia STL model; the VTK mapper is used to convert different data types into graphic data; and the Actor is used to execute the rendering of the object of the VTK mapper;
[0109] A marking module 304 is used to mark the entry point and exit point of the femoral tibia bone tunnel on the virtual three-dimensional femoral tibia STL model;
[0110] The image generation module 305 is used to generate a bone tunnel model image according to the lines connecting the bone tunnel entry point and the bone tunnel exit point.
[0111] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.
[0112] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.
[0113] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0114] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an electronic device. In a particular embodiment, memory 402 may be a non-volatile solid-state memory.
[0115] In one embodiment, the memory 402 may be a read-only memory (ROM). In one embodiment, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0116] The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the knee joint bone tunnel reconstruction and display methods in the above embodiments.
[0117] In one example, the electronic device may further include a communication interface 403 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.
[0118] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0119] Bus 410 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0120] In addition, in combination with the knee joint bone tunnel reconstruction display method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the knee joint bone tunnel reconstruction display methods in the above embodiment is implemented.
[0121] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0122] The functional modules shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0123] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0124] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0125] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for reconstructing and displaying a knee joint bone tunnel, characterized in that: include: Perform threshold segmentation on the patient's DICOM image and extract the femur and tibia mask image; Generate a virtual three-dimensional femur and tibia STL model according to the femur and tibia mask image; Create STL reader, VTK mapper, Actor and VTK renderer; STL reader is used to read the 3D femur and tibia STL model; VTK mapper is used to convert different data types into graphic data; Actor is used to execute rendering of VTK mapper objects; On the virtual three-dimensional femoral and tibia STL model, mark the entry and exit points of the femoral and tibia bone tunnels; A bone tunnel model image is generated based on the connection lines between the bone tunnel entry point and exit point.
2. The knee joint bone tunnel reconstruction and display method according to claim 1, characterized in that: Perform threshold segmentation on the patient's DICOM image and extract the femur and tibia mask image, including: Use DICOM image processing library to load DICOM image data; Perform image smoothing, noise reduction and image enhancement on DICOM images; Segment the femur and tibia in the image according to global threshold segmentation, adaptive threshold segmentation or region growing based segmentation; Post-processing the images after segmentation of the femur and tibia to obtain a femur and tibia mask image; Among them, post-processing operations include removing small isolated areas, filling holes, and performing morphological operations.
3. The method for reconstructing and displaying the knee joint bone tunnel according to claim 2, characterized in that: Perform image smoothing on DICOM images, including: Use filtering algorithms to perform image smoothing on DICOM images; Wherein, the filtering algorithm includes at least one of mean filtering, Gaussian filtering and median filtering; Mean filtering is used to take the average value of surrounding pixels for each pixel in the image, smoothing the image and reducing noise; Gaussian filtering is used to smooth the image using a Gaussian kernel to preserve the overall structure of the image; Median filtering is used to take the median of neighboring pixels as the current pixel value, which is suitable for removing salt and pepper noise, etc.
4. The method for reconstructing and displaying the knee joint bone tunnel according to claim 2, characterized in that: Perform image enhancement processing on DICOM images, including: Use image enhancement algorithm to enhance DICOM images; Wherein, the image enhancement algorithm includes at least one of histogram equalization, sharpening, and contrast enhancement; Histogram equalization is used to adjust the grayscale distribution of an image and enhance the contrast of the image; Sharpening is used to enhance the edges and details of an image through algorithms such as edge detection; Contrast enhancement is used to adjust the contrast of image pixels to make the image clearer.
5. The method for reconstructing and displaying the knee joint bone tunnel according to claim 1, characterized in that: According to the femur-tibia mask image, a virtual three-dimensional femur-tibia STL model is generated, including: Read the femur and tibia mask image; Based on the femur and tibia mask image, the bone boundary information is extracted; Based on the boundary information, a three-dimensional bone model is generated using a three-dimensional reconstruction algorithm; Perform smoothing operation on the generated three-dimensional bone model; The smoothed three-dimensional bone model is exported as a three-dimensional femur and tibia STL model.
6. The method for reconstructing and displaying the knee joint bone tunnel according to claim 1, characterized in that: Create STL readers, VTK mappers, Actors, and VTK renderers, including: Use the vtkSTLReader class in the VTK library to create an STL reader; the vtkSTLReader class is used to read the 3D model file in STL format and convert it into a data structure in VTK; Use the vtkPolyDataMapper class in the VTK library to create a VTK mapper; the vtkPolyDataMapper class is used to convert the STL data read by the reader into VTK polygon data and perform rendering; Use the vtkActor class in the VTK library to create an Actor; the vtkActor class is used to add the data converted by the mapper to the scene and set some rendering properties; Use the vtkRenderer class in the VTK library to create a VTK renderer; the vtkRenderer class is used to add all Actor objects to the scene and set some rendering properties.
7. The method for reconstructing and displaying a knee joint bone tunnel according to claim 1, characterized in that: On the virtual 3D femoral and tibia STL model, mark the entry and exit points of the femoral and tibia bone tunnels, including: Based on MRI or CT images to assist in positioning, determine the entry and exit points of the bone tunnel; On the generated virtual three-dimensional femur and tibia STL model, use small spheres or marking lines to create a marking model of the entry and exit points of the bone tunnel; The virtual three-dimensional femur and tibia STL model and the labeled model are generated and merged so as to be displayed and analyzed in the same scene.
8. A knee joint bone tunnel reconstruction display device, characterized in that: The device comprises: A threshold segmentation module is used to perform threshold segmentation on the patient's DICOM image and extract the femur and tibia mask image; A model generation module is used to generate a virtual three-dimensional femur and tibia STL model according to the femur and tibia mask image; Create a module to create an STL reader, VTK mapper, Actor and VTK renderer; the STL reader is used to read the three-dimensional femur and tibia STL model; the VTK mapper is used to convert different data types into graphic data; the Actor is used to execute the rendering of the VTK mapper object; A marking module is used to mark the entry and exit points of the femoral tibia bone tunnel on the virtual three-dimensional femoral tibia STL model; The image generation module is used to generate a bone tunnel model image according to the connection lines between the bone tunnel entry point and the exit point.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the knee joint bone tunnel reconstruction and display method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for displaying knee bone tunnel reconstruction according to any one of claims 1 to 7 is implemented.
