System and method for automatically calculating cam grinding area of femoral head

Through the system of automatically calculating the femoral head cam grinding area, using custom rules and modular processing, the problems of manpower dependence and data shortage in the existing technology are solved, and accurate and general planning and simplified R&D processes are realized, suitable for Different rules and version iteration requirements.

CN118919031APending Publication Date: 2024-11-08FIRST HOSPITAL AFFILIATED TO GENERAL HOSPITAL OF PLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410953649.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the image-guided hip arthroscopy minimally invasive surgery, the preoperative planning of femoral head cam removal area has human dependence and uncertainty in outcomes, and lacks a general process, making it difficult to adapt to different rules and version iteration needs, especially in medical care. In the case of data scarcity, neural network methods require a large number of samples and manual annotations.

Method used

Provide a system for automatically calculating the femoral head cam grinding area, including a custom rule establishment module, a two-dimensional grinding area calculation module and a three-dimensional grinding area fusion module. The three-dimensional grinding area is calculated through user-defined rules to reduce manual intervention and sample requirements to achieve automated planning.

Benefits of technology

Automatic calculation based on custom rules is realized, the planning accuracy and universality of the femoral head cam removal area is improved, the R&D process is simplified, the version iteration difficulty is reduced, and it is suitable for requirements under different rules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118919031A_ABST
    Figure CN118919031A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of medical image processing, and provides a system for automatically calculating a caput femoris cam grinding area, and the system comprises a user-defined rule building module which is used for building a user-defined rule for automatically calculating the caput femoris cam grinding area; the two-dimensional grinding area calculation module is used for acquiring a three-dimensional image of a caput femoris cam grinding area to be calculated, slicing the three-dimensional image, and respectively calculating a two-dimensional grinding area for each two-dimensional plane in the sliced three-dimensional image by adopting the user-defined rule; and the two-dimensional grinding area calculation module is used for fusing the two-dimensional planes in which the two-dimensional grinding area is calculated to obtain a three-dimensional grinding area in a three-dimensional space. According to the method, automatic calculation of the caput femoris cam grinding area before the operation can be achieved according to the custom specified rule, universality is achieved, the method can be suitable for the planning requirements of the cam grinding area under different rules, and version iteration of research and development personnel is also facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical image processing, and in particular to a system and method for automatically calculating a femoral head CA M removal area. Background Art

[0002] In image-guided minimally invasive hip arthroscopy, when cam (cam-type osteophytes on the femoral head and neck and acetabular rim) removal is performed during surgery, it is usually not possible to take CT images. Therefore, it is necessary to take CT images in advance before the operation to plan the cam removal area before surgery, and then apply it during the operation.

[0003] The current preoperative planning of the CAM ablation area usually involves two methods: one is to directly operate on the three-dimensional CT images, manually outline the three-dimensional spatial range to be ablated, and then calculate it; the other is to calibrate a large number of positive and negative samples by doctors and obtain it through neural network training.

[0004] However, the above methods have the following problems: the manual method of outlining the scope of the three-dimensional space relies more on manpower, the results obtained may be different for different users, and the effect of learning high-level operations cannot be guaranteed. At the same time, there is currently no complete and universal process for direct preoperative planning operations on three-dimensional images, which causes problems in version iteration such as module updates during the research and development process. The method using neural networks requires a large number of training samples and manual annotations, which is not applicable to most institutions when medical data sets are relatively scarce compared to natural images. Summary of the invention

[0005] In response to the above problems, the purpose of the present invention is to provide a system and method for automatically calculating the femoral head cam removal area, which can realize the automatic calculation of the preoperative femoral head cam removal area according to custom specified rules, and has universality, can be applicable to the planning requirements of the cam removal area under different rules, and also facilitates version iteration by R&D personnel.

[0006] The above-mentioned object of the present invention is achieved through the following technical solutions:

[0007] A system for automatically calculating the femoral head CAM grinding area, comprising:

[0008] A memory for storing the acquired three-dimensional image of the femoral head tissue protection area that needs to be CAM-removed, and storing the calculated three-dimensional image of the removable area;

[0009] An image acquisition device, used for acquiring the three-dimensional image including the femoral head tissue before image-guided hip arthroscopy minimally invasive surgery;

[0010] A processor is used to calculate the three-dimensional removal area for the three-dimensional image obtained before surgery and showing the cam area to be removed in the image-guided hip arthroscopy minimally invasive surgery, and calculate the three-dimensional removal area through the following modules:

[0011] A custom rule establishment module is used to establish custom rules for automatically calculating the femoral head CAM grinding area;

[0012] A two-dimensional grinding area calculation module is used to obtain the three-dimensional image of the femoral head cam grinding area to be calculated, slice the three-dimensional image, and use the custom rule to calculate the two-dimensional grinding area for each two-dimensional plane in the sliced ​​three-dimensional image;

[0013] The three-dimensional grinding area fusion module is used to fuse the two-dimensional plane on which the two-dimensional grinding area is calculated to obtain the three-dimensional grinding area in three-dimensional space.

[0014] Furthermore, in the custom rule establishment module, the custom rule for automatically calculating the femoral head ca m grinding area is established, and the custom rule specifically includes defining a 0-degree plane, defining a range for calculating the three-dimensional grinding area, defining an alpha angle, defining a control point for obtaining the two-dimensional grinding area, and defining the two-dimensional grinding area;

[0015] Among them, the 0-degree plane serves as the initial reference plane when determining the range of the three-dimensional grinding area, the range of the three-dimensional grinding area is the set of the two-dimensional grinding areas on all two-dimensional planes formed by rotating the 0-degree plane in a preset rotation angle range, the alpha angle is the anteversion angle of the acetabulum, the control points of the two-dimensional grinding area are the marking points used to generate the two-dimensional grinding area, and the two-dimensional grinding area is the grinding range on the two-dimensional plane at each angle.

[0016] Furthermore, the custom rule establishment module includes a 0-degree plane definition unit, which is used to define the 0-degree plane, specifically:

[0017] Select any two points on the long axis of the femur and a 0 degree point outside the long axis of the femur defined by the user, and determine the 0 degree plane by the principle of three points determining a plane;

[0018] Among them, the 0-degree point is any point selected by the user except the point on the long axis of the femur, the 0-degree plane determined by the 0-degree point is used as the initial reference plane for determining the three-dimensional grinding area, and the preset rotation angle range is set according to the initial reference plane and the actual spatial range of the three-dimensional grinding area.

[0019] Furthermore, the custom rule establishment module includes a grinding area range definition unit, which is used to define the range of calculating the three-dimensional grinding area, specifically:

[0020] The preset rotation angle interval of the 0-degree plane is defined according to the angle range of the 3D grinding area relative to the 0-degree plane, the 0-degree plane is rotated within the preset rotation angle range with the long axis of the femur as the rotation axis, and after the rotation, the 2D grinding area based on the current 2D plane is calculated for all the 2D planes within the preset rotation angle range;

[0021] The set of all the two-dimensional grinding areas is the range of the three-dimensional grinding area.

[0022] Furthermore, the custom rule establishment module includes an alpha angle definition unit, which is used to define the alpha angle, specifically:

[0023] Taking the center of the femoral head as the vertex, a circumferential point on the femoral head circle is selected according to a preset point selection rule, and the angle between the line connecting the circumferential point and the vertex and the direction of the long axis of the femur away from the femoral head is taken as the alpha angle;

[0024] The preset point selection rule is: taking the selected circular point as the center and within a radius of 5 pixels, all points have pixel values ​​of 255.

[0025] Furthermore, the custom rule establishment module includes a control point definition unit, which is used to define control points for obtaining the two-dimensional grinding area, and the control points include:

[0026] The position point where the alpha angle is 90 degrees is used as the first control point;

[0027] Using points on the circumference corresponding to the alpha angle as second control points;

[0028] The point on the circumference corresponding to the set standard ALPHA angle is used as the third control point;

[0029] The point corresponding to the upper edge of the femoral neck where the long axis of the femoral neck exceeds the femoral head circle by 20 pixels is used as the fourth control point.

[0030] Furthermore, the custom rule establishment module includes a two-dimensional grinding area definition unit, which is used to define the two-dimensional grinding area, specifically:

[0031] An arc connects the first control point, the second control point and the third control point, and a straight line connects the third control point and the fourth control point;

[0032] The area outside the connection line with a pixel value of 255 is the two-dimensional removal area.

[0033] Furthermore, in the two-dimensional grinding area calculation module, the three-dimensional image of the femoral head CAM grinding area to be calculated is obtained, and the three-dimensional image is sliced, specifically:

[0034] The rule defining the range of the three-dimensional grinding area to be calculated in the custom rule is used to obtain all the two-dimensional planes required to calculate the two-dimensional grinding area;

[0035] For each of the two-dimensional planes at each rotation angle, the three-dimensional image is forwardly rotated in three dimensions according to the position and rotation angle of the long axis of the femur, so that the current two-dimensional plane in the rotated three-dimensional image is perpendicular to any coordinate axis, and the coordinate axis index perpendicular to the current two-dimensional plane is obtained, and the three-dimensional image is sliced ​​perpendicular to the coordinate axis at the position corresponding to the coordinate axis index, and the sliced ​​data is the two-dimensional plane at the current rotation angle.

[0036] Furthermore, in the three-dimensional grinding area fusion module, the two-dimensional plane on which the two-dimensional grinding area is calculated is fused to obtain the three-dimensional grinding area in three-dimensional space, specifically:

[0037] For each of the two-dimensional planes for which the two-dimensional ablation area has been calculated, three-dimensionally reversely rotating the two-dimensional ablation area of ​​each of the two-dimensional planes according to the position of the long axis of the femur and the same rotation angle as that during slicing, to obtain the position of the two-dimensional ablation area in the three-dimensional space corresponding to the original three-dimensional image;

[0038] The rotated two-dimensional grinding areas corresponding to all the two-dimensional planes are merged into the three-dimensional grinding area.

[0039] A method for automatically calculating the femoral head cam removal area using the system for automatically calculating the femoral head cam removal area as described above comprises:

[0040] S1: Establish a custom rule for automatically calculating the femoral head cam removal area;

[0041] S2: acquiring a three-dimensional image of the femoral head cam removal area to be calculated, slicing the three-dimensional image, and calculating the two-dimensional removal area for each two-dimensional plane in the sliced ​​three-dimensional image using the custom rule;

[0042] S3: Fusing the two-dimensional planes on which the two-dimensional grinding area is calculated to obtain a three-dimensional grinding area in a three-dimensional space.

[0043] A computer device comprises a memory and one or more processors, wherein the memory stores computer codes, and when the computer codes are executed by the one or more processors, the one or more processors execute the above method.

[0044] A computer-readable storage medium stores computer codes. When the computer codes are executed, the above method is executed.

[0045] Compared with the prior art, the present invention has at least one of the following beneficial effects:

[0046] (1) A system for automatically calculating the cam removal area of ​​the femoral head is provided, comprising: a memory for storing a three-dimensional image of the femoral head tissue to be protected by the cam removal area of ​​the femoral head, and an image of the calculated three-dimensional removal area; an image acquisition device for acquiring the three-dimensional image including the femoral head tissue before image-guided hip arthroscopy minimally invasive surgery; a processor for calculating the three-dimensional removal area for the three-dimensional image acquired before surgery and showing the cam area to be removed during the image-guided hip arthroscopy minimally invasive surgery, and calculating the three-dimensional removal area through the following modules: a custom rule establishment module for establishing a custom rule for automatically calculating the cam removal area of ​​the femoral head; a two-dimensional removal area calculation module for acquiring the three-dimensional image of the femoral head cam removal area to be calculated, slicing the three-dimensional image, and using the custom rule to calculate the two-dimensional removal area for each two-dimensional plane in the sliced ​​three-dimensional image; and a three-dimensional removal area fusion module for fusion of the two-dimensional planes for which the two-dimensional removal area is calculated to obtain the three-dimensional removal area in three-dimensional space. By adopting the above technical solution, a new solution is provided to automatically calculate the femoral head CAM removal area according to custom rules, without the need for manual delineation of the removal area or the need for a large number of training samples on the mobile phone to train the neural network.

[0047] (2) The system of the present invention can facilitate R&D personnel to develop templates for general processes, thereby improving R&D efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of the execution of a processor in a system for automatically calculating the femoral head CAM grinding area of ​​the present invention;

[0049] Figure 2 A schematic diagram for establishing a custom rule in a system for automatically calculating a femoral head CAM removal area according to the present invention;

[0050] Figure 3A schematic diagram of the definition of the alpha angle in the system for automatically calculating the femoral head cam removal area of ​​the present invention;

[0051] Figure 4 A schematic diagram of the definition of each control point in the system for automatically calculating the femoral head CAM grinding area of ​​the present invention;

[0052] Figure 5 A schematic diagram of the grinding area definition in the system for automatically calculating the femoral head CAM grinding area of ​​the present invention;

[0053] Figure 6 A schematic diagram of calculation of each plane grinding area and three-dimensional grinding area in the system for automatically calculating the femoral head CAM grinding area of ​​the present invention;

[0054] Figure 7 Schematic diagram of the grinding area of ​​one plane in the system for automatically calculating the grinding area of ​​the femoral head cam of the present invention, wherein 7a is a schematic diagram before the grinding calculation, and 7b is a schematic diagram after the grinding area calculation;

[0055] Figure 8 The present invention is an overall flow chart of the method for automatically calculating the femoral head CAM removal area. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0058] First embodiment

[0059] like Figure 1As shown, this embodiment provides a system for automatically calculating the CAM removal area of ​​the femoral head. After the user specifies the custom rules, the binarized three-dimensional image of the femoral head that has been obtained through semantic segmentation is used to calculate the two-dimensional removal areas on each two-dimensional plane through the custom rules. After the two-dimensional removal areas on each two-dimensional plane are obtained, the relative position relationship between the two-dimensional removal areas on each plane and the femur can be obtained at the same time. According to the relative position relationship between the removal areas on each two-dimensional plane and the femoral head calculated in the previous steps, the three-dimensional removal area is calculated.

[0060] The system of this embodiment for automatically calculating the femoral head CAM removal area specifically includes:

[0061] A memory for storing the acquired three-dimensional image of the femoral head tissue protection area that needs to be CAM-removed, and storing the calculated three-dimensional image of the removable area;

[0062] An image acquisition device, used for acquiring the three-dimensional image including the femoral head tissue before image-guided hip arthroscopy minimally invasive surgery;

[0063] A processor is used to calculate the three-dimensional removal area for the three-dimensional image obtained before surgery and showing the cam area to be removed in the image-guided hip arthroscopy minimally invasive surgery, and calculate the three-dimensional removal area through the following modules:

[0064] The custom rule creation module is used to create custom rules for automatically calculating the femoral head CAM grinding area, such as Figure 2 As shown, it specifically includes: defining a 0 degree plane, defining a range for calculating the three-dimensional grinding area, defining an alpha angle, defining a control point for obtaining the two-dimensional grinding area, and defining the two-dimensional grinding area.

[0065] Among them, the 0-degree plane serves as the initial reference plane when determining the range of the three-dimensional grinding area, the range of the three-dimensional grinding area is the set of the two-dimensional grinding areas on all two-dimensional planes formed by rotating the 0-degree plane in a preset rotation angle range, the alpha angle is the anteversion angle of the acetabulum, the control points of the two-dimensional grinding area are the marking points used to generate the two-dimensional grinding area, and the two-dimensional grinding area is the grinding range on the two-dimensional plane at each angle.

[0066] (1) 0-degree plane definition unit, used to define the 0-degree plane, specifically:

[0067] A user-defined 0-degree plane passing through the long axis of the femur. For example, any two points on the long axis of the femur and a user-defined 0-degree point pt0 (x, y, z) outside the long axis of the femur can be selected, and the 0-degree plane can be determined by the principle of three points determining a plane.

[0068] Among them, the 0-degree point is any point selected by the user except the point on the long axis of the femur, the 0-degree plane determined by the 0-degree point is used as the initial reference plane for determining the three-dimensional grinding area, and the preset rotation angle range is set according to the initial reference plane and the actual spatial range of the three-dimensional grinding area.

[0069] (2) A grinding area range definition unit, used to define the range of the three-dimensional grinding area, specifically:

[0070] The preset rotation angle interval of the 0-degree plane is defined according to the angle range of the 3D grinding area relative to the 0-degree plane, the 0-degree plane is rotated within the preset rotation angle range with the long axis of the femur as the rotation axis, and after the rotation, the 2D grinding area is calculated for all the 2D planes within the preset rotation angle range. For example, the calculation of the 2D grinding area is defined as starting from the 0-degree plane, and all planes in the range of -90 degrees to 90 degrees rotated around the long axis of the femur need to calculate the 2D grinding area based on the current 2D plane.

[0071] The set of all the two-dimensional grinding areas is the range of the three-dimensional grinding area.

[0072] (3) Alpha angle definition unit, used to define the alpha angle, specifically:

[0073] like Figure 3 As shown, the center of the femoral head is taken as the vertex, a circumferential point on the femoral head circle is selected according to a preset point selection rule, and the angle between the line connecting the circumferential point and the vertex and the direction of the long axis of the femur away from the femoral head is taken as the alpha angle;

[0074] An example of the preset point selection rule is: taking the selected circular point as the center and within a radius of 5 pixels, all points have pixel values ​​of 255.

[0075] (4) A control point definition unit, used to define control points for obtaining the two-dimensional grinding area, such as Figure 4 As shown, the control points include:

[0076] The position point where the alpha angle is 90 degrees is used as the first control point ctr_pt1;

[0077] The point on the circle corresponding to the alpha angle is used as the second control point ctr_pt2, that is, the circle point mentioned in the previous section;

[0078] The point on the circumference corresponding to the set standard ALPHA angle is used as the third control point ctr_pt3, wherein the standard ALPHA is a preset reference indicator for judging the tailing of the hip joint;

[0079] The point corresponding to the upper edge of the femoral neck where the long axis of the femoral neck exceeds the femoral head circle by 20 pixels is used as the fourth control point ctr_pt4.

[0080] (5) A two-dimensional grinding area definition unit, used to define the two-dimensional grinding area, specifically:

[0081] like Figure 5 As shown, an arc connects the first control point, the second control point and the third control point, and a straight line connects the third control point and the fourth control point;

[0082] The area outside the connection line with a pixel value of 255 is the two-dimensional removal area.

[0083] The two-dimensional grinding area calculation module is used to obtain a three-dimensional image of the femoral head cam grinding area to be calculated, and slice the three-dimensional image, and use the custom rules to calculate the two-dimensional grinding area for each two-dimensional plane in the sliced ​​three-dimensional image, such as Figure 6 As shown, specifically:

[0084] The rule defining the range of calculating the three-dimensional grinding area in the custom rule is used to obtain all the two-dimensional planes required to calculate the two-dimensional grinding area.

[0085] For each of the two-dimensional planes at each rotation angle, the three-dimensional image is forwardly rotated in three dimensions according to the position and rotation angle of the long axis of the femur, so that the current two-dimensional plane in the rotated three-dimensional image is perpendicular to any coordinate axis, and the coordinate axis index perpendicular to the current two-dimensional plane is obtained, and the three-dimensional image is sliced ​​perpendicular to the coordinate axis at the position corresponding to the coordinate axis index, and the sliced ​​data is the two-dimensional plane at the current rotation angle.

[0086] like Figure 7 As shown, the custom rule is used to calculate the two-dimensional removal area for each two-dimensional plane in the sliced ​​three-dimensional image.

[0087] The three-dimensional grinding area fusion module is used to fuse the two-dimensional planes on which the two-dimensional grinding area is calculated to obtain the three-dimensional grinding area in the three-dimensional space, specifically:

[0088] For each of the two-dimensional planes for which the two-dimensional removal area has been calculated, the two-dimensional removal area of ​​each of the two-dimensional planes is subjected to a three-dimensional reverse rotation according to the position of the long axis of the femur and the same rotation angle as that during slicing to obtain the position of the two-dimensional removal area in the three-dimensional space corresponding to the original three-dimensional image.

[0089] The rotated two-dimensional grinding areas corresponding to all the two-dimensional planes are merged into the three-dimensional grinding area.

[0090] Second embodiment

[0091] like Figure 8 As shown, this embodiment provides a method for automatically calculating the femoral head cam removal area using the system for automatically calculating the femoral head cam removal area in the first embodiment, characterized in that it includes:

[0092] S1: Establish a custom rule for automatically calculating the femoral head cam removal area;

[0093] S2: acquiring a three-dimensional image of the femoral head cam removal area to be calculated, slicing the three-dimensional image, and calculating the two-dimensional removal area for each two-dimensional plane in the sliced ​​three-dimensional image using the custom rule;

[0094] S3: Fusing the two-dimensional planes on which the two-dimensional grinding area is calculated to obtain a three-dimensional grinding area in a three-dimensional space.

[0095] A computer-readable storage medium stores a computer code. When the computer code is executed, the above method is executed. A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0096] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

[0097] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0098] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.

Claims

1. A system for automatically calculating the femoral head CAM grinding area, It is characterized in that include: A memory for storing the acquired three-dimensional image of the femoral head tissue protection area that needs to be CAM-removed, and storing the calculated three-dimensional image of the removable area; An image acquisition device, used for acquiring the three-dimensional image including the femoral head tissue before image-guided hip arthroscopy minimally invasive surgery; A processor is used to calculate the three-dimensional removal area for the three-dimensional image obtained before surgery and showing the cam area to be removed in the image-guided hip arthroscopy minimally invasive surgery, and calculate the three-dimensional removal area through the following modules: A custom rule establishment module is used to establish custom rules for automatically calculating the femoral head CAM grinding area; A two-dimensional grinding area calculation module is used to obtain the three-dimensional image of the femoral head cam grinding area to be calculated, slice the three-dimensional image, and use the custom rule to calculate the two-dimensional grinding area for each two-dimensional plane in the sliced ​​three-dimensional image; The three-dimensional grinding area fusion module is used to fuse the two-dimensional plane on which the two-dimensional grinding area is calculated to obtain the three-dimensional grinding area in three-dimensional space.

2. The system for automatically calculating the femoral head cam removal area according to claim 1, It is characterized in that In the custom rule establishment module, the custom rule for automatically calculating the femoral head CAM grinding area is established, and the custom rule specifically includes defining a 0-degree plane, defining a range for calculating the three-dimensional grinding area, defining an alpha angle, defining a control point for obtaining the two-dimensional grinding area, and defining the two-dimensional grinding area; Among them, the O-degree plane serves as the initial reference plane when determining the range of the three-dimensional grinding area, the range of the three-dimensional grinding area is the set of the two-dimensional grinding areas on all two-dimensional planes formed by rotating the O-degree plane in a preset rotation angle range, the alpha angle is the anteversion angle of the acetabulum, the control points of the two-dimensional grinding area are the marking points used to generate the two-dimensional grinding area, and the two-dimensional grinding area is the grinding range on the two-dimensional plane at each angle.

3. The system for automatically calculating the femoral head cam removal area according to claim 2, It is characterized in that The custom rule establishment module includes a 0-degree plane definition unit, which is used to define the 0-degree plane, specifically: Select any two points on the long axis of the femur and a 0 degree point outside the long axis of the femur defined by the user, and determine the 0 degree plane by the principle of three points determining a plane; Among them, the 0-degree point is any point selected by the user except the point on the long axis of the femur, the 0-degree plane determined by the 0-degree point is used as the initial reference plane for determining the three-dimensional grinding area, and the preset rotation angle range is set according to the initial reference plane and the actual spatial range of the three-dimensional grinding area.

4. The system for automatically calculating the femoral head cam removal area according to claim 3, It is characterized in that The custom rule establishment module includes a grinding area range definition unit, which is used to define the range of the three-dimensional grinding area, specifically: The preset rotation angle interval of the 0-degree plane is defined according to the angle range of the 3D grinding area relative to the 0-degree plane, the 0-degree plane is rotated within the preset rotation angle range with the long axis of the femur as the rotation axis, and after the rotation, the 2D grinding area based on the current 2D plane is calculated for all the 2D planes within the preset rotation angle range; The set of all the two-dimensional grinding areas is the range of the three-dimensional grinding area.

5. The system for automatically calculating the femoral head cam removal area according to claim 3, It is characterized in that The custom rule establishment module includes an alpha angle definition unit, which is used to define the alpha angle, specifically: Taking the center of the femoral head as the vertex, a circumferential point on the femoral head circle is selected according to a preset point selection rule, and the angle between the line connecting the circumferential point and the vertex and the direction of the long axis of the femur away from the femoral head is taken as the alpha angle; The preset point selection rule is: taking the selected circular point as the center and within a radius of 5 pixels, all points have pixel values ​​of 255.

6. The system for automatically calculating the femoral head cam removal area according to claim 5, It is characterized in that The custom rule establishment module includes a control point definition unit, which is used to define control points for obtaining the two-dimensional grinding area, and the control points include: The position point where the alpha angle is 90 degrees is used as the first control point; The points on the circumference corresponding to the alpha angle are used as second control points; The point on the circumference corresponding to the set standard ALPHA angle is used as the third control point; The point corresponding to the upper edge of the femoral neck where the long axis of the femoral neck exceeds the femoral head circle by 20 pixels is used as the fourth control point.

7. The system for automatically calculating the femoral head cam removal area according to claim 6, It is characterized in that The custom rule establishment module includes a two-dimensional grinding area definition unit, which is used to define the two-dimensional grinding area, specifically: An arc connects the first control point, the second control point and the third control point, and a straight line connects the third control point and the fourth control point; The area outside the connection line with a pixel value of 255 is the two-dimensional removal area.

8. The system for automatically calculating the femoral head cam removal area according to claim 4, It is characterized in that In the two-dimensional grinding area calculation module, the three-dimensional image of the femoral head cam grinding area to be calculated is obtained, and the three-dimensional image is sliced, specifically: The rule defining the range of the three-dimensional grinding area to be calculated in the custom rule is used to obtain all the two-dimensional planes required to calculate the two-dimensional grinding area; For each of the two-dimensional planes at each rotation angle, the three-dimensional image is forwardly rotated in three dimensions according to the position and rotation angle of the long axis of the femur, so that the current two-dimensional plane in the rotated three-dimensional image is perpendicular to any coordinate axis, and the coordinate axis index perpendicular to the current two-dimensional plane is obtained, and the three-dimensional image is sliced ​​perpendicular to the coordinate axis at the position corresponding to the coordinate axis index, and the sliced ​​data is the two-dimensional plane at the current rotation angle.

9. The system for automatically calculating the femoral head cam removal area according to claim 8, It is characterized in that In the three-dimensional grinding area fusion module, the two-dimensional planes on which the two-dimensional grinding area is calculated are fused to obtain the three-dimensional grinding area in three-dimensional space, specifically: For each of the two-dimensional planes for which the two-dimensional ablation area has been calculated, three-dimensionally reversely rotating the two-dimensional ablation area of ​​each of the two-dimensional planes according to the position of the long axis of the femur and the same rotation angle as that during slicing, to obtain the position of the two-dimensional ablation area in the three-dimensional space corresponding to the original three-dimensional image; The rotated two-dimensional grinding areas corresponding to all the two-dimensional planes are merged into the three-dimensional grinding area.

10. A method for automatically calculating the femoral head cam removal area using the system for automatically calculating the femoral head cam removal area according to any one of claims 1 to 9, It is characterized in that include: S1: Establish a custom rule for automatically calculating the femoral head cam removal area; S2: acquiring a three-dimensional image of the femoral head cam removal area to be calculated, slicing the three-dimensional image, and calculating the two-dimensional removal area for each two-dimensional plane in the sliced ​​three-dimensional image using the custom rule; S3: Fusing the two-dimensional planes on which the two-dimensional grinding area is calculated to obtain a three-dimensional grinding area in a three-dimensional space.