A method for extracting PCT in the proximal femur based on image processing technology
Through image segmentation and morphological processing technology, the PCT of the proximal femur is extracted, which solves the problem of low accuracy of segmentation methods in the existing technology and achieves fast and accurate extraction of PCT.
Patent Information
- Application Number
- CN202410307941.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-03-18
AI Technical Summary
In the existing technology, the segmentation method of the main pressure bone trabeculae in the proximal femur has low accuracy, making it difficult to achieve fast and accurate PCT extraction.
Obtain the corrected CT image from the original CT image through the image segmentation method, perform 3D reconstruction and morphological processing, obtain the three-dimensional PCT image structural information, and optimize it according to morphological principles, and finally obtain the two-dimensional PCT image from the three-dimensional PCT image to achieve Accurate extraction of PCT.
The accuracy of the segmentation method of the main pressure bone trabeculae is improved, the rapid and accurate extraction of PCT is achieved, and the problem of low accuracy of the segmentation method in the traditional method is solved.
Smart Images

Figure CN118279248B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical imaging, and in particular to a method for extracting PCT in the proximal femur based on image processing technology. Background Art
[0002] With the development of medical imaging technology, imaging technologies such as computed tomography (CT) and magnetic resonance imaging (MRI) are used to extract and analyze structures and features in medical images to improve the accuracy and efficiency of diagnosis and treatment. In recent decades, the cancellous bone of the proximal femur has become a hot topic of research. Cancellous bone is generally considered to be a self-optimizing structure with a trajectory structure. With the development of osteoporosis, the bone mass of the proximal femoral cancellous bone decreases rapidly in structures with less stress. However, the primary compression trabeculae (PCT) are preferentially preserved and are regarded as the main load-bearing structure connecting the femoral head and femoral neck. However, the extraction and analysis of PCT in the proximal femur remains a challenging problem because the morphology, distribution and configuration of PCT are complex, and there are large differences in imaging with the surrounding bone tissue. Traditional image processing methods often have difficulty in accurately and quickly extracting PCT. Therefore, developing a method for extracting PCT in the proximal femur based on image processing technology has important practical significance and application value.
[0003] In the prior art, medical images of the proximal femur are acquired by medical imaging equipment, and image processing libraries and algorithms, such as Open CV, ITK, and Python Imaging Library (PIL), are used to extract features from the preprocessed images, and then the images are classified according to the features to identify the PCT area, and the complete PCT structure is extracted. Finally, the surrounding pixels and tissues are merged into the PCT area to obtain the complete PCT in the proximal femur.
[0004] For example, the invention patent application with publication number: CN116543070A discloses a method and device for correcting scattering artifacts in cone-beam CT images, which includes: constructing a synthesis network, forward projecting the CBCT image and the SPCT image respectively to obtain the CBCT projection and the SPCT projection, and determining the residual projection according to the CBCT projection and the SPCT projection, wherein the CBCT is the cone-beam CT and the SPCT is the synthesized PCT; removing the image details from the residual projection, retaining the scattering artifacts, subtracting the scattering artifacts from the CBCT projection, and generating a corrected projection; and reconstructing the corrected projection to obtain a corrected CBCT image.
[0005] For example, the invention patent application with publication number: CN116563599A discloses a method for classifying cultural relics fragment point cloud based on self-supervised PCT deep learning, which includes: collecting cultural relics fragment point cloud data; preprocessing the collected cultural relics fragment point cloud data to obtain preprocessed point cloud data; assigning corresponding category labels to the preprocessed point cloud data to obtain a point cloud data set; using the public data set Shape Net Core to build a cultural relics fragment point cloud classification network model; training the network model to obtain a trained PCT network model; inputting the collected point cloud data of Terracotta Warriors and Horses fragments into the trained PCT network model to obtain a classification result.
[0006] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems:
[0007] In the prior art, PCT extraction methods mainly rely on manual tools or semi-automatic tools, which makes it difficult to achieve accurate and rapid segmentation and extraction of PCT, and there is a problem of low accuracy in the segmentation method of the main pressure trabeculae. Summary of the invention
[0008] The present invention provides a method for extracting PCT in the proximal femur based on image processing technology, which solves the problem of low accuracy of the main pressure trabecular segmentation method in the prior art and improves the accuracy of the main pressure trabecular segmentation method.
[0009] In order to solve the above-mentioned invention object, the technical solution provided by the present invention is as follows:
[0010] S1, obtaining a CT image from the obtained original CT image data to be extracted by an image segmentation method, and adjusting the CT image according to a CT image deviation index to obtain a corrected CT image, wherein the CT image deviation index represents a degree of deviation of a pixel density value of the CT image relative to a pixel density reference value, wherein the pixel density value includes a gray value and an area density value;
[0011] S2, performing 3D reconstruction on the obtained corrected CT image by medical image processing software, and analyzing the display of PCT in the corrected CT image by changing PCT parameters to obtain corresponding three-dimensional CT image data, wherein the PCT parameters are used to describe the morphological structure of the proximal femur in the corrected CT image;
[0012] S3, analyzing the acquired three-dimensional CT image data to obtain corresponding three-dimensional PCT image structure information, and further processing the three-dimensional PCT image structure information according to morphological principles to obtain a three-dimensional PCT image, wherein the three-dimensional PCT image is used to describe a three-dimensional visualization image of the internal structure of the proximal femur;
[0013] S4, obtaining a two-dimensional PCT image from the three-dimensional PCT image, wherein the two-dimensional PCT image represents an image obtained by cutting a plane perpendicular to the PCT using medical image processing software;
[0014] S5, analyzing the three-dimensional CT image data and the three-dimensional PCT image to obtain three-dimensional PCT morphological information, and optimizing the acquired two-dimensional PCT image according to the three-dimensional PCT morphological information and preset requirements, wherein the image optimization is to clearly display the internal details of the PCT.
[0015] Optionally, a specific method for obtaining the CT image deviation index is as follows:
[0016] Selecting a region to be analyzed in the acquired CT image, and analyzing the region to be analyzed to obtain a grayscale value of the CT image, wherein the region to be analyzed represents a region formed by preset pixel points, and a corresponding regional density value is obtained by the number of preset pixel points in the region to be analyzed;
[0017] Further acquiring a window width value and a window level value of the CT image according to the acquired data, wherein the window width value and the window level value are used to comprehensively describe the gray level of the CT image;
[0018] The deviation degree of the pixel density value of the CT image relative to the pixel density reference value is analyzed in combination with the reference window width value and the reference window level value of the CT image to obtain the CT image deviation index, wherein the pixel density reference value includes a reference grayscale value and a regional reference density value.
[0019] Optionally, the 3D reconstruction further includes performing bone cortical edge detection on the corrected CT image, and the specific steps of the bone cortical edge detection are as follows:
[0020] Performing correction preprocessing on the corrected CT image, wherein the correction preprocessing includes amplifying the internal structure details in the corrected CT image and enhancing the contrast of the corrected CT image;
[0021] Converting the corrected CT image after the correction preprocessing into a grayscale image, and converting the grayscale image into a binary image in combination with a preset threshold for bone cortical edge detection, wherein the binary image represents a prominent bone cortical edge region in the corrected CT image after the correction preprocessing;
[0022] Performing morphological processing on the converted binary image, and performing edge detection on the result after morphological processing to obtain an edge intensity image, wherein the morphological processing is used to smooth the bone cortical edge of the corresponding binary image;
[0023] The bone cortical edge in the corrected CT image is separated from the corresponding background according to the edge intensity image, and the edge intensity image is optimized by combining the image optimization method to fill the cavity within the bone cortical edge in the corrected CT image, wherein the cavity optimization includes improving the smoothness of the bone cortical edge and refining the internal structure of the bone cortical edge.
[0024] Optionally, the preset threshold for cortical bone edge detection is calculated by the following formula:
[0025]
[0026] Where j is the number of the region to be analyzed in the CT image, j = 1, 2, ..., N, N is the total number of regions to be analyzed in the CT image, e is a natural constant, ξ j represents the CT image deviation index of the jth region to be analyzed in the CT image, a1 represents the correction factor of the relative deviation of the regional density value of the region to be analyzed, Δα represents the reference deviation of the regional density value of the region to be analyzed, and α j represents the regional density value of the jth area to be analyzed in the CT image, β j represents the reference density value of the region to be analyzed in the jth region in the CT image, a2 represents the correction factor of the relative deviation of the gray value of the region to be analyzed, Δλ represents the reference deviation of the gray value of the region to be analyzed, and λ j represents the gray value of the jth region to be analyzed in the CT image, γj represents the reference gray value of the jth region to be analyzed in the CT image, a3 represents the correction factor of the relative deviation of the window width value of the region to be analyzed, Δφ represents the reference deviation of the window width value of the region to be analyzed, and φ j represents the window width value in the jth area to be analyzed in the CT image, represents the reference window width value in the jth region to be analyzed in the CT image, a4 represents the correction factor of the relative deviation of the window width value of the region to be analyzed, Δη represents the reference deviation of the window width value of the region to be analyzed, and η j represents the window level value in the j-th area to be analyzed in the CT image, μj represents the reference window level value in the j-th area to be analyzed in the CT image, a5 represents the correction factor of the relative deviation of the target edge smoothness in the bone cortical edge detection, Δε represents the reference deviation of the target edge smoothness, εj represents the predicted value of the target edge smoothness in the j-th area to be analyzed in the CT image, and ωj represents the reference value of the target edge smoothness in the j-th area to be analyzed.
[0027] Optionally, the specific steps of 3D reconstruction in S2 include:
[0028] The corrected CT image acquired by using a CT scanner is stored in a two-dimensional form, and bones and soft tissues in the corrected CT image are separated by a structure segmentation method to obtain a reduced corrected CT image, wherein the structure segmentation method is used to divide the corrected CT image into a preset number of regions having internal structures of the proximal femur;
[0029] A surface model corresponding to the reduced corrected CT image is obtained by combining a surface reconstruction method, and the surface model is converted into a voxel model by combining a voxelization method. The surface reconstruction method is used to convert the two-dimensional image data into a three-dimensional surface model. The voxel model is used to describe the internal structure of the PCT in the proximal femur;
[0030] The acquired surface model is optimized, and the surface model after the model optimization is rendered using a visualization tool, wherein the model optimization includes removing redundant vertices and optimizing the topological structure of the three-dimensional surface model.
[0031] Optionally, the specific steps of acquiring the three-dimensional PCT image include:
[0032] Preprocessing the obtained three-dimensional PCT image structural information, and using an image segmentation algorithm to separate the three-dimensional PCT image proximal femur region in the preprocessed three-dimensional PCT image structural information to obtain a corrected three-dimensional PCT image, wherein the preprocessing is used to improve the recognizability of the three-dimensional PCT image;
[0033] Performing skeletonization on the corrected three-dimensional PCT image, and acquiring morphological related features corresponding to the proximal femur based on the proximal femur region after the skeletonization, wherein the skeletonization is used to extract the skeleton structure in the proximal femur of the corrected three-dimensional PCT image, and the morphological related features include cortical bone thickness and cortical bone surface area;
[0034] The acquired morphological related features are post-processed based on the proximal femoral geometric parameters, and a three-dimensional PCT image is acquired in combination with the proximal femoral reference features. The proximal femoral geometric parameters include the proximal femoral neck angle and the femoral distance. The post-processing includes data smoothing, proximal femoral neck angle adjustment and femoral distance adjustment.
[0035] Optionally, the specific steps of acquiring the two-dimensional PCT image include:
[0036] S41, inputting the three-dimensional PCT image data into medical image processing software, and obtaining the femoral head sphere and the femoral head center point according to the four-point method, wherein the femoral head sphere forms the best match with the articular surface of the femoral head, and the femoral head center point is the center of the femoral head sphere;
[0037] S42, obtaining a medullary cavity center point and a isthmus center point, wherein the medullary cavity center point represents the center point of a circle that forms the best match with the medullary cavity in the medullary cavity in a plane containing the center point of the femoral head, and the isthmus center point represents the center point of a circle inscribed between a preset portion of the femoral neck and the bone cortex in a plane containing the center point of the femoral head;
[0038] S43, adjusting the center point of the femoral head, the center point of the medullary cavity and the center point of the isthmus to obtain a median coronal plane of the proximal femur, wherein the median coronal plane of the proximal femur indicates that the center point of the femoral head, the center point of the medullary cavity and the center point of the isthmus are in the same plane;
[0039] S44, analyzing the median coronal plane of the proximal femur to obtain a head-neck point, and determining the head-neck axis by the center point of the femoral head and the head-neck point, wherein the head-neck point is the midpoint of the intersection of the median coronal plane of the proximal femur and the upper and lower points of the inner cortex of the femoral neck;
[0040] S45, combining the sequence recombination method to obtain a plane perpendicular to the PCT, wherein the plane perpendicular to the PCT represents a plane passing through the center point of the femoral head and perpendicular to the head-neck axis and the median coronal plane of the proximal femur;
[0041] S46, importing the original CT image data to be extracted into the medical image processing software, and obtaining the two-dimensional image segmentation threshold in combination with the PCT parameter, and judging whether the two-dimensional image segmentation threshold is within the two-dimensional image preset segmentation threshold, if so, executing S47, otherwise re-obtaining the two-dimensional image segmentation threshold, wherein the two-dimensional image segmentation threshold represents the cutting range when cutting the acquired median coronal plane of the proximal femur;
[0042] S47, inputting the acquired two-dimensional image segmentation threshold into medical image processing software, and selecting a plane perpendicular to the PCT for cutting operation;
[0043] S48, previewing the cutting effect in real time until the expected effect is achieved, obtaining a two-dimensional PCT image, and outputting the obtained two-dimensional PCT image according to a preset output format.
[0044] Optionally, the two-dimensional image segmentation threshold is calculated by the following formula:
[0045]
[0046] Where j is the number of the region to be analyzed in the CT image, j = 1, 2, ..., N, N is the total number of regions to be analyzed in the CT image, e is a natural constant, ψ j represents the two-dimensional image segmentation threshold of the jth region to be analyzed in the CT image, Δα represents the reference deviation of the regional density value of the region to be analyzed in the CT image, and α j represents the regional density value of the jth region to be analyzed in the CT image, βj represents the reference density value of the jth region to be analyzed in the CT image, Δλ represents the reference deviation of the grayscale value of the region to be analyzed in the CT image, and λ j represents the gray value of the jth area to be analyzed in the CT image, γ j represents the reference grayscale value of the jth region to be analyzed in the CT image, Δφ represents the reference deviation of the window width value of the region to be analyzed in the CT image, and φ j represents the window width value of the jth area to be analyzed in the CT image, represents the reference window width value in the jth region to be analyzed in the CT image, Δη represents the reference deviation of the window width value in the region to be analyzed, and η j represents the window level value of the jth region to be analyzed in the CT image, μj represents the reference window level value in the jth region to be analyzed in the CT image, and ε j represents the predicted value of the target edge smoothness of the jth region to be analyzed in the CT image, ω j represents the reference value of the target edge smoothness of the jth region to be analyzed in the CT image, Δε represents the reference deviation of the target edge smoothness of the region to be analyzed in the CT image, and ζ j represents the PCT parameter value of the jth area to be analyzed in the CT image, θ represents the proximal femoral neck angle, θ∈[120o,140o].
[0047] Optionally, the specific steps of optimizing the acquired two-dimensional PCT image include:
[0048] Using medical image processing software to read the two-dimensional PCT image, applying a smoothing filter to perform distortion processing on the two-dimensional PCT image to obtain a simulated two-dimensional PCT image, wherein the smoothing filter includes a Gaussian filter and a median filter;
[0049] Performing edge thinning processing on the simulated two-dimensional PCT image based on an edge thinning algorithm to obtain a two-dimensional PCT image, and segmenting the bone cortex and soft tissue of the proximal femur in the two-dimensional PCT image using a threshold segmentation method, wherein the edge thinning algorithm includes Hough transform and contour tracking;
[0050] The segmented proximal femur image is resized, and an image enhancement method is applied to display the detailed structure inside the PCT, wherein the image enhancement method includes histogram equalization and adaptive histogram equalization.
[0051] Optionally, the specific steps of the skeletonization process include:
[0052] Performing edge detection on the segmented proximal femur region to obtain key features in the bone cortex, and performing morphological operations on the edge-detected image in combination with the obtained key features in the bone cortex to obtain the skeleton structure in the proximal femur region, wherein the morphological operations include corrosion, expansion, and thinning;
[0053] The acquired skeleton structure is processed using a skeletonization algorithm to acquire the skeleton in the proximal femur region, and the acquired skeleton in the proximal femur region is refined.
[0054] The above technical solution of the present invention has at least the following beneficial effects compared with the prior art:
[0055] In the above scheme, a corrected CT image is obtained through an image segmentation method and a CT image deviation index, and the corrected CT image is 3D reconstructed to obtain three-dimensional CT image data, and then the obtained three-dimensional CT image data is processed to obtain corresponding three-dimensional PCT image structure information, and then the three-dimensional PCT image structure information is processed again according to morphological principles to obtain a three-dimensional PCT image, and finally a two-dimensional PCT image is obtained from the three-dimensional PCT image, thereby achieving accurate and rapid extraction of PCT, and further achieving improved accuracy of the segmentation method of the main pressure trabeculae, effectively solving the problem of low accuracy of the segmentation method of the main pressure trabeculae in the prior art.
[0056] The corrected CT image is corrected preprocessed, and then converted into a grayscale image, and the grayscale image is converted into a binary image in combination with a preset threshold for cortical edge detection. Then, edge detection is performed on the binary image after morphological processing to obtain an edge intensity image. Finally, the cortical edge in the corrected CT image is separated from the corresponding background according to the edge intensity image, and the edge intensity image is optimized by combining the image optimization method, thereby achieving accurate detection of the cortical edge in the corrected CT image, and further achieving more accurate cortical edge detection.
[0057] The three-dimensional PCT image data is input into the medical image processing software for analysis to obtain the plane perpendicular to the PCT, and then the two-dimensional image segmentation threshold is obtained according to the original CT image data to be extracted, and the obtained threshold is compared with the preset segmentation threshold of the two-dimensional image, and then the two-dimensional image segmentation threshold within the preset segmentation threshold of the two-dimensional image is input into the software, and the plane perpendicular to the PCT is selected for cutting operation, and finally the cutting effect is previewed in real time until the expected effect is achieved to obtain a two-dimensional PCT image, thereby realizing the accurate extraction of the two-dimensional PCT image, and then realizing the improvement of the accuracy of two-dimensional PCT image extraction. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0059] Figure 1 A flowchart of a method for extracting PCT in the proximal femur based on image processing technology provided in an embodiment of the present application;
[0060] Figure 2 A flowchart of the specific steps of bone cortical edge detection provided in the embodiment of the present application;
[0061] Figure 3 This is a schematic diagram of the head-neck axis provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0063] Unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one", "one" or "the" do not indicate a quantitative limitation, but indicate the existence of at least one. Words such as "include" or "comprise" mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
[0064] It should be noted that the terms "up", "down", "left", "right", "front", "back", etc. used in the present invention are only used to indicate relative position relationships. When the absolute position of the described object changes, the relative position relationship may also change accordingly.
[0065] The present invention aims at the problem of low accuracy of the segmentation method of the main pressure trabeculae in the prior art, and provides a method for extracting PCT in the proximal femur based on image processing technology. A CT image is obtained from the original CT image data to be extracted by an image segmentation method, and the CT image is adjusted according to the CT image deviation index to obtain a corrected CT image, and then the corrected CT image is 3D reconstructed, and the display of PCT in the corrected CT image is analyzed by changing the PCT parameters to obtain corresponding three-dimensional CT image data, and then the obtained three-dimensional CT image data is analyzed to obtain corresponding three-dimensional PCT image structure information, and the three-dimensional PCT image structure information is processed again according to the morphological principle to obtain a three-dimensional PCT image, and then a two-dimensional PCT image is obtained from the three-dimensional PCT image, and finally the obtained two-dimensional PCT image is optimized according to the three-dimensional PCT morphological information and preset requirements, so as to achieve the effect of improving the accuracy of the segmentation method of the main pressure trabeculae.
[0066] like Figure 1 As shown in FIG. 1 , a flow chart of a method for extracting PCT in the proximal femur based on image processing technology provided in an embodiment of the present application is provided. The method comprises the following steps:
[0067] S1, obtaining a CT image from the obtained original CT image data to be extracted by an image segmentation method, and adjusting the CT image according to a CT image deviation index to obtain a corrected CT image, wherein the CT image deviation index indicates a degree of deviation of a pixel density value of the CT image relative to a pixel density reference value, and the pixel density value includes a gray value and an area density value;
[0068] S2, performing 3D reconstruction on the obtained corrected CT image by using medical image processing software, and analyzing the display of PCT in the corrected CT image by changing PCT parameters to obtain corresponding three-dimensional CT image data, wherein the PCT parameters are used to describe the morphological structure of the proximal femur in the corrected CT image;
[0069] S3, analyzing the acquired three-dimensional CT image data to obtain corresponding three-dimensional PCT image structure information, and further processing the three-dimensional PCT image structure information according to morphological principles to obtain a three-dimensional PCT image, which is used to describe a three-dimensional visualization image of the internal structure of the proximal femur;
[0070] S4, obtaining a two-dimensional PCT image from a three-dimensional PCT image, wherein the two-dimensional PCT image refers to an image obtained by cutting a plane perpendicular to the PCT using medical image processing software;
[0071] S5, analyzing the three-dimensional CT image data and the three-dimensional PCT image to obtain the three-dimensional PCT morphological information, and optimizing the acquired two-dimensional PCT image according to the three-dimensional PCT morphological information and preset requirements, so as to clearly display the internal details of the PCT.
[0072] In this embodiment, the image optimization of the acquired two-dimensional PCT image includes filling the internal structure of the PCT using a region filling algorithm, thereby improving the accuracy of the segmentation method of the main pressure trabeculae.
[0073] Optionally, a specific method for obtaining the CT image deviation index is as follows:
[0074] Selecting a region to be analyzed in the acquired CT image, and analyzing the region to be analyzed to obtain a density value and a grayscale value of the CT image, wherein the region to be analyzed represents a region formed by preset pixel points, and the regional density value is obtained by the number of preset pixel points in the region to be analyzed;
[0075] Further obtaining the window width value and window level value of the CT image according to the acquired data, the window width value and window level value are used to comprehensively describe the gray level of the CT image;
[0076] The deviation degree of the pixel density value of the CT image relative to the pixel density reference value is analyzed in combination with the reference window width value and the reference window level value of the CT image to obtain the CT image deviation index. The pixel density reference value includes the reference grayscale value and the regional reference density value.
[0077] In this embodiment, the CT image deviation index is calculated using the following formula:
[0078]
[0079] Where j is the number of the region to be analyzed in the CT image, j = 1, 2, ..., N, N is the total number of regions to be analyzed in the CT image, e is a natural constant, ξ j represents the CT image deviation index of the jth region to be analyzed in the CT image, α j represents the regional density value of the jth region to be analyzed in the CT image, β j represents the regional reference density value of the jth region to be analyzed in the CT image, λ j represents the gray value of the jth region to be analyzed in the CT image, γj represents the reference gray value of the jth region to be analyzed in the CT image, and φ j represents the window width of the jth region to be analyzed in the CT image, η j represents the window level value of the jth area to be analyzed in the CT image, represents the reference window width value in the j-th area to be analyzed in the CT image, and μj represents the reference window position value in the j-th area to be analyzed in the CT image. By determining the preset number of pixels in the area to be analyzed and according to the ratio of the preset number of pixels to the area of the area to be analyzed, the regional density value is obtained, thereby realizing the accurate extraction of the CT image deviation index.
[0080] Alternatively, if Figure 2 As shown, it is a flowchart of the specific steps of bone cortical edge detection provided in an embodiment of the present application, and bone cortical edge detection includes the following steps:
[0081] Correction preprocessing: Correction preprocessing is performed on the corrected CT image, and the correction preprocessing includes amplifying the internal structure details in the corrected CT image and enhancing the contrast of the corrected CT image;
[0082] Obtaining a binary image: converting the corrected CT image after the correction preprocessing into a grayscale image, and converting the grayscale image into a binary image in combination with a preset threshold for bone cortical edge detection, wherein the binary image represents the prominent bone cortical edge area in the corrected CT image after the correction preprocessing;
[0083] Morphological processing: morphological processing is performed on the binary image, and edge detection is performed on the result after morphological processing to obtain an edge intensity image. Morphological processing is used to smooth the bone cortical edge of the corresponding binary image;
[0084] Cortical edge optimization: The cortical edge in the corrected CT image is separated from the corresponding background according to the edge intensity image, and the edge intensity image is optimized with the image optimization method to fill the voids in the cortical edge in the corrected CT image. The void optimization includes improving the smoothness of the cortical edge and refining the internal structure of the cortical edge.
[0085] In this embodiment, the morphological processing also includes boundary extraction, region filling and skeleton extraction, which helps to perform structural analysis on the acquired binary image and improves the accuracy of 3D reconstruction.
[0086] Optionally, the preset threshold for cortical bone edge detection is calculated by the following formula:
[0087]
[0088] Where j is the number of the region to be analyzed in the CT image, j = 1, 2, ..., N, N is the total number of regions to be analyzed in the CT image, e is a natural constant, ξ j represents the CT image deviation index of the jth region to be analyzed in the CT image, a1 represents the correction factor of the relative deviation of the regional density value of the region to be analyzed, Δα represents the reference deviation of the regional density value of the region to be analyzed, and α jrepresents the regional density value of the jth area to be analyzed in the CT image, β j represents the reference density value of the region to be analyzed in the jth region in the CT image, a2 represents the correction factor of the relative deviation of the gray value of the region to be analyzed, Δλ represents the reference deviation of the gray value of the region to be analyzed, and λ j represents the gray value of the jth region to be analyzed in the CT image, γj represents the reference gray value of the jth region to be analyzed in the CT image, a3 represents the correction factor of the relative deviation of the window width value of the region to be analyzed, Δφ represents the reference deviation of the window width value of the region to be analyzed, and φ j represents the window width value in the jth area to be analyzed in the CT image, represents the reference window width value in the jth region to be analyzed in the CT image, a4 represents the correction factor of the relative deviation of the window width value of the region to be analyzed, Δη represents the reference deviation of the window width value of the region to be analyzed, and η j represents the window level value in the j-th area to be analyzed in the CT image, μj represents the reference window level value in the j-th area to be analyzed in the CT image, a5 represents the correction factor of the relative deviation of the target edge smoothness in the bone cortical edge detection, Δε represents the reference deviation of the target edge smoothness, εj represents the predicted value of the target edge smoothness in the j-th area to be analyzed in the CT image, and ωj represents the reference value of the target edge smoothness in the j-th area to be analyzed.
[0089] In this embodiment, the preset threshold for cortical bone edge detection is also related to the grayscale distribution, noise interference and image contrast of the CT image. During the detection process, the cortical bone is separated from other tissues as much as possible to reduce the possibility of false detection and missed detection, thereby improving the efficiency of cortical bone edge detection.
[0090] Optionally, the specific steps of 3D reconstruction in S2 include:
[0091] The corrected CT image acquired by using a CT scanner is stored in a two-dimensional form, and bones and soft tissues in the corrected CT image are separated by a structure segmentation method to obtain a reduced corrected CT image, wherein the structure segmentation method is used to divide the corrected CT image into a preset number of regions having internal structures of the proximal femur;
[0092] The surface model corresponding to the reduced corrected CT image is obtained by combining the surface reconstruction method, and the surface model is converted into a voxel model by combining the voxelization method. The surface reconstruction method is used to convert the two-dimensional image data into a three-dimensional surface model, and the voxel model is used to describe the internal structure of the PCT in the proximal femur.
[0093] The acquired surface model is optimized, and the optimized surface model is rendered using a visualization tool. The model optimization includes removing redundant vertices and optimizing the topological structure of the three-dimensional surface model.
[0094] In this embodiment, before the model optimization is performed on the acquired surface model, the parameters in the surface model are adjusted according to the specific model and application scenario, thereby improving the reliability of 3D reconstruction.
[0095] Optionally, the specific steps of acquiring the three-dimensional PCT image include:
[0096] Preprocessing the obtained three-dimensional PCT image structural information, and using an image segmentation algorithm to separate the three-dimensional PCT image proximal femur region in the preprocessed three-dimensional PCT image structural information to obtain a corrected three-dimensional PCT image, wherein the preprocessing is used to improve the recognizability of the three-dimensional PCT image;
[0097] The corrected three-dimensional PCT image is subjected to skeletonization processing, and morphological related features corresponding to the proximal femur are obtained based on the proximal femur region after skeletonization processing. The skeletonization processing is used to extract the skeleton structure in the proximal femur of the corrected three-dimensional PCT image. The morphological related features include cortical bone thickness and cortical bone surface area.
[0098] The acquired morphological related features were post-processed based on the proximal femoral geometric parameters, and the three-dimensional PCT images were obtained in combination with the proximal femoral reference features. The proximal femoral geometric parameters included the proximal femoral neck angle and femoral distance. The post-processing included data smoothing, proximal femoral neck angle adjustment, and femoral distance adjustment.
[0099] In this embodiment, the image segmentation algorithm is used to separate the proximal femur area of the three-dimensional PCT image from the background and other tissues before preprocessing the corrected three-dimensional PCT image, which is beneficial to improving the recognition of the target area and achieving improved reliability of the application effect of the three-dimensional PCT image.
[0100] Alternatively, if Figure 3 As shown, it is a schematic diagram of the head-neck axis provided in an embodiment of the present application, and the specific steps of obtaining a two-dimensional PCT image include:
[0101] S41, inputting the three-dimensional PCT image data into medical image processing software, and obtaining the femoral head sphere and the femoral head center point according to the four-point method, the femoral head sphere and the articular surface of the femoral head form the best match, and the femoral head center point is the center of the femoral head sphere;
[0102] S42, obtaining the center point of the medullary cavity and the center point of the isthmus, wherein the center point of the medullary cavity represents the center point of a circle that forms the best match with the medullary cavity in the medullary cavity in a plane containing the center point of the femoral head, and the center point of the isthmus represents the center point of a circle inscribed between a preset portion of the femoral neck and the bone cortex in a plane containing the center point of the femoral head;
[0103] S43, adjusting the center point of the femoral head, the center point of the medullary cavity and the center point of the isthmus to obtain the median coronal plane of the proximal femur, where the median coronal plane of the proximal femur indicates that the center point of the femoral head, the center point of the medullary cavity and the center point of the isthmus are in the same plane;
[0104] S44, the median coronal plane of the proximal femur is analyzed to obtain the head-neck point, and the head-neck axis is determined by the center point of the femoral head and the head-neck point. The head-neck point is the midpoint of the intersection of the median coronal plane of the proximal femur and the upper and lower points of the inner cortex of the femoral neck;
[0105] S45, a plane perpendicular to the PCT was obtained by combining the sequence recombination method. The plane perpendicular to the PCT means a plane passing through the center point of the femoral head and perpendicular to the head-neck axis and the median coronal plane of the proximal femur;
[0106] S46, importing the original CT image data to be extracted into the medical image processing software, and obtaining the two-dimensional image segmentation threshold in combination with the PCT parameter, and judging whether the two-dimensional image segmentation threshold is within the two-dimensional image preset segmentation threshold, if so, executing S47, otherwise re-obtaining the two-dimensional image segmentation threshold, the two-dimensional image segmentation threshold representing the cutting range when cutting the acquired median coronal plane of the proximal femur;
[0107] S47, inputting the acquired two-dimensional image segmentation threshold into medical image processing software, and selecting a plane perpendicular to the PCT for cutting operation;
[0108] S48, previewing the cutting effect in real time until the expected effect is achieved, obtaining a two-dimensional PCT image, and outputting the obtained two-dimensional PCT image according to a preset output format.
[0109] In this embodiment, Figure 3 In the figure, the center point of the femoral head is marked as point O, the intersection points of the median coronal plane of the proximal femur and the upper and lower inner cortex of the femoral neck are U and L respectively, the head and neck point is M, and the straight line OM is the head and neck axis; before selecting the plane perpendicular to the PCT for cutting, one or more independent planes should be selected in the three-dimensional space, and these planes must be perpendicular to the PCT, so as to improve the accuracy of two-dimensional PCT image processing.
[0110] Optionally, the two-dimensional image segmentation threshold is calculated by the following formula:
[0111]
[0112] Where j is the number of the region to be analyzed in the CT image, j = 1, 2, ..., N, N is the total number of regions to be analyzed in the CT image, e is a natural constant, ψ j represents the two-dimensional image segmentation threshold of the jth region to be analyzed in the CT image, Δα represents the reference deviation of the regional density value of the region to be analyzed in the CT image, and αj represents the regional density value of the jth region to be analyzed in the CT image, β j represents the reference density value of the jth region to be analyzed in the CT image, Δλ represents the reference deviation of the grayscale value of the region to be analyzed in the CT image, and λ j represents the gray value of the jth area to be analyzed in the CT image, γ j represents the reference grayscale value of the jth region to be analyzed in the CT image, Δφ represents the reference deviation of the window width value of the region to be analyzed in the CT image, and φ j represents the window width value of the jth area to be analyzed in the CT image, represents the reference window width value in the jth region to be analyzed in the CT image, Δη represents the reference deviation of the window width value in the region to be analyzed, and η j represents the window level value of the jth region to be analyzed in the CT image, μj represents the reference window level value in the jth region to be analyzed in the CT image, and ε j represents the predicted value of the target edge smoothness of the jth region to be analyzed in the CT image, ω j represents the reference value of the target edge smoothness of the jth region to be analyzed in the CT image, Δε represents the reference deviation of the target edge smoothness of the region to be analyzed in the CT image, and ζ j represents the PCT parameter value of the jth area to be analyzed in the CT image, θ represents the proximal femoral neck angle, θ∈[120o,140o].
[0113] In this embodiment, the proximal femoral neck angle is used to describe the morphology of the proximal femur and can also be used to guide hip replacement surgery. The normal range of the proximal femoral neck angle is θ∈[120o,140o]. This angle helps maintain the stability and normal function of the hip joint, and also facilitates the extraction of PCT, thereby realizing the analysis of medical image stability.
[0114] Optionally, the specific steps of performing image optimization on the acquired two-dimensional PCT image include:
[0115] The two-dimensional PCT image is read by medical image processing software, and a smoothing filter is applied to the two-dimensional PCT image to perform distortion processing to obtain a simulated two-dimensional PCT image. The smoothing filter includes a Gaussian filter and a median filter.
[0116] The simulated two-dimensional PCT image is subjected to edge refinement processing based on an edge refinement algorithm to obtain a two-dimensional PCT image, and the bone cortex and soft tissue of the proximal femur in the two-dimensional PCT image are segmented using a threshold segmentation method. The edge refinement algorithm includes Hough transform and contour tracking.
[0117] The segmented proximal femur images were resized, and image enhancement methods were applied to display the detailed structure inside the PCT. The image enhancement methods included histogram equalization and adaptive histogram equalization.
[0118] In this embodiment, the acquired two-dimensional PCT image can be optimized for diagnosis and analysis through image quality. During the optimization process, optimization efficiency and optimization cost should also be considered, thereby achieving more accurate optimization of the two-dimensional PCT image.
[0119] Optionally, the specific steps of the skeletonization process include:
[0120] Perform edge detection on the segmented proximal femur region to obtain key features in the bone cortex, and perform morphological operations on the edge-detected image in combination with the key features in the bone cortex to obtain the skeleton structure in the proximal femur region, wherein the morphological operations include corrosion, expansion, and thinning;
[0121] The acquired skeleton structure is processed using a skeletonization algorithm to acquire the skeleton in the proximal femur region, and the acquired skeleton in the proximal femur region is refined.
[0122] In this embodiment, the skeleton in the proximal femur region obtained is refined mainly by morphological refinement, which is used to simplify the skeleton structure and improve the efficiency of skeletonization processing.
[0123] There are a few points to note:
[0124] (1) The drawings of the embodiments of the present invention only relate to the structures related to the embodiments of the present invention, and other structures may refer to the general design.
[0125] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of the layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0126] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0127] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for extracting PCT in the proximal femur based on image processing technology. It is characterized in that The following steps are involved: S1, obtaining a CT image from the obtained original CT image data to be extracted by an image segmentation method, and adjusting the CT image according to a CT image deviation index to obtain a corrected CT image, wherein the CT image deviation index represents a degree of deviation of a pixel density value of the CT image relative to a pixel density reference value, wherein the pixel density value includes a gray value and an area density value; S2, performing 3D reconstruction on the obtained corrected CT image by medical image processing software, and analyzing the display of PCT in the corrected CT image by changing PCT parameters to obtain corresponding three-dimensional CT image data, wherein the PCT parameters are used to describe the morphological structure of the proximal femur in the corrected CT image; S3, analyzing the acquired three-dimensional CT image data to obtain corresponding three-dimensional PCT image structure information, and further processing the three-dimensional PCT image structure information according to morphological principles to obtain a three-dimensional PCT image, wherein the three-dimensional PCT image is used to describe a three-dimensional visualization image of the internal structure of the proximal femur; S4, obtaining a two-dimensional PCT image from the three-dimensional PCT image, wherein the two-dimensional PCT image represents an image obtained by cutting a plane perpendicular to the PCT using medical image processing software; S5, analyzing the three-dimensional CT image data and the three-dimensional PCT image to obtain three-dimensional PCT morphological information, and optimizing the obtained two-dimensional PCT image according to the three-dimensional PCT morphological information and preset requirements to clearly display the internal details of the PCT; The specific steps of obtaining the three-dimensional PCT image include: Preprocessing the obtained three-dimensional PCT image structural information, and using an image segmentation algorithm to separate the three-dimensional PCT image proximal femur region in the preprocessed three-dimensional PCT image structural information to obtain a corrected three-dimensional PCT image, wherein the preprocessing is used to improve the recognizability of the three-dimensional PCT image; Performing skeletonization on the corrected three-dimensional PCT image, and acquiring morphological related features corresponding to the proximal femur based on the proximal femur region after the skeletonization, wherein the skeletonization is used to extract the skeleton structure in the proximal femur of the corrected three-dimensional PCT image, and the morphological related features include cortical bone thickness and cortical bone surface area; The acquired morphological related features are post-processed based on the proximal femoral geometric parameters, and a three-dimensional PCT image is acquired in combination with the proximal femoral reference features. The proximal femoral geometric parameters include the proximal femoral neck angle and the femoral distance. The post-processing includes data smoothing, proximal femoral neck angle adjustment and femoral distance adjustment.
2. The method for extracting PCT in the proximal femur based on image processing technology according to claim 1, It is characterized in that The specific method for obtaining the CT image deviation index is as follows: Selecting a region to be analyzed in the acquired CT image, and analyzing the region to be analyzed to obtain a grayscale value of the CT image, wherein the region to be analyzed represents a region formed by preset pixel points, and a corresponding regional density value is obtained by the number of preset pixel points in the region to be analyzed; Further acquiring a window width value and a window level value of the CT image according to the acquired data, wherein the window width value and the window level value are used to comprehensively describe the gray level of the CT image; The deviation degree of the pixel density value of the CT image relative to the pixel density reference value is analyzed in combination with the reference window width value and the reference window level value of the CT image to obtain the CT image deviation index, wherein the pixel density reference value includes a reference grayscale value and a regional reference density value.
3. The method for extracting PCT in the proximal femur based on image processing technology according to claim 1, It is characterized in that The 3D reconstruction also includes performing bone cortical edge detection on the corrected CT image. The specific steps of the bone cortical edge detection are as follows: Performing correction preprocessing on the corrected CT image, wherein the correction preprocessing includes amplifying the internal structure details in the corrected CT image and enhancing the contrast of the corrected CT image; Converting the corrected CT image after the correction preprocessing into a grayscale image, and converting the grayscale image into a binary image in combination with a preset threshold for bone cortical edge detection, wherein the binary image represents a prominent bone cortical edge region in the corrected CT image after the correction preprocessing; Performing morphological processing on the converted binary image, and performing edge detection on the result after morphological processing to obtain an edge intensity image, wherein the morphological processing is used to smooth the bone cortical edge of the corresponding binary image; The bone cortical edge in the corrected CT image is separated from the corresponding background according to the edge intensity image, and the edge intensity image is optimized by combining the image optimization method to fill the cavity within the bone cortical edge in the corrected CT image, wherein the cavity optimization includes improving the smoothness of the bone cortical edge and refining the internal structure of the bone cortical edge.
4. The method for extracting PCT in the proximal femur based on image processing technology according to claim 3, It is characterized in that The preset threshold for cortical bone edge detection is calculated by the following formula: Where j is the number of the region to be analyzed in the CT image, j = 1, 2, ..., N, N is the total number of regions to be analyzed in the CT image, e is a natural constant, ξ j represents the CT image deviation index of the jth region to be analyzed in the CT image, a1 represents the correction factor of the relative deviation of the regional density value of the region to be analyzed, △α represents the reference deviation of the regional density value of the region to be analyzed, and α j represents the regional density value of the jth area to be analyzed in the CT image, β j represents the reference density value of the region to be analyzed in the jth region in the CT image, a2 represents the correction factor of the relative deviation of the gray value of the region to be analyzed, △λ represents the reference deviation of the gray value of the region to be analyzed, and λ j represents the gray value of the jth region to be analyzed in the CT image, γj represents the reference gray value of the jth region to be analyzed in the CT image, a3 represents the correction factor of the relative deviation of the window width value of the region to be analyzed, △φ represents the reference deviation of the window width value of the region to be analyzed, and φ j represents the window width value in the jth area to be analyzed in the CT image, represents the reference window width value in the jth region to be analyzed in the CT image, a4 represents the correction factor of the relative deviation of the window width value of the region to be analyzed, △η represents the reference deviation of the window width value of the region to be analyzed, and η j represents the window level value in the j-th area to be analyzed in the CT image, μj represents the reference window level value in the j-th area to be analyzed in the CT image, a5 represents the correction factor of the relative deviation of the target edge smoothness in the bone cortical edge detection, △ε represents the reference deviation of the target edge smoothness, εj represents the predicted value of the target edge smoothness in the j-th area to be analyzed in the CT image, and ωj represents the reference value of the target edge smoothness in the j-th area to be analyzed.
5. The method for extracting PCT in the proximal femur based on image processing technology according to claim 1, It is characterized in that The specific steps of 3D reconstruction in S2 include: The corrected CT image acquired by using a CT scanner is stored in a two-dimensional form, and bones and soft tissues in the corrected CT image are separated by a structure segmentation method to obtain a reduced corrected CT image, wherein the structure segmentation method is used to divide the corrected CT image into a preset number of regions having internal structures of the proximal femur; A surface model corresponding to the reduced corrected CT image is obtained by combining a surface reconstruction method, and the surface model is converted into a voxel model by combining a voxelization method. The surface reconstruction method is used to convert the two-dimensional image data into a three-dimensional surface model. The voxel model is used to describe the internal structure of the PCT in the proximal femur; The acquired surface model is optimized, and the surface model after the model optimization is rendered using a visualization tool, wherein the model optimization includes removing redundant vertices and optimizing the topological structure of the three-dimensional surface model.
6. The method for extracting PCT in the proximal femur based on image processing technology according to claim 1, It is characterized in that The specific steps of obtaining the two-dimensional PCT image include: S41, inputting the three-dimensional PCT image data into medical image processing software, and obtaining the femoral head sphere and the femoral head center point according to the four-point method, wherein the femoral head sphere forms the best match with the articular surface of the femoral head, and the femoral head center point is the center of the femoral head sphere; S42, obtaining a medullary cavity center point and a isthmus center point, wherein the medullary cavity center point represents the center point of a circle that forms the best match with the medullary cavity in the medullary cavity in a plane containing the center point of the femoral head, and the isthmus center point represents the center point of a circle inscribed between a preset portion of the femoral neck and the bone cortex in a plane containing the center point of the femoral head; S43, adjusting the center point of the femoral head, the center point of the medullary cavity and the center point of the isthmus to obtain a median coronal plane of the proximal femur, wherein the median coronal plane of the proximal femur indicates that the center point of the femoral head, the center point of the medullary cavity and the center point of the isthmus are in the same plane; S44, analyzing the median coronal plane of the proximal femur to obtain a head-neck point, and determining the head-neck axis by the center point of the femoral head and the head-neck point, wherein the head-neck point is the midpoint of the intersection of the median coronal plane of the proximal femur and the upper and lower points of the inner cortex of the femoral neck; S45, combining the sequence recombination method to obtain a plane perpendicular to the PCT, wherein the plane perpendicular to the PCT represents a plane passing through the center point of the femoral head and perpendicular to the head-neck axis and the median coronal plane of the proximal femur; S46, importing the original CT image data to be extracted into the medical image processing software, and obtaining the two-dimensional image segmentation threshold in combination with the PCT parameter, and judging whether the two-dimensional image segmentation threshold is within the two-dimensional image preset segmentation threshold, if so, executing S47, otherwise re-obtaining the two-dimensional image segmentation threshold, wherein the two-dimensional image segmentation threshold represents the cutting range when cutting the acquired median coronal plane of the proximal femur; S47, inputting the acquired two-dimensional image segmentation threshold into medical image processing software, and selecting a plane perpendicular to the PCT for cutting operation; S48, previewing the cutting effect in real time until the expected effect is achieved, obtaining a two-dimensional PCT image, and outputting the obtained two-dimensional PCT image according to a preset output format.
7. The method for extracting PCT in the proximal femur based on image processing technology according to claim 6, It is characterized in that The two-dimensional image segmentation threshold is calculated by the following formula: Where j is the number of the region to be analyzed in the CT image, j = 1, 2, ..., N, N is the total number of regions to be analyzed in the CT image, e is a natural constant, ψ j represents the two-dimensional image segmentation threshold of the jth region to be analyzed in the CT image, △α represents the reference deviation of the regional density value of the region to be analyzed in the CT image, and α j represents the regional density value of the jth region to be analyzed in the CT image, β j represents the reference density value of the jth region to be analyzed in the CT image, △λ represents the reference deviation of the grayscale value of the region to be analyzed in the CT image, and λ j represents the gray value of the jth area to be analyzed in the CT image, γ j represents the reference grayscale value of the jth region to be analyzed in the CT image, △φ represents the reference deviation of the window width value of the region to be analyzed in the CT image, and φ j represents the window width value of the jth area to be analyzed in the CT image, represents the reference window width value in the jth region to be analyzed in the CT image, △η represents the reference deviation of the window width value in the region to be analyzed, and η j represents the window level value of the jth region to be analyzed in the CT image, μj represents the reference window level value in the jth region to be analyzed in the CT image, and ε j represents the predicted value of the target edge smoothness of the jth region to be analyzed in the CT image, ω j represents the reference value of the target edge smoothness of the jth region to be analyzed in the CT image, △ε represents the reference deviation of the target edge smoothness of the region to be analyzed in the CT image, and ζ j represents the PCT parameter value of the jth region to be analyzed in the CT image, θ represents the proximal femoral neck angle, 8. The method for extracting PCT in the proximal femur based on image processing technology according to claim 1, It is characterized in that The specific steps of optimizing the acquired two-dimensional PCT image include: Using medical image processing software to read the two-dimensional PCT image, applying a smoothing filter to perform distortion processing on the two-dimensional PCT image to obtain a simulated two-dimensional PCT image, wherein the smoothing filter includes a Gaussian filter and a median filter; Performing edge thinning processing on the simulated two-dimensional PCT image based on an edge thinning algorithm to obtain a two-dimensional PCT image, and segmenting the bone cortex and soft tissue of the proximal femur in the two-dimensional PCT image using a threshold segmentation method, wherein the edge thinning algorithm includes Hough transform and contour tracking; The segmented proximal femur image is resized, and an image enhancement method is applied to display the detailed structure inside the PCT, wherein the image enhancement method includes histogram equalization and adaptive histogram equalization.
9. The method for extracting PCT in the proximal femur based on image processing technology according to claim 1, It is characterized in that The specific steps of the skeletonization process include: Performing edge detection on the segmented proximal femur region to obtain key features in the bone cortex, and performing morphological operations on the edge-detected image in combination with the obtained key features in the bone cortex to obtain the skeleton structure in the proximal femur region, wherein the morphological operations include corrosion, expansion, and thinning; The acquired skeleton structure is processed using a skeletonization algorithm to acquire the skeleton in the proximal femur region, and the acquired skeleton in the proximal femur region is refined.
