Root canal segmentation method, root canal three-dimensional reconstruction method and device
Through feature point processing of X-ray training images and grayscale feature model correction, high-precision segmentation of root canals is achieved, which solves the problem of low segmentation accuracy in the existing technology and improves the segmentation precision and accuracy of root canals. .
Patent Information
- Application Number
- CN202410141262.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-01-31
AI Technical Summary
The accuracy of root canal segmentation in the existing technology is low and relies on the doctor's experience, resulting in inaccurate segmentation results.
By acquiring multiple X-ray training images, the shape vector and grayscale vector of the calibration feature points are determined, normalized processing and grayscale feature model correction are performed, and root canal segmentation is performed based on the statistical average shape model and corrected grayscale features to improve Segmentation accuracy.
It eliminates the influence of tooth position and inclination angle on the segmentation results, improves the accuracy of root canal segmentation, accurately distinguishes alveolar bone and root canal, and enhances the representativeness of segmentation.
Smart Images

Figure CN117911445B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical imaging technology, and in particular to a root canal segmentation method, a root canal three-dimensional reconstruction method and a device. Background Art
[0002] Root canal surgery is a common method for treating pulp disease and periapical periodontitis, and root canal preparation is the main task of root canal surgery. In root canal treatment, X-ray detection technology is mostly used to obtain the number, distribution, shape and condition of the root canals inside the diseased teeth. These test results provide information support for preoperative surgical planning to doctors. And with the maturity of virtual technology, the test results can provide online support for virtual technology during surgery.
[0003] However, in the prior art, doctors need to manually segment and determine the location of the root canal from the X-ray image obtained by the X-ray detection technology through staff, and the accuracy of the root canal segmentation depends on the doctor's experience, resulting in low segmentation accuracy.
[0004] There is an urgent need to provide a root canal segmentation method, a root canal three-dimensional reconstruction method and a device to solve the above technical problems. Summary of the invention
[0005] In view of this, it is necessary to provide a root canal segmentation method, a root canal three-dimensional reconstruction method and a device to solve the technical problem of relying on manual segmentation in the prior art, resulting in low segmentation accuracy.
[0006] On the one hand, in order to solve the above technical problems, the present invention provides a root canal segmentation method, comprising:
[0007] Acquire a plurality of X-ray training images, each of the X-ray training images comprising a plurality of calibrated feature points;
[0008] Determine a shape vector of the root canal in the X-ray training image and a grayscale vector of each of the calibration feature points based on the multiple calibration feature points;
[0009] Normalizing the shape vector to obtain a statistical average shape model;
[0010] Constructing a grayscale feature model based on the grayscale vector, and correcting the grayscale vector based on the grayscale feature model to obtain a corrected grayscale feature;
[0011] The root canal in the to-be-segmented X-ray image is determined based on the statistical average shape model and the corrected grayscale feature, and the root canal is segmented.
[0012] In a possible implementation manner, determining the grayscale vector of each of the calibrated feature points includes:
[0013] Determine the normal direction of each of the calibrated feature points, and determine a plurality of sampling points corresponding to the calibrated feature points along the normal direction with a preset sampling step size and a preset sampling range;
[0014] The grayscale value of each of the sampling points is obtained, and the grayscale vector is constructed based on the grayscale value.
[0015] In a possible implementation, the grayscale feature model is:
[0016]
[0017]
[0018] g ij =(g ij1 ,g ij2 ,g ij3 ,g ij4 ,...,g ij2m ,g ij2m+1 )
[0019] In the formula, g i 'To correct the grayscale features; is the mean of the grayscale vector; P is S i A vector composed of t eigenvectors of g ij is the grayscale vector of the i-th calibrated feature point of the j-th X-ray training image; S i is the covariance matrix of the grayscale vector; 2m is the number of sampling points; n is the number of X-ray training images; T is the matrix transposition symbol; g ij1 ,g ij2 ,g ij3 ,g ij4 ,...,g ij2m ,g ij2m+1 is the grayscale value of each sampling point corresponding to the i-th calibration feature point of the j-th X-ray training image.
[0020] In a possible implementation, the multiple X-ray training images include a first X-ray training image, a second X-ray training image, and a third X-ray training image, and the shape vector includes a first vector corresponding to the first X-ray training image, a second vector corresponding to the second X-ray training image, and a third vector corresponding to the third X-ray training image, and the normalizing the shape vector to obtain a statistical average shape model includes:
[0021] Step 1: align the second vector and the third vector with the first vector to obtain a second alignment vector and a third alignment vector respectively;
[0022] Step 2: determining an average face shape vector of the first vector, the second alignment vector and the third alignment vector;
[0023] Step 3: align the first vector, the second vector and the third vector with the average face shape vector, and obtain a first adjustment vector, a second adjustment vector and a third adjustment vector accordingly;
[0024] Step 4: determining a first difference between the first adjustment vector and the average face shape vector, a second difference between the second adjustment vector and the average face shape vector, and a third difference between the third adjustment vector and the average face shape vector, and determining whether the first difference, the second difference, and the third difference are all less than a preset difference;
[0025] Step 5: When the first difference, the second difference and the third difference are all smaller than a preset difference, the average face shape vector is the statistical average shape model;
[0026] Step six: when the first difference, the second difference or the third difference is greater than or equal to a preset difference, return to step two.
[0027] In a possible implementation, the determining the root canal in the to-be-segmented X-ray image based on the statistical average shape model and the corrected grayscale feature includes:
[0028] Determining an initial shape of the root canal in the to-be-segmented X-ray image based on the statistical average shape model;
[0029] Determine a plurality of candidate feature points of the initial shape based on a multi-scale scaling strategy, and determine a plurality of local grayscale features of the plurality of candidate feature points;
[0030] Determining similarity values between the plurality of candidate feature points and the calibrated feature points based on the corrected grayscale feature and the plurality of local grayscale features;
[0031] The candidate feature point with the largest similarity value is used as the target feature point, and the target feature point encloses the root canal.
[0032] In a possible implementation manner, after acquiring a plurality of X-ray training images, the method further includes:
[0033] Performing Laplace transform processing and Sobel operator processing on each of the X-ray training images to obtain a first processed image and a second processed image respectively;
[0034] Superimposing the first processed image with the X-ray training image to obtain a sharpened image;
[0035] performing mean filtering on the second processed image to obtain a filtered image;
[0036] Multiplying the sharpened image and the filtered image to obtain a masking template;
[0037] The masking template and the X-ray training image are superimposed and subjected to contrast adaptive histogram equalization processing.
[0038] On the other hand, the present invention also provides a method for three-dimensional reconstruction of a root canal, comprising:
[0039] Segment the X-ray image based on the root canal segmentation method to obtain the contour of the root canal;
[0040] Setting an initial step value, determining a plurality of contour points of the contour line based on the initial step value, and determining a plurality of curvatures of the plurality of contour points;
[0041] determining a target contour point of the contour line based on the plurality of curvatures and the contour point;
[0042] Determine the target contour point to determine the layered section, and determine the center point position, distance and layer height of the layered section;
[0043] Constructing a layered contour line of the layered section with the center point position as the center of the circle;
[0044] Collecting a plurality of contour sampling points at equal intervals on the layered contour lines, and performing triangular facet filling between adjacent layered contour lines based on the plurality of contour sampling points to obtain a three-dimensional root canal;
[0045] Wherein, the root canal segmentation method is the root canal segmentation method described in any one of the possible implementation modes mentioned above.
[0046] In a possible implementation manner, determining the target contour point of the contour line based on the multiple curvatures and the contour points includes:
[0047] Determine a mean curvature of the plurality of curvatures, and determine whether each curvature is smaller than the mean curvature;
[0048] When the curvature is less than the mean curvature, the contour point is the target contour point;
[0049] When the curvature is greater than or equal to the curvature mean, a new contour point is added between two adjacent contour points, and the new contour point is the target contour point.
[0050] On the other hand, the present invention also provides a root canal segmentation device, comprising:
[0051] A training image acquisition unit, used to acquire a plurality of X-ray training images, each of which includes a plurality of calibration feature points;
[0052] A vector determination unit, configured to determine a shape vector of a root canal in the X-ray training image based on the plurality of calibration feature points, and to determine a grayscale vector of each of the calibration feature points;
[0053] A normalization processing unit, used for performing normalization processing on the shape vector to obtain a statistical average shape model;
[0054] A grayscale vector correction unit, used for constructing a grayscale feature model based on the grayscale vector, and correcting the grayscale vector based on the grayscale feature model to obtain a corrected grayscale feature;
[0055] A root canal segmentation unit is used to determine the root canal in the to-be-segmented X-ray image based on the statistical average shape model and the corrected grayscale feature, and segment the root canal.
[0056] On the other hand, the present invention also provides a root canal three-dimensional reconstruction device, comprising:
[0057] A contour line determination unit, used for segmenting the X-ray image based on a root canal segmentation method to obtain a contour line of the root canal;
[0058] a curvature determination unit, configured to set an initial step value, determine a plurality of contour points of the contour line based on the initial step value, and determine a plurality of curvatures of the plurality of contour points;
[0059] a target contour point determination unit, configured to determine a target contour point of the contour line based on the plurality of curvatures and the contour point;
[0060] A layered profile determination unit, used to determine the target contour point to determine the layered profile, and determine the center point position, distance and layer height of the layered profile;
[0061] A layered contour line determination unit, used for constructing a layered contour line of the layered section with the center point position as the center of the circle;
[0062] A three-dimensional root canal reconstruction unit, used for collecting a plurality of contour sampling points at equal intervals on the layered contour line, and performing triangular facet filling between adjacent layered contour lines based on the plurality of contour sampling points to obtain a three-dimensional root canal;
[0063] Wherein, the root canal segmentation method is the root canal segmentation method described in any one of the possible implementation modes mentioned above.
[0064] The beneficial effects of the present invention are as follows: the root canal segmentation method provided by the present invention obtains a statistical average shape model by normalizing the shape vector determined by multiple calibrated feature points in the X-ray training image, which can eliminate the image caused by different tooth positions and inclination angles in different X-ray training images on the segmentation results, thereby improving the segmentation accuracy of the root canal segmentation method. In addition, the present invention corrects the grayscale vector through the constructed grayscale feature model to obtain the corrected grayscale feature, and determines the root canal in the X-ray image to be segmented based on the grayscale corrected feature, rather than directly using the grayscale vector to determine the root canal in the X-ray image to be segmented, which can improve the representativeness of the corrected grayscale feature, that is, accurately distinguish the alveolar bone and the tooth including the root canal in the X-ray training image, and realize the accurate segmentation of the root canal in the features with similar grayscale, further improving the segmentation accuracy of the root canal segmentation method. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] 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 those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0066] Figure 1 A schematic flow chart of an embodiment of the root canal segmentation method provided by the present invention;
[0067] Figure 2 A schematic diagram of an embodiment of determining a grayscale vector;
[0068] Figure 3 For the present invention Figure 1 A schematic flow chart of an embodiment of step S103;
[0069] Figure 4 For the present invention Figure 1 A schematic flow chart of an embodiment of step S105;
[0070] Figure 5 A schematic diagram of a flow chart of an embodiment of the present invention for performing enhancement processing on an X-ray training image;
[0071] Figure 6 A schematic diagram of the effect of the enhancement process provided by the present invention;
[0072] Figure 7 Another schematic diagram of the effect of the enhancement process provided by the present invention;
[0073] Figure 8 A schematic flow chart of an embodiment of a method for three-dimensional reconstruction of a root canal provided by the present invention;
[0074] Fig. 9 A schematic diagram of the structure of an embodiment of a layered cross section provided by the present invention;
[0075] Fig.10 A schematic diagram of the structure of an embodiment of triangle patch filling provided by the present invention;
[0076] Fig.11 A schematic structural diagram of an embodiment of a root canal segmented by a root canal segmentation method provided by the present invention;
[0077] Fig.12 A schematic structural diagram of an embodiment of the present invention for performing three-dimensional reconstruction on the segmentation result to obtain a three-dimensional root canal;
[0078] Fig.13 A schematic structural diagram of an embodiment of a root canal segmentation device provided by the present invention;
[0079] Fig.14 A schematic structural diagram of an embodiment of a root canal three-dimensional reconstruction device provided by the present invention;
[0080] Fig.15 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0081] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0082] It should be understood that the schematic drawings are not drawn to scale. The flowchart used in the present invention shows the operations implemented according to some embodiments of the present invention. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present invention, can add one or more other operations to the flowchart, and can also remove one or more operations from the flowchart. Some of the block diagrams shown in the accompanying drawings are functional entities, which do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor systems and / or microcontroller systems.
[0083] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0084] The present invention provides a root canal segmentation method, a root canal three-dimensional reconstruction method and a device, which are respectively described below.
[0085] Figure 1 A schematic flow chart of an embodiment of the root canal segmentation method provided by the present invention is shown in FIG. Figure 1 As shown, the root canal segmentation method includes:
[0086] S101, obtaining a plurality of X-ray training images, each of which includes a plurality of calibration feature points;
[0087] S102, determining a shape vector of a root canal in an X-ray training image and a grayscale vector of each calibration feature point based on a plurality of calibration feature points;
[0088] S103, normalizing the shape vector to obtain a statistical average shape model;
[0089] S104, constructing a grayscale feature model based on the grayscale vector, and correcting the grayscale vector based on the grayscale feature model to obtain a corrected grayscale feature;
[0090] S105 , determining the root canals in the to-be-segmented X-ray image based on the statistical average shape model and the modified grayscale features, and segmenting the root canals.
[0091] The multiple X-ray training images in step S101 may be acquired by real-time acquisition and annotation based on an image acquisition device, or may be acquired by calling from a storage medium storing the X-ray training images.
[0092] The shape vector in step S102 refers to a vector composed of the two-dimensional coordinates and the inclination angle of the root canal in the X-ray training image in the image coordinate system.
[0093] Compared with the prior art, the root canal segmentation method provided by the embodiment of the present invention obtains a statistical average shape model by normalizing the shape vector determined by multiple calibrated feature points in the X-ray training image, which can eliminate the image caused by different tooth positions and inclination angles in different X-ray training images on the segmentation results, thereby improving the segmentation accuracy of the root canal segmentation method. In addition, the embodiment of the present invention corrects the grayscale vector through the constructed grayscale feature model to obtain the corrected grayscale feature, and determines the root canal in the X-ray image to be segmented based on the grayscale corrected feature, rather than directly using the grayscale vector to determine the root canal in the X-ray image to be segmented, which can improve the representativeness of the corrected grayscale feature, that is, accurately distinguish the alveolar bone and the tooth including the root canal in the X-ray training image, and realize the accurate segmentation of the root canal in the grayscale similar features, further improving the segmentation accuracy of the root canal segmentation method, which has practical significance and application value for the current root canal preparation surgery.
[0094] In some embodiments of the present invention, Figure 2 As shown, the grayscale vector of each calibrated feature point in step S102 includes:
[0095] S201, determining the normal direction of each calibration feature point, and determining a plurality of sampling points corresponding to the calibration feature point along the normal direction with a preset sampling step size and a preset sampling range;
[0096] S202: Obtain the grayscale value of each sampling point, and construct a grayscale vector based on the grayscale value.
[0097] It should be understood that the preset sampling step size and the preset sampling range can be set according to actual application scenarios and are not specifically limited here.
[0098] In a specific embodiment of the present invention, the grayscale feature model is:
[0099]
[0100]
[0101] g ij =(g ij1 ,g ij2 ,g ij3 ,g ij4 ,...,g ij2m ,g ij2m+1 )
[0102] In the formula, g i 'To correct the grayscale features; is the mean of the grayscale vector; P is S i A vector composed of t eigenvectors of g ij is the grayscale vector of the i-th calibrated feature point of the j-th X-ray training image; Si is the covariance matrix of the grayscale vector; 2m is the number of sampling points; n is the number of X-ray training images; T is the matrix transposition symbol; g ij1 ,g ij2 ,g ij3 ,g ij4 ,...,g ij2m ,g ij2m+1 is the grayscale value of each sampling point corresponding to the i-th calibration feature point of the j-th X-ray training image.
[0103] It should be noted that: from S i The specific process of determining t feature vectors to obtain P is as follows: principal component analysis is used to extract feature vectors, which can achieve data dimensionality reduction while highlighting the local texture features of the calibrated feature points.
[0104] In some embodiments of the present invention, the plurality of X-ray training images include a first X-ray training image, a second X-ray training image, and a third X-ray training image, and the shape vector includes a first vector corresponding to the first X-ray training image, a second vector corresponding to the second X-ray training image, and a third vector corresponding to the third X-ray training image. Figure 3 As shown, step S103 includes:
[0105] S301, aligning the second vector and the third vector with the first vector, and obtaining a second alignment vector and a third alignment vector accordingly;
[0106] S302, determining an average face shape vector of the first vector, the second alignment vector, and the third alignment vector;
[0107] S303, aligning the first vector, the second vector and the third vector with the average face shape vector, and correspondingly obtaining a first adjustment vector, a second adjustment vector and a third adjustment vector;
[0108] S304, determining a first difference between the first adjustment vector and the average face shape vector, a second difference between the second adjustment vector and the average face shape vector, and a third difference between the third adjustment vector and the average face shape vector, and determining whether the first difference, the second difference, and the third difference are all less than a preset difference;
[0109] S305: when the first difference, the second difference and the third difference are all smaller than the preset difference, the average face shape vector is a statistical average shape model;
[0110] S306: When the first difference, the second difference or the third difference is greater than or equal to the preset difference, return to step S302.
[0111] The alignment operations of step S301 and step S303 are: determining the translation amount and the rotation amount based on the difference between the vectors, and performing translation and rotation operations on the vectors based on the translation amount and the rotation amount to achieve alignment.
[0112] In a specific embodiment of the present invention, the average face shape vector is:
[0113]
[0114] In the formula, is the horizontal coordinate value of the average face shape vector in the image coordinate system; i is the horizontal coordinate value of the calibrated feature point in the i-th X-ray training image; m is the total number of X-ray training images; is the ordinate value of the average face shape vector in the image coordinate system; i is the ordinate value of the calibrated feature point in the i-th X-ray training image; θ is the inclination angle of the average face shape vector in the image coordinate system.
[0115] In some embodiments of the present invention, Figure 4 As shown, step S105 includes:
[0116] S401, determining an initial shape of a root canal in the X-ray image to be segmented based on a statistical average shape model;
[0117] S402, determining a plurality of candidate feature points of the initial shape based on a multi-scale scaling strategy, and determining a plurality of local grayscale features of the plurality of candidate feature points;
[0118] S403, determining similarity values between a plurality of candidate feature points and the calibration feature point based on the corrected grayscale feature and a plurality of local grayscale features;
[0119] S404: Taking the candidate feature point with the largest similarity value as the target feature point, the target feature point encloses the root canal.
[0120] The embodiment of the present invention determines multiple candidate feature points of the initial shape through a multi-scale scaling strategy, which can take into account both the efficiency and accuracy of determining the candidate feature points, thereby improving the segmentation efficiency while ensuring the segmentation accuracy.
[0121] Specifically, step S402 is as follows: searching and matching the X-ray image to be segmented on the minimum scale (lower resolution) image so as to quickly locate near the root canal; then, using the current matching shape as the initial matching model for the next enlarged scale (higher resolution) image, gradually narrowing the search range, and continuously improving the matching accuracy of the root canal until the accuracy reaches the accuracy of the X-ray image to be segmented itself.
[0122] Furthermore, after the above specific process is completed, local adjustments can be made on the original image based on experience to determine the final candidate feature points, thereby further ensuring the accuracy of the candidate feature points.
[0123] The specific process of step S401 is: mapping the statistical average shape model to the X-ray image to be segmented by a shape alignment method, that is, overlaying the determined statistical average shape model on the X-ray image to be segmented.
[0124] It should be noted that the similarity value in step S403 refers to the Mahalanobis distance value.
[0125] Since the X-ray training images themselves have many interference noises and a narrow grayscale dynamic change range, the edge of the root canal contour is blurred and difficult to distinguish. In order to more clearly identify and segment the root canal, in some embodiments of the present invention, after acquiring multiple X-ray training images and X-ray images to be segmented, it also includes: enhancing the multiple X-ray training images and the X-ray images to be segmented to improve the accuracy of the grayscale vector and the shape vector, thereby further improving the accuracy of the root canal segmentation.
[0126] In some embodiments of the present invention, the enhancement process includes sharpening the edge of the root canal shape and improving the image contrast. Specifically, taking the enhancement process of multiple X-ray training images as an example, Figure 5 As shown, after step S101, the following further includes:
[0127] S501, performing Laplace transform processing and Sobel operator processing on each X-ray training image, respectively, to obtain a first processed image and a second processed image;
[0128] S502, superimposing the first processed image and the X-ray training image to obtain a sharpened image;
[0129] S503, performing mean filtering on the second processed image to obtain a filtered image;
[0130] S504, multiplying the sharpened image and the filtered image to obtain a masking template;
[0131] S505 , superimposing the masking template and the X-ray training image and performing contrast adaptive histogram equalization processing.
[0132] The embodiment of the present invention performs Laplace transform on the X-ray training image to obtain the first processed image, and then superimposes the first processed image and the X-ray training image to achieve sharpening of the X-ray training image, highlight more details of the edge of the root canal contour, and improve the clarity of the edge of the root canal shape. At the same time, the embodiment of the present invention performs mean filtering on the second processed image, which can retain the edge details after the Sobel operator transformation and reduce interference noise. In addition, after multiplying the sharpened image and the filtered image to obtain a masking template, the masking template and the X-ray training image are superimposed and contrast adaptive histogram equalization is performed, thereby improving the contrast of the X-ray training image, thereby further improving the segmentation accuracy of the root canal.
[0133] In a specific embodiment of the present invention, the Laplace operator used in the Laplace transform process is:
[0134]
[0135] The Sobel operator can realize the gradient transformation of the X-ray training image. Specifically, the Sobel operator can be a horizontal gradient operator or a vertical gradient operator.
[0136] In a specific embodiment of the present invention, Figure 6 As shown in the figure, from left to right are the unprocessed X-ray training image, the image after sharpening, the image after Sobel operator gradient transformation, the image after mean filtering, and the superimposed image after superimposing the mask template and the X-ray training image. Figure 6 It can be seen that after steps S501 to S505, the interference noise is eliminated while the edge features of the X-ray training image are improved.
[0137] In a specific embodiment of the present invention, the contrast adaptive histogram equalization processing in step S505 is specifically as follows: the superimposed image is divided into a plurality of sub-blocks according to the actual aspect ratio of the image, and a histogram equalization processing for limiting the local contrast is performed in each sub-block, so as to avoid excessive deviation between the grayscale with large amplitude value and the original grayscale after being mapped by the mapping function. Limiting the contrast is achieved by suppressing the slope of the cumulative distribution function, where the cumulative distribution function is as follows:
[0138]
[0139] Where s is the cumulative distribution function value; n i The gray level is r i The number of pixels; N is the total number of pixels of the X-ray training image; P r (r) is the gray level r i The pixel probability.
[0140] In a specific embodiment of the present invention, Figure 7 As shown, from left to right are the unprocessed X-ray training image, the image processed by contrast adaptive histogram equalization, and the image processed by all steps S501-S505. Figure 7 It can be seen that the contrast adaptive histogram equalization processing can achieve an approximately uniform distribution of the grayscale levels of the sharpened image, which significantly improves the contrast of the X-ray training image.
[0141] In order to realize the visualization of the root canal surgery process, the present invention also provides a method for three-dimensional reconstruction of the root canal, such as Figure 8 As shown, the root canal three-dimensional reconstruction method includes:
[0142] S801, segmenting the X-ray image based on a root canal segmentation method to obtain the contour of the root canal;
[0143] S802, setting an initial step value, determining a plurality of contour points of the contour line based on the initial step value, and determining a plurality of curvatures of the plurality of contour points;
[0144] S803, determining a target contour point of the contour line based on a plurality of curvatures and contour points;
[0145] S804, determine the target contour point to determine the layered section, and determine the center point position, distance and layer height of the layered section;
[0146] S805, constructing a layered contour line of the layered section with the center point position as the center of the circle;
[0147] S806, collecting a plurality of contour sampling points at equal intervals on the layered contour lines, and performing triangular face filling between adjacent layered contour lines based on the plurality of contour sampling points to obtain a three-dimensional root canal;
[0148] The root canal segmentation method is the root canal segmentation method in any one of the above embodiments.
[0149] The present invention realizes three-dimensional reconstruction of the root canal based on the root canal contour segmented by the root canal segmentation method and utilizes the prior knowledge of the root canal structure to obtain the three-dimensional root canal, which can provide a basis for the visualization process of the root canal surgery and provide online support for the root canal preparation surgery during the operation.
[0150] In some embodiments of the present invention, step S803 includes:
[0151] Determine the mean curvature of multiple curvatures, and determine whether each curvature is less than the mean curvature;
[0152] When the curvature is less than the mean curvature, the contour point is the target contour point; when the curvature is greater than or equal to the mean curvature, a new contour point is added between two adjacent contour points, and the new contour point is the target contour point.
[0153] Specifically, when the curvature is less than the curvature threshold, this area is the straight section of the root canal; when the curvature is greater than or equal to the curvature threshold, this area is the curved section of the root canal. By setting it to add new contour points to the curved section of the root canal, that is, realizing variable step sampling, it can better adapt to the shape characteristics of the root canal and improve the accuracy of determining the target contour points.
[0154] In a specific embodiment of the present invention, step S805 is specifically as follows: using a row scan line to collect the coordinates of the target contour points, and calculating the distance between these contour points and the center point position (which can be regarded as the cross-sectional diameter and center of the root canal in the horizontal transverse section), and then based on the transformation relationship between pixels and actual sizes, transforming the image pixel measurement into the actual size measurement.
[0155] In a specific embodiment of the present invention, Fig. 9 As shown, the horizontal lines are scan lines. Fig. 9 Four target contour points are marked in the figure: (x i-1l ,y i-1 )、(x i-1r ,y i-1 )、(x il ,y i )、(x ir ,y i ), (x i-1l ,y i-1 )、(x i-1r ,y i-1 ) is the same layered section, (x i-l ,y i )、(x ir ,y i ) is the same layered section, with (x il ,y i )、(x ir ,y i ) as an example, the calculation formulas for the center point position, distance and layer height are as follows:
[0156]
[0157] In the formula, x ic is the center point position; d is the distance; h is the distance i is the layer height; y0 is the ordinate value of the apical foramen.
[0158] It should be noted that: adjacent layered contour lines have certain geometric shape similarities, then step S806 is specifically: n contour points are collected at equal intervals on each layered contour line, and the same layered contour point set can be expressed as P = {P1, P2, P3, ..., Pn}, and the points on adjacent layered contour lines correspond to each other, and then triangular facets are constructed between these contour points. For contour points with matching subscripts, they are connected in sequence to form independent facets between adjacent layer contour lines.
[0159] like Fig.10 As shown, point P i , P i+1 With Q i , Q i+1 is the corresponding contour point on the adjacent layered contour line, P i Q i Q i+1 P i+1 Composed of quadrilateral patches, connecting P i , Q i+ 1 Two contour points divide the quadrilateral patch into two triangular patches P i Q i+1 P i+1 and P i Q i Q i+1 All triangular facets are drawn in sequence between the contour lines of adjacent layers to achieve three-dimensional reconstruction of the root canal.
[0160] In a specific embodiment of the present invention, Fig.11 and Fig.12 As shown, Fig.11 It is the root canal segmented by the root canal segmentation method. Fig.12 For Fig.11 The segmentation results are used to perform three-dimensional reconstruction to obtain the three-dimensional root canal.
[0161] In order to better implement the root canal segmentation method in the embodiment of the present invention, based on the root canal segmentation method, the embodiment of the present invention also provides a root canal segmentation device, such as Fig.13 As shown, the root canal segmentation device 1300 includes:
[0162] The training image acquisition unit 1301 is used to acquire a plurality of X-ray training images, each of which includes a plurality of calibration feature points;
[0163] A vector determination unit 1302, for determining a shape vector of a root canal in an X-ray training image based on a plurality of calibration feature points, and determining a grayscale vector of each calibration feature point;
[0164] A normalization processing unit 1303 is used to perform normalization processing on the shape vector to obtain a statistical average shape model;
[0165] A grayscale vector correction unit 1304 is used to construct a grayscale feature model based on the grayscale vector, and to correct the grayscale vector based on the grayscale feature model to obtain a corrected grayscale feature;
[0166] The root canal segmentation unit 1305 is used to determine the root canals in the to-be-segmented X-ray image based on the statistical average shape model and the modified grayscale features, and segment the root canals.
[0167] The root canal segmentation device 1300 provided in the above embodiment can implement the technical solution described in the above root canal segmentation method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above root canal segmentation method embodiment, which will not be repeated here.
[0168] In order to better implement the root canal 3D reconstruction method in the embodiment of the present invention, based on the root canal 3D reconstruction method, the embodiment of the present invention also provides a root canal 3D reconstruction device, such as Fig.14 As shown, the root canal three-dimensional reconstruction device 1400 includes:
[0169] A contour line determination unit 1401 is used to segment the X-ray image based on a root canal segmentation method to obtain a contour line of the root canal;
[0170] The curvature determination unit 1402 is used to set an initial step value, determine a plurality of contour points of the contour line based on the initial step value, and determine a plurality of curvatures of the plurality of contour points;
[0171] A target contour point determination unit 1403, configured to determine a target contour point of a contour line based on a plurality of curvatures and contour points;
[0172] The layered profile determination unit 1404 is used to determine the layered profile by determining the target contour point, and determine the center point position, distance and layer height of the layered profile;
[0173] A layered contour line determination unit 1405 is used to construct a layered contour line of the layered section with the center point position as the center of the circle;
[0174] A three-dimensional root canal reconstruction unit 1406 is used to collect multiple contour sampling points at equal intervals on the layered contour line, and fill the triangles between adjacent layered contour lines based on the multiple contour sampling points to obtain a three-dimensional root canal;
[0175] The root canal segmentation method is the root canal segmentation method in any one of the above embodiments.
[0176] The root canal 3D reconstruction device 1400 provided in the above embodiment can implement the technical solution described in the above root canal 3D reconstruction method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above root canal 3D reconstruction method embodiment, which will not be repeated here.
[0177] like Fig.15 As shown, the present invention also provides an electronic device 1500. The electronic device 1500 includes a processor 1501, a memory 1502 and a display 1503. Fig.15 Only some components of the electronic device 1500 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0178] In some embodiments, the processor 1501 can be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 1502, such as the root canal segmentation method and / or the root canal three-dimensional reconstruction method in the present invention.
[0179] In some embodiments of the present invention, processor 1501 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, processor 1501 may be local or remote. In some embodiments, processor 1501 may be implemented in a cloud platform. In one embodiment, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.
[0180] In some embodiments, the memory 1502 may be an internal storage unit of the electronic device 1500, such as a hard disk or memory of the electronic device 1500. In other embodiments, the memory 1502 may also be an external storage device of the electronic device 1500, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1500.
[0181] Furthermore, the memory 1502 may include both an internal storage unit of the electronic device 1500 and an external storage device. The memory 1502 is used to store application software installed in the electronic device 1500 and various data.
[0182] In some embodiments, the display 1503 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 1503 is used to display information of the electronic device 1500 and to display a visual user interface. The components 1501-1503 of the electronic device 1500 communicate with each other via a system bus.
[0183] In some embodiments of the present invention, when the processor 1501 executes the root canal segmentation program in the memory 1502, the following steps may be implemented:
[0184] Acquire a plurality of X-ray training images, each of which includes a plurality of calibration feature points;
[0185] Determine a shape vector of a root canal in an X-ray training image and a grayscale vector of each calibration feature point based on a plurality of calibration feature points;
[0186] Normalizing the shape vector to obtain a statistical average shape model;
[0187] A grayscale feature model is constructed based on the grayscale vector, and the grayscale vector is corrected based on the grayscale feature model to obtain a corrected grayscale feature;
[0188] The root canals in the to-be-segmented X-ray image are determined based on the statistical mean shape model and the modified grayscale features, and the root canals are segmented.
[0189] In some embodiments of the present invention, when the processor 1501 executes the root canal three-dimensional reconstruction program in the memory 1502, the following steps may be implemented:
[0190] Segment the X-ray image based on the root canal segmentation method to obtain the contour of the root canal;
[0191] An initial step value is set, a plurality of contour points of the contour line are determined based on the initial step value, and a plurality of curvatures of the plurality of contour points are determined;
[0192] determining a target contour point of the contour line based on the plurality of curvatures and the contour points;
[0193] Determine the target contour point to determine the layered section, and determine the center point position, distance and layer height of the layered section;
[0194] Constructing the layered contour line of the layered section with the center point as the center of the circle;
[0195] A plurality of contour sampling points are collected at equal intervals on the layered contour line, and triangular patches are filled between adjacent layered contour lines based on the plurality of contour sampling points to obtain a three-dimensional root canal.
[0196] It should be understood that: when the processor 1501 executes the root canal segmentation program and / or the root canal 3D reconstruction program in the memory 1502, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiments above.
[0197] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 1500 mentioned, and the electronic device 1500 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 1500 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0198] Correspondingly, an embodiment of the present invention also provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, it can implement the steps or functions of the root canal segmentation method and / or the root canal three-dimensional reconstruction method provided in the above-mentioned method embodiments.
[0199] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium. The computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0200] The root canal segmentation method, root canal three-dimensional reconstruction method and device provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A root canal segmentation method, It is characterized in that include: Acquire a plurality of X-ray training images, each of the X-ray training images comprising a plurality of calibrated feature points; Determine a shape vector of the root canal in the X-ray training image and a grayscale vector of each of the calibration feature points based on the multiple calibration feature points; Normalizing the shape vector to obtain a statistical average shape model; Constructing a grayscale feature model based on the grayscale vector, and correcting the grayscale vector based on the grayscale feature model to obtain a corrected grayscale feature; Determine the root canal in the to-be-segmented X-ray image based on the statistical average shape model and the corrected grayscale feature, and segment the root canal; The step of determining the grayscale vector of each of the calibrated feature points comprises: Determine the normal direction of each of the calibrated feature points, and determine a plurality of sampling points corresponding to the calibrated feature points along the normal direction with a preset sampling step size and a preset sampling range; Obtaining the grayscale value of each of the sampling points, and constructing the grayscale vector based on the grayscale value; The grayscale feature model is: In the formula, To correct the grayscale features; is the mean of the grayscale vector; for A vector composed of t eigenvectors of ; For the j X-ray training image i Grayscale vector of calibrated feature points; is the covariance matrix of the grayscale vector; 2m is the number of sampling points; n The number of X-ray training images; T is the matrix transpose symbol; For the j X-ray training image i The grayscale value of each sampling point corresponding to the calibration feature point.
2. The root canal segmentation method according to claim 1, It is characterized in that The multiple X-ray training images include a first X-ray training image, a second X-ray training image, and a third X-ray training image, and the shape vector includes a first vector corresponding to the first X-ray training image, a second vector corresponding to the second X-ray training image, and a third vector corresponding to the third X-ray training image, and the normalizing the shape vector to obtain a statistical average shape model includes: Step 1: align the second vector and the third vector with the first vector to obtain a second alignment vector and a third alignment vector respectively; Step 2: determining an average face shape vector of the first vector, the second alignment vector and the third alignment vector; Step 3: align the first vector, the second vector and the third vector with the average face shape vector, and obtain a first adjustment vector, a second adjustment vector and a third adjustment vector accordingly; Step 4: determining a first difference between the first adjustment vector and the average face shape vector, a second difference between the second adjustment vector and the average face shape vector, and a third difference between the third adjustment vector and the average face shape vector, and determining whether the first difference, the second difference, and the third difference are all less than a preset difference; Step 5: When the first difference, the second difference and the third difference are all smaller than a preset difference, the average face shape vector is the statistical average shape model; Step six: when the first difference, the second difference or the third difference is greater than or equal to a preset difference, return to step two.
3. The root canal segmentation method according to claim 1, It is characterized in that The method of determining the root canal in the to-be-segmented X-ray image based on the statistical average shape model and the corrected grayscale feature comprises: Determining an initial shape of the root canal in the to-be-segmented X-ray image based on the statistical average shape model; Determine a plurality of candidate feature points of the initial shape based on a multi-scale scaling strategy, and determine a plurality of local grayscale features of the plurality of candidate feature points; Determining similarity values between the plurality of candidate feature points and the calibrated feature points based on the corrected grayscale feature and the plurality of local grayscale features; The candidate feature point with the largest similarity value is used as the target feature point, and the target feature point encloses the root canal.
4. The root canal segmentation method according to claim 1, It is characterized in that After acquiring a plurality of X-ray training images, the method further includes: Performing Laplace transform processing and Sobel operator processing on each of the X-ray training images to obtain a first processed image and a second processed image respectively; Superimposing the first processed image with the X-ray training image to obtain a sharpened image; performing mean filtering on the second processed image to obtain a filtered image; Multiplying the sharpened image and the filtered image to obtain a masking template; The masking template and the X-ray training image are superimposed and subjected to contrast adaptive histogram equalization processing.
5. A method for three-dimensional reconstruction of root canals, It is characterized in that include: Segment the X-ray image based on the root canal segmentation method to obtain the contour of the root canal; Setting an initial step value, determining a plurality of contour points of the contour line based on the initial step value, and determining a plurality of curvatures of the plurality of contour points; determining a target contour point of the contour line based on the plurality of curvatures and the contour point; Determine the target contour point to determine the layered section, and determine the center point position, distance and layer height of the layered section; Constructing a layered contour line of the layered section with the center point position as the center of the circle; Collecting a plurality of contour sampling points at equal intervals on the layered contour lines, and performing triangular facet filling between adjacent layered contour lines based on the plurality of contour sampling points to obtain a three-dimensional root canal; Wherein, the root canal segmentation method is the root canal segmentation method according to any one of claims 1 to 4.
6. The method for three-dimensional reconstruction of a tooth root canal according to claim 5, It is characterized in that The step of determining a target contour point of the contour line based on the plurality of curvatures and the contour points comprises: Determine a mean curvature of the plurality of curvatures, and determine whether each curvature is smaller than the mean curvature; When the curvature is less than the mean curvature, the contour point is the target contour point; When the curvature is greater than or equal to the curvature mean, a new contour point is added between two adjacent contour points, and the new contour point is the target contour point.
7. A root canal segmentation device, It is characterized in that include: A training image acquisition unit, used to acquire a plurality of X-ray training images, each of which includes a plurality of calibration feature points; A vector determination unit, configured to determine a shape vector of a root canal in the X-ray training image based on the plurality of calibration feature points, and to determine a grayscale vector of each of the calibration feature points; A normalization processing unit, used for performing normalization processing on the shape vector to obtain a statistical average shape model; A grayscale vector correction unit, used for constructing a grayscale feature model based on the grayscale vector, and correcting the grayscale vector based on the grayscale feature model to obtain a corrected grayscale feature; A root canal segmentation unit, used for determining the root canal in the to-be-segmented X-ray image based on the statistical average shape model and the corrected grayscale feature, and segmenting the root canal; The step of determining the grayscale vector of each of the calibrated feature points comprises: Determine the normal direction of each of the calibrated feature points, and determine a plurality of sampling points corresponding to the calibrated feature points along the normal direction with a preset sampling step size and a preset sampling range; Obtaining the grayscale value of each of the sampling points, and constructing the grayscale vector based on the grayscale value; The grayscale feature model is: In the formula, To correct the grayscale features; is the mean of the grayscale vector; for A vector composed of t eigenvectors of ; For the j X-ray training image i Grayscale vectors of calibrated feature points; is the covariance matrix of the grayscale vector; 2m is the number of sampling points; n The number of X-ray training images; T is the matrix transpose symbol; For the j X-ray training image i The grayscale value of each sampling point corresponding to the calibration feature point.
8. A three-dimensional reconstruction device for root canals, It is characterized in that include: A contour line determination unit, used for segmenting the X-ray image based on a root canal segmentation method to obtain a contour line of the root canal; a curvature determination unit, configured to set an initial step value, determine a plurality of contour points of the contour line based on the initial step value, and determine a plurality of curvatures of the plurality of contour points; a target contour point determination unit, configured to determine a target contour point of the contour line based on the plurality of curvatures and the contour point; A layered profile determination unit, used to determine the target contour point to determine the layered profile, and determine the center point position, distance and layer height of the layered profile; A layered contour line determination unit, used for constructing a layered contour line of the layered section with the center point position as the center of the circle; A three-dimensional root canal reconstruction unit, used for collecting a plurality of contour sampling points at equal intervals on the layered contour line, and performing triangular facet filling between adjacent layered contour lines based on the plurality of contour sampling points to obtain a three-dimensional root canal; Wherein, the root canal segmentation method is the root canal segmentation method according to any one of claims 1 to 4.
Citation Information
Patent Citations
ASM positioning algorithm based on feature point expansion and PCA feature extraction
CN103839050A
Medical image Graph Cut segmentation method based on statistical shape model
CN106485695A
