System and method for intercepting three-dimensional segmented thighbone section
In minimally invasive surgery of image-guided hip joints, the long axis of the femur is determined by using surface reconstruction and fitting technology to achieve cross-sectional data acquisition of any 0-degree surface rotation, which solves the problem that no arbitrary surface rotation section cannot be achieved in the prior art, and improves the problem of the inability to achieve arbitrary surface rotation section. The flexibility of preoperative planning and the accuracy of parameter calculations were achieved.
Patent Information
- Application Number
- CN202410953650.1
- 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
The existing three-dimensional volume data processing methods cannot achieve the femoral cross-section based on any plane rotation and arbitrary angle, which limits the degree of freedom of preoperative planning and the flexibility of parameter calculation.
In image-guided hip minimally invasive surgery, a memory, image acquisition device and processor are used, combined with the femoral cross-section calculation module, a three-dimensional image rotation module and a cross-section data acquisition module, and the surface reconstruction and fitting technology are used to determine the femoral long axis to achieve Acquisition of cross-sectional data of any 0-degree plane rotation.
The cross-sectional data extraction method of three-dimensional body data is expanded, the degree of freedom of preoperative planning is increased, and the femoral cross-section acquisition is achieved based on any specified 0-degree surface and rotation angle is suitable for parameter calculations in image-guided minimally invasive surgery.
Smart Images

Figure CN118919032A_ABST
Abstract
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 intercepting three-dimensional segmentation of femoral cross-sections, specifically, intercepting three-dimensional segmentation of femoral cross-sections by rotating an axis at any angle through a designated arbitrary 0-degree plane of the long axis of the femur. Background Art
[0002] In image-guided minimally invasive hip surgery, after segmenting the femur, it is usually necessary to plan the grinding area based on the segmented femur, which involves measuring multiple parameters, such as α angle, eccentricity, etc., and then planning the grinding area. Since different surgical operations require planning of different positions, this requires that certain sections of the femur through the long axis of the femur be extracted for processing, that is, it is necessary to specify the 0-degree point according to the preoperative planning requirements and the two end points of the long axis of the femur to form a 0-degree plane. Based on the 0-degree plane, the long axis of the femur is used as the rotation axis to obtain the section where the 0-degree plane is rotated by a certain angle, and these sections are used to calculate the parameters.
[0003] However, for 3D volume data, current methods can only slice through three coordinate axes, and cannot intercept the femoral cross section based on any plane and rotate at any angle to obtain its data. Therefore, it is necessary to implement a system for intercepting 3D segmented femoral cross sections at any rotation angle under a specified arbitrary 0-degree plane through the long axis of the femur. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a system and method for intercepting three-dimensional segmented femoral cross-sections, which can realize the customization of the 0-degree point that constitutes the 0-degree plane with two femoral long axis points, and can obtain the cross-section rotated at any angle based on the 0-degree plane, and obtain its numerical data for subsequent calculation of various parameters. It expands the method of extracting different cross-sectional data of three-dimensional volume data, increases the freedom of preoperative planning, and has the characteristics of novel and direct algorithm thinking and easy implementation by programmers.
[0005] The above-mentioned object of the present invention is achieved through the following technical solutions:
[0006] A system for capturing a three-dimensional segmented femoral cross section, comprising:
[0007] A memory for storing the acquired original three-dimensional image including the femoral tissue for which the three-dimensional segmentation of the femoral cross section is required, and the cross-sectional data after the segmentation;
[0008] An image acquisition device, used for acquiring the original three-dimensional image including the femoral tissue before image-guided minimally invasive hip surgery;
[0009] A processor is used to intercept the cross-sectional data of the femoral tissue through the original femoral long axis from the original three-dimensional image showing the femoral tissue acquired before the operation in the image-guided minimally invasive hip surgery, and intercept the cross-sectional data in the femoral tissue through the following modules:
[0010] A femoral cross-section calculation module is used to obtain any 0-degree plane passing through the original femoral long axis, and rotate the 0-degree plane around the vector of the original femoral long axis by a preset rotation angle to obtain a rotation plane corresponding to the 0-degree plane, and the rotation plane is used as the femoral cross-section to be intercepted;
[0011] A three-dimensional image rotation module, used for synchronously rotating the original three-dimensional image and the femoral cross section, so that the rotated femoral cross section is perpendicular to any coordinate axis of the three-dimensional coordinate system, and obtaining the coordinate value of the femoral cross section when it is perpendicular to the coordinate axis as the cross section index value;
[0012] The cross-sectional data acquisition module is used to obtain slice data at the cross-sectional index value position on the coordinate axis perpendicular to the femoral cross section in the three-dimensional coordinate system, and the slice data is the cross-sectional data rotated by the preset rotation angle under the 0 degree plane.
[0013] Further, in the femoral cross-section calculation module, any one of the 0-degree planes of the original femoral long axis is obtained, and the 0-degree plane is rotated around the vector of the original femoral long axis by a preset rotation angle to obtain the rotation plane corresponding to the 0-degree plane, and the rotation plane is used as the femoral cross section to be intercepted, specifically:
[0014] Using surface reconstruction and fitting technology to determine the long axis of the original femur;
[0015] Arbitrarily specify a 0 degree point that is not on the original femoral long axis, combine two points on the original femoral long axis including the first long axis endpoint and the second long axis endpoint, based on the principle that three points that are not on a straight line determine a plane, and determine the 0 degree plane through the 0 degree point, the first long axis endpoint and the second long axis endpoint;
[0016] Calculate the vector of the original femoral long axis pointing to the second long axis endpoint through the first long axis endpoint and the second long axis endpoint;
[0017] The 0-degree point is rotated by the preset rotation angle around the vector where the original femoral long axis is located to obtain a rotation point;
[0018] Based on the principle that a plane is determined by three points that are not on a straight line, the rotation plane, ie, the femoral cross section, is determined by the rotation point, the first long axis endpoint and the second long axis endpoint.
[0019] Furthermore, in the femoral cross-section calculation module, the original femoral long axis is determined using a surface reconstruction and fitting technique, specifically:
[0020] Segmenting the femur from the original three-dimensional image using an image segmentation technique including threshold segmentation or edge detection to obtain a three-dimensional region of the femur;
[0021] Using a surface reconstruction algorithm based on point cloud or voxel, the three-dimensional region of the femur is reconstructed to represent a continuous three-dimensional femoral surface;
[0022] Fitting the three-dimensional femoral surface by a method including linear fitting or ellipsoid fitting to obtain the main axis direction of the femur, that is, the original femoral long axis;
[0023] Among them, the straight line fitting is to use a fitting algorithm including the least squares method to fit the points on the three-dimensional femoral surface to find the best fitting straight line, and the straight line is the direction of the original femoral long axis. The ellipsoid fitting is to fit an ellipsoid to represent the shape of the femur, and the long axis of the ellipsoid is the original femoral long axis.
[0024] Further, in the femoral cross-section calculation module, the rotation point is obtained by rotating the 0-degree point around the vector where the original femoral long axis is located by the preset rotation angle, specifically:
[0025] Assume that the vector of the original femoral long axis is (n x ,n y ,n z ), the original femoral long axis passes through the point (x0, y0, z0), and the preset rotation angle is α;
[0026] Let K = 1-cosα, M = n x x0+n y y0+n z z0, then the rotation matrix is:
[0027]
[0028] Then the coordinate calculation formula of the rotation point is:
[0029] (x,y,z) new =(x,y,z,1) old ×Rotation random_axis
[0030] Among them, (x, y, z, 1) old is the coordinate of the 0 degree point, (x, y, z) new are the coordinates of the rotation point.
[0031] Furthermore, in the three-dimensional image rotation module, it also includes: taking the y-axis as the coordinate axis perpendicular to the three-dimensional coordinate system after synchronously rotating the original three-dimensional image and the femoral cross section, specifically:
[0032] Obtain the xoy plane vector of the vector where the original femur long axis is located on the xoy plane, and the x-axis unit vector in the x-axis direction on the xoy plane, and calculate the angle between the xoy plane vector and the x-axis unit vector, which is recorded as the xoy plane angle;
[0033] The original three-dimensional image and the femoral cross section are respectively rotated about the z-axis through the first long axis endpoint by an angle equal to the xoy plane angle to obtain a first rotated three-dimensional image and a first rotated femoral cross section, wherein the femoral long axis of the first rotated three-dimensional image is perpendicular to the y-axis;
[0034] Calculate the angle between the first rotated femoral cross section and the xoz plane by using the normal vector of the first rotated femoral cross section and the normal vector of the xoz plane pointing to the negative direction of the y-axis, and record it as the xoz plane angle;
[0035] Let the first rotated three-dimensional image and the first rotated femoral section rotate around their own femoral long axis through the first long axis endpoint by an angle equal to the xoz plane angle to obtain a second rotated three-dimensional image and a second rotated femoral section. At this time, the second rotated femoral section is perpendicular to the y-axis, and the y-coordinate values of the rotation point, the first long axis endpoint and the second long axis endpoint are equal, and the y-coordinate value is the section index value of the second rotated femoral section on the y-coordinate.
[0036] Furthermore, in the three-dimensional image rotation module, the angle between the xoy plane vector and the x-axis unit vector is calculated, which is recorded as the xoy plane angle, specifically:
[0037]
[0038] Wherein, α is the angle between the xoy plane vector and the x-axis unit vector, is the xoy plane vector, is the x-axis unit vector.
[0039] Furthermore, in the three-dimensional image rotation module, when the original three-dimensional image and the femoral cross section are respectively rotated around the z-axis through the first long axis endpoint by an angle equal to the xoy plane angle, it also includes:
[0040] A cross product is performed on the xoy plane vector used to calculate the xoy plane angle and the x-axis unit vector. When the cross product is less than 0, the rotation angle is the opposite of the xoy plane angle.
[0041] Furthermore, in the three-dimensional image rotation module, the first rotated three-dimensional image and the first rotated femoral cross section are rotated around their own femoral long axis through the first long axis endpoint by an angle equal to the xoz plane angle, further comprising:
[0042] A cross product is performed on the normal vector of the first rotated femoral section used to calculate the xoz plane angle and the normal vector of the xoz plane pointing in the negative direction of the y-axis. When the cross product is less than 0, the rotation angle is the inverse of the xoz plane angle.
[0043] A method for cutting a three-dimensional segmented femoral cross section using the system for cutting a three-dimensional segmented femoral cross section as described above comprises:
[0044] S1: Obtain any 0-degree plane of the original femoral long axis, and rotate the 0-degree plane around the vector of the original femoral long axis by a preset rotation angle to obtain a rotation plane corresponding to the 0-degree plane, and use the rotation plane as the femoral cross section to be intercepted;
[0045] S2: synchronously rotating the original three-dimensional image and the femoral cross section so that the rotated femoral cross section is perpendicular to any coordinate axis of the three-dimensional coordinate system, and obtaining the coordinate value of the femoral cross section when it is perpendicular to the coordinate axis as the cross section index value;
[0046] S3: In the three-dimensional coordinate system, slice data is obtained at the cross-section index value position on the coordinate axis perpendicular to the femoral cross section, and the slice data is cross-section data rotated by the preset rotation angle under the 0-degree plane.
[0047] 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.
[0048] A computer-readable storage medium stores computer codes. When the computer codes are executed, the above method is executed.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] A system for intercepting three-dimensional segmented femoral cross sections is provided, comprising: a memory, which stores an original three-dimensional image including femoral tissues and the three-dimensional segmented femoral cross sections to be intercepted, and the intercepted cross-sectional data; an image acquisition device, which is used to acquire the original three-dimensional image including the femoral tissues before image-guided minimally invasive hip joint surgery; a processor, which is used to intercept the cross-sectional data of the femoral tissues passing through the original femoral long axis from the original three-dimensional image presenting the femoral tissues acquired before the surgery during the image-guided minimally invasive hip joint surgery, and intercept the cross-sectional data of the femoral tissues through the following modules: a femoral cross-sectional calculation module, which is used to acquire any cross-sectional data of the femoral tissues passing through the original femoral long axis. A 0-degree plane is obtained, and the 0-degree plane is rotated around the vector of the original femoral long axis by a preset rotation angle to obtain a rotation plane corresponding to the 0-degree plane, and the rotation plane is used as the femoral section to be intercepted; a three-dimensional image rotation module is used to synchronously rotate the original three-dimensional image and the femoral section, so that the rotated femoral section is perpendicular to any one of the coordinate axes of the three-dimensional coordinate system, and the coordinate value of the femoral section when it is perpendicular to the coordinate axis is obtained as the section index value; a section data acquisition module is used to obtain slice data at the section index value position on the coordinate axis perpendicular to the femoral section in the three-dimensional coordinate system, and the slice data is the section data after rotating the preset rotation angle under the 0-degree plane. The above technical scheme expands the method of taking slices of three-dimensional CT images that can only be taken with three coordinate axes, especially the method of obtaining sections of arbitrary rotation angles based on any specified 0-degree plane, solves the problem that the segmentation of the femur needs to calculate parameters under different custom angle ranges, and has a great reference value for the section acquisition of other three-dimensional CT images for handling other different problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 The overall structure diagram of the method for cutting three-dimensionally segmenting a femoral cross section of the present invention;
[0052] Figure 2 The algorithm flow chart of the method for intercepting three-dimensional segmentation of femoral cross section of the present invention;
[0053] Figure 3 A schematic diagram of the rotational surface result after the 0-degree plane is rotated around the long axis of the femur according to the present invention;
[0054] Figure 4 It is a schematic diagram of the image after the original three-dimensional image of the present invention is rotated around the z-axis, with the direction pointing in the positive direction, through the long axis point;
[0055] Figure 5 It is a schematic diagram of the result of the femur cross section being rotated around the z-axis, with the direction pointing in the positive direction, through the long axis point of the femur on the femur image after the same rotation;
[0056] Figure 6 A schematic diagram of a femur image for obtaining cross-sectional data after final rotation according to the present invention;
[0057] Figure 7 A schematic diagram of a cross-sectional data image obtained by the present invention;
[0058] Figure 8 The figure is an overall flow chart of the method for capturing three-dimensional segmentation of a femoral cross section according to the present invention. DETAILED DESCRIPTION
[0059] 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.
[0060] 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.
[0061] The system disclosed in the present invention for intercepting three-dimensional segmentation of femoral cross-sections has the following technical overview: calculating a 0-degree plane according to any specified 0-degree point combined with the long axis of the femur; calculating a rotation plane according to any rotation angle specified based on the 0-degree plane; calculating the angle (movement angle) between the original long axis vector of the femur and the x-axis on the xoy plane; calculating a moving image obtained by rotating the original image around the z-axis by the movement angle, a moving plane obtained by rotating the rotation plane around the z-axis by the movement angle, and a new long axis; calculating the angle (rotation angle) between the moving plane and the xoz plane; calculating a rotated image obtained by rotating the moving image around the new long axis by the rotation angle, a rotation plane obtained by rotating the rotation plane around the new long axis by the rotation angle, and a y-axis index of the long axis at this time; and obtaining slice data by taking slices along the y-axis from the rotated image.
[0062] The system of the present invention expands the method of taking slices of three-dimensional CT images using only three coordinate axes, especially the method of obtaining cross sections at any rotation angle based on any specified 0-degree plane, which solves the problem of calculating parameters under different customized angle ranges for segmenting the femur. It also has great reference value for obtaining cross sections of other three-dimensional CT images for handling other different problems.
[0063] First embodiment
[0064] like Figure 1 and Figure 2 As shown, this embodiment provides a system for cutting a three-dimensional segmented femoral cross section. Figure 2 In the example, pt0 is an arbitrarily specified 0-degree point that is not on the original femoral long axis, pt1 is the endpoint of the first long axis, pt2 is the endpoint of the second long axis (the center of the sphere), and angle_rotate is an arbitrarily specified preset rotation angle based on the 0-degree surface. is the unit vector in the positive direction of the x-axis on the xoy plane, pt0_rot is the 0-degree point after pt0 is rotated by the preset rotation angle based on the 0-degree plane, move_pi is the angle between the x-axis and the long axis vector (pointing to pt2) on the xoy plane, is the unit vector in the positive direction of the z-axis, pt0-rz is the point after the first point constituting the rotation plane is rotated move_pi around the z-axis, pt1_rz is the point after the second point constituting the rotation plane is rotated move_pi around the z-axis, pt2_rz is the point after the third point constituting the rotation plane is rotated move_pi around the z-axis, is the unit vector in the negative direction of the y-axis, bone_image is the original three-dimensional image of the femur segmentation, moved_image is the first rotated three-dimensional image after rotation around the z-axis by move_pi, angle_cross is the angle between the xoz plane and the plane after the first rotated osteotomy plane is rotated around the z-axis, rot_image is the second rotated image obtained by rotating moved_image around the new long axis, pt0_rz.y - the y-axis coordinate of the first endpoint of the new long axis.
[0065] The system for intercepting three-dimensional segmentation of femoral cross sections of the present invention specifically comprises:
[0066] A memory for storing the acquired original three-dimensional image including the femoral tissue for which the three-dimensional segmentation of the femoral cross section is required, and the cross-sectional data after the segmentation;
[0067] An image acquisition device, used for acquiring the original three-dimensional image including the femoral tissue before image-guided minimally invasive hip surgery;
[0068] A processor is used to intercept the cross-sectional data of the femoral tissue through the original femoral long axis from the original three-dimensional image showing the femoral tissue acquired before the operation in the image-guided minimally invasive hip surgery, and intercept the cross-sectional data in the femoral tissue through the following modules:
[0069] The femoral cross-section calculation module is used to obtain any 0-degree plane passing through the original femoral long axis, and rotate the 0-degree plane around the vector where the original femoral long axis is located by a preset rotation angle to obtain a rotation plane corresponding to the 0-degree plane, and the rotation plane is used as the femoral cross section to be intercepted, specifically: using surface reconstruction and fitting technology to determine the original femoral long axis, specifically: using image segmentation technology including threshold segmentation or edge detection to segment the femur from the original three-dimensional image to obtain a three-dimensional region of the femur; using surface reconstruction algorithms including point cloud-based or voxel-based The method is to reconstruct the surface of the three-dimensional region of the femur and express it as a continuous three-dimensional femoral surface; the three-dimensional femoral surface is fitted by a method including linear fitting or ellipsoid fitting to obtain the main axis direction of the femur, that is, the original long axis of the femur; wherein the linear fitting is to fit the points on the three-dimensional femoral surface using a fitting algorithm including the least squares method to find the best fitting straight line, and the straight line is the direction of the original long axis of the femur; the ellipsoid fitting is to fit an ellipsoid to represent the shape of the femur, and the long axis of the ellipsoid is the original long axis of the femur.
[0070] Arbitrarily specify a 0 degree point p0 that is not on the original femoral long axis, combine two points on the original femoral long axis including the first long axis endpoint pt1 and the second long axis endpoint pt2, and based on the principle of determining a plane by three points that are not on a straight line, determine the 0 degree plane zero_plane through the 0 degree point p0, the first long axis endpoint pt1 and the second long axis endpoint pt2.
[0071] The vector org_changzhou of the original femoral long axis pointing to the second long axis endpoint pt2 is calculated through the first long axis endpoint pt1 and the second long axis endpoint pt2.
[0072] The 0-degree point pt0 is rotated around the vector org_changzhou where the original femoral long axis is located by the preset rotation angle angle_rotate to obtain the rotation point pt0_rot.
[0073] The formula for the rotation of a point around an axis is:
[0074] Assume that the vector of the original femoral long axis is (n x ,n y ,n z ), the original femoral long axis passes through the point (x0, y0, z0), and the preset rotation angle is α;
[0075] Let K = 1-cosα, M = n x x0+n y y0+n z z0, then the rotation matrix is:
[0076]
[0077] Then the coordinate calculation formula of the rotation point is:
[0078] (x,y,z) new =(x,y,z,1) old ×Rotation random_axis
[0079] Among them, (x,y,z,1) old is the coordinate of the 0 degree point, (x, y, z) new are the coordinates of the rotation point.
[0080] Based on the principle that three points not on a straight line determine a plane, the rotation plane, i.e., the femoral cross section rot_plane (such as Figure 3 ).
[0081] The three-dimensional image rotation module is used to synchronously rotate the original three-dimensional image and the femoral cross section so that the rotated femoral cross section is perpendicular to any coordinate axis of the three-dimensional coordinate system, and obtain the coordinate value when the femoral cross section is perpendicular to the coordinate axis as the cross section index value.
[0082] In this embodiment, the y-axis is used as the coordinate axis perpendicular to the three-dimensional coordinate system after synchronously rotating the original three-dimensional image and the femoral cross section as an example for description, specifically:
[0083] Get the xoy plane vector of the vector org_changzhou where the original femur long axis is located on the xoy plane, and the x-axis unit vector in the x-axis direction on the xoy plane, calculate the angle between the xoy plane vector and the x-axis unit vector, and record it as the xoy plane angle move_pi.
[0084] The calculation formula of the angle is as follows:
[0085]
[0086] Wherein, α is the angle between the xoy plane vector and the x-axis unit vector, is the xoy plane vector, is the x-axis unit vector.
[0087] Let the original three-dimensional image bone_image and the femoral cross section rot_plane rotate around the z axis, with the direction pointing in the positive direction, and rotate the xoy plane by the angle move_pi through the first long axis endpoint pt1 to obtain the first rotated three-dimensional image moved_image (such as Figure 4 ) and the first rotated femoral section moved_plane (such as Figure 5 ), at this time, the long axis of the femur of the first rotated three-dimensional image moved_image is perpendicular to the y-axis;
[0088] In addition, due to the problem of rotation direction, a cross product is performed on the xoy plane vector and the x-axis unit vector for calculating the xoy plane angle move_pi. When the cross product is less than 0, the rotation angle is taken as the opposite of the xoy plane angle move_pi.
[0089] Calculate the angle between the first rotated femoral cross section and the xoz plane by using the normal vector of the first rotated femoral cross section moved_plane and the normal vector of the xoz plane pointing to the negative direction of the y-axis, and record it as the xoz plane angle angle_cross;
[0090] Let the first rotated three-dimensional image moved_image and the first rotated femoral cross-section plane moved_plane rotate around their own femoral long axis new_changezhou through the first long axis endpoint pt1_rz by an angle of the xoz plane angle angle_cross to obtain the second rotated three-dimensional image rot_image and the second rotated femoral cross-section, as shown in Figure 6 As shown, at this time, the second rotated femoral section is perpendicular to the y-axis, the y-coordinate values of the rotation point pt0_rz, the first long axis endpoint pt1_rz and the second long axis endpoint pt2_rz are equal, and the y-coordinate value is the section index value y_index of the second rotated femoral section on the y-coordinate.
[0091] In addition, due to the problem of rotation direction, a cross product is performed on the normal vector of the first rotated femoral section for calculating the xoz plane angle and the normal vector of the xoz plane pointing in the negative direction of the y-axis. When the cross product is less than 0, the rotation angle is taken as the opposite of the xoz plane angle.
[0092] The cross-sectional data acquisition module is used to obtain slice data at the cross-sectional index value position on the coordinate axis perpendicular to the femoral cross section in the three-dimensional coordinate system, and the slice data is the cross-sectional data rotated by the preset rotation angle under the 0 degree plane.
[0093] Specifically, if the corresponding 3D image rotation module uses the y-axis as the coordinate axis perpendicular to the 3D coordinate system after synchronously rotating the original 3D image and the femoral cross section as an example. In the cross-sectional data acquisition module, the cross section to be obtained is perpendicular to the y-axis, and the corresponding cross-sectional index value y_i ndex is the y coordinate of pt0_rz, pt1_rz, and pt2_rz. Therefore, the slice data of the second rotated 3D image rot_image at the position of y being y_i ndex is taken out, that is, the cross-sectional data of the specified rotation angle under the specified 0-degree plane, such as Figure 7 shown.
[0094] Second embodiment
[0095] like Figure 8 As shown, this embodiment provides a method for intercepting a three-dimensional segmented femoral cross section, which is performed by the system for intercepting a three-dimensional segmented femoral cross section in the first embodiment, comprising:
[0096] S1: Obtain any 0-degree plane of the original femoral long axis, and rotate the 0-degree plane around the vector of the original femoral long axis by a preset rotation angle to obtain a rotation plane corresponding to the 0-degree plane, and use the rotation plane as the femoral cross section to be intercepted;
[0097] S2: synchronously rotating the original three-dimensional image and the femoral cross section so that the rotated femoral cross section is perpendicular to any coordinate axis of the three-dimensional coordinate system, and obtaining the coordinate value of the femoral cross section when it is perpendicular to the coordinate axis as the cross section index value;
[0098] S3: In the three-dimensional coordinate system, slice data is obtained at the cross-section index value position on the coordinate axis perpendicular to the femoral cross section, and the slice data is cross-section data rotated by the preset rotation angle under the 0-degree plane.
[0099] 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 can include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0100] 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.
[0101] 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.
[0102] 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 capturing three-dimensional segmented femoral cross sections, characterized in that: include: A memory for storing the acquired original three-dimensional image including the femoral tissue for which the three-dimensional segmentation of the femoral cross section is required, and the cross-sectional data after the segmentation; An image acquisition device, used for acquiring the original three-dimensional image including the femoral tissue before image-guided minimally invasive hip surgery; A processor is used to intercept the cross-sectional data of the femoral tissue through the original femoral long axis from the original three-dimensional image showing the femoral tissue acquired before the operation in the image-guided minimally invasive hip surgery, and intercept the cross-sectional data in the femoral tissue through the following modules: A femoral cross-section calculation module is used to obtain any 0-degree plane passing through the original femoral long axis, and rotate the 0-degree plane around the vector of the original femoral long axis by a preset rotation angle to obtain a rotation plane corresponding to the 0-degree plane, and the rotation plane is used as the femoral cross-section to be intercepted; A three-dimensional image rotation module, used for synchronously rotating the original three-dimensional image and the femoral cross section, so that the rotated femoral cross section is perpendicular to any coordinate axis of the three-dimensional coordinate system, and obtaining the coordinate value of the femoral cross section when it is perpendicular to the coordinate axis as the cross section index value; The cross-sectional data acquisition module is used to obtain slice data at the cross-sectional index value position on the coordinate axis perpendicular to the femoral cross section in the three-dimensional coordinate system, and the slice data is the cross-sectional data rotated by the preset rotation angle under the 0 degree plane.
2. The system for capturing three-dimensional segmented femoral cross sections according to claim 1, characterized in that: In the femoral cross-section calculation module, any one of the 0-degree planes of the original femoral long axis is obtained, and the 0-degree plane is rotated around the vector of the original femoral long axis by a preset rotation angle to obtain the rotation plane corresponding to the 0-degree plane, and the rotation plane is used as the femoral cross section to be intercepted, specifically: Using surface reconstruction and fitting technology to determine the long axis of the original femur; Arbitrarily specify a 0 degree point that is not on the original femoral long axis, combine two points on the original femoral long axis including the first long axis endpoint and the second long axis endpoint, based on the principle that three points that are not on a straight line determine a plane, and determine the 0 degree plane through the 0 degree point, the first long axis endpoint and the second long axis endpoint; Calculate the vector of the original femoral long axis pointing to the second long axis endpoint through the first long axis endpoint and the second long axis endpoint; The 0-degree point is rotated by the preset rotation angle around the vector where the original femoral long axis is located to obtain a rotation point; Based on the principle that a plane is determined by three points that are not on a straight line, the rotation plane, ie, the femoral cross section, is determined by the rotation point, the first long axis endpoint and the second long axis endpoint.
3. The system for capturing three-dimensional segmented femoral cross sections according to claim 2, characterized in that: In the femoral cross-section calculation module, the original femoral long axis is determined using surface reconstruction and fitting technology, specifically: Segmenting the femur from the original three-dimensional image using an image segmentation technique including threshold segmentation or edge detection to obtain a three-dimensional region of the femur; Using a surface reconstruction algorithm based on point cloud or voxel, the three-dimensional femoral region is reconstructed to represent a continuous three-dimensional femoral surface; Fitting the three-dimensional femoral surface by a method including linear fitting or ellipsoid fitting to obtain the main axis direction of the femur, that is, the original femoral long axis; Among them, the straight line fitting is to use a fitting algorithm including the least squares method to fit the points on the three-dimensional femoral surface to find the best fitting straight line, and the straight line is the direction of the original femoral long axis. The ellipsoid fitting is to fit an ellipsoid to represent the shape of the femur, and the long axis of the ellipsoid is the original femoral long axis.
4. The system for capturing three-dimensional segmented femoral cross sections according to claim 2, characterized in that: In the femoral cross-section calculation module, the rotation point is obtained by rotating the 0-degree point by the preset rotation angle around the vector where the original femoral long axis is located, specifically: Assume that the vector of the original femoral long axis is (n x ,n y ,n z ), the original femoral long axis passes through the point (x0, y0, z0), and the preset rotation angle is α; Let K = 1-cosα, M = n x x0+n y y0+n z z0, then the rotation matrix is: Then the coordinate calculation formula of the rotation point is: (x,y,z) new =(x,y,z,1) old ×Rotation random_axis Among them, (x,y,z,1) old is the coordinate of the 0 degree point, (x, y, z) new are the coordinates of the rotation point.
5. The system for capturing three-dimensional segmented femoral cross sections according to claim 2, characterized in that: Also includes: In the three-dimensional image rotation module, it also includes: taking the y-axis as the coordinate axis perpendicular to the three-dimensional coordinate system after synchronously rotating the original three-dimensional image and the femoral cross section, specifically: Obtain the xoy plane vector of the vector where the original femur long axis is located on the xoy plane, and the x-axis unit vector in the x-axis direction on the xoy plane, and calculate the angle between the xoy plane vector and the x-axis unit vector, which is recorded as the xoy plane angle; The original three-dimensional image and the femoral cross section are respectively rotated about the z-axis through the first long axis endpoint by an angle equal to the xoy plane angle to obtain a first rotated three-dimensional image and a first rotated femoral cross section, wherein the femoral long axis of the first rotated three-dimensional image is perpendicular to the y-axis; Calculate the angle between the first rotated femoral cross section and the xoz plane by using the normal vector of the first rotated femoral cross section and the normal vector of the xoz plane pointing to the negative direction of the y-axis, and record it as the xoz plane angle; Let the first rotated three-dimensional image and the first rotated femoral section rotate around their own femoral long axis through the first long axis endpoint by an angle equal to the xoz plane angle to obtain a second rotated three-dimensional image and a second rotated femoral section. At this time, the second rotated femoral section is perpendicular to the y-axis, and the y-coordinate values of the rotation point, the first long axis endpoint and the second long axis endpoint are equal, and the y-coordinate value is the section index value of the second rotated femoral section on the y-coordinate.
6. The system for capturing three-dimensional segmented femoral cross sections according to claim 5, characterized in that: In the three-dimensional image rotation module, the angle between the xoy plane vector and the x-axis unit vector is calculated and recorded as the xoy plane angle, which is specifically: Wherein, α is the angle between the xoy plane vector and the x-axis unit vector, is the xoy plane vector, is the x-axis unit vector.
7. The system for capturing three-dimensional segmented femoral cross sections according to claim 5, characterized in that: In the three-dimensional image rotation module, when the original three-dimensional image and the femoral cross section are respectively rotated around the z axis through the first long axis endpoint by an angle equal to the xoy plane angle, the module further includes: A cross product is performed on the xoy plane vector used to calculate the xoy plane angle and the x-axis unit vector. When the cross product is less than 0, the rotation angle is the opposite of the xoy plane angle.
8. The system for capturing three-dimensional segmented femoral cross sections according to claim 1, characterized in that: In the three-dimensional image rotation module, the first rotated three-dimensional image and the first rotated femoral cross section are rotated around the long axis of the femur through the first long axis endpoint to an angle equal to the xoz plane angle, further comprising: A cross product is performed on the normal vector of the first rotated femoral section used to calculate the xoz plane angle and the normal vector of the xoz plane pointing in the negative direction of the y-axis. When the cross product is less than 0, the rotation angle is the inverse of the xoz plane angle.
9. A method for cutting a three-dimensional segmented femoral cross section using the system for cutting a three-dimensional segmented femoral cross section as described in claims 1-8, characterized in that: include: S1: Obtain any 0-degree plane of the original femoral long axis, and rotate the 0-degree plane around the vector of the original femoral long axis by a preset rotation angle to obtain a rotation plane corresponding to the 0-degree plane, and use the rotation plane as the femoral cross section to be intercepted; S2: synchronously rotating the original three-dimensional image and the femoral cross section so that the rotated femoral cross section is perpendicular to any coordinate axis of the three-dimensional coordinate system, and obtaining the coordinate value of the femoral cross section when it is perpendicular to the coordinate axis as the cross section index value; S3: In the three-dimensional coordinate system, slice data is obtained at the cross-section index value position on the coordinate axis perpendicular to the femoral cross section, and the slice data is cross-section data rotated by the preset rotation angle under the 0-degree plane. 10 . A computer-readable storage medium storing a computer code, wherein when the computer code is executed, the method according to claim 9 is executed.
Citation Information
Cited By
System and method for extracting cross section of three-dimensional segmented femur
WO2026016555A1
