A method and system for automatically extracting denture cervical margin line

By acquiring teeth and gum surface images from different angles, analyzing the edge shape and pixel point distribution, and eliminating light spot interference, a more accurate extraction of the denture neck edge line is achieved, and the quality problem of the denture model caused by light reflection interference is solved.

CN118397026BActive Publication Date: 2024-09-06SHENZHEN JIAHONG DENTAL MEDICAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410813687.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-06
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

In the existing technology, there is light reflection interference in the segmentation and extraction of the denture neck edge line of the gingival margin in oral images, resulting in poor denture model production quality.

Method used

Obtain surface images of teeth and gums from different angles, obtain edge images through edge detection algorithms, analyze edge shape characteristics and pixel distribution, combine neighborhood edge distribution, calculate the degree of neck edge line features, eliminate light spot interference, mark and perform three-dimensional reconstruction .

Benefits of technology

It improves the accuracy of segmentation and extraction of denture neck edge lines and ensures the production quality of denture models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397026B
    Figure CN118397026B
Patent Text Reader

Abstract

The present invention relates to the technical field of image data processing, and in particular to a method and system for automatically extracting a denture neck margin line. The method takes surface images including teeth and gums from different angles to obtain edge images corresponding to each surface image; for any edge image, at least one suspected neck margin line edge in the edge image is obtained according to the shape characteristics of each edge in the edge image; for any suspected neck margin line edge, the neck margin line feature degree of the suspected neck margin line edge is obtained according to the pixel point distribution and the neighborhood edge distribution on the suspected neck margin line edge, and the neck margin line edge in the edge image is obtained according to the neck margin line feature degree of each suspected neck margin line edge; the neck margin line edges in all edge images are marked, and three-dimensional reconstruction of the denture is performed according to the marked edge images, thereby eliminating the interference of light spots on the extraction of the denture neck margin line, so as to extract a more accurate denture neck margin line.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image data processing, and in particular to a method and system for automatically extracting a denture neck margin line. Background Art

[0002] In modern dentistry, digital impression-taking methods are becoming more and more popular, especially in complex restorations and aesthetic restorations, where the advantages of digital technology are more obvious. Dental clinics and laboratories are gradually turning from traditional impression materials to digital impression-taking to improve efficiency and patient satisfaction. Among them, the photographic measurement method is one of the digital impression-taking techniques. It takes images of teeth and gums from multiple angles and uses computer software for three-dimensional reconstruction to produce a denture model. Extracting the denture neck margin line is an important step in the denture production process, which involves precise measurement and model production of teeth and gums. Therefore, it is necessary to extract the gum part of each oral image separately for further refined modeling.

[0003] In the prior art, edge detection algorithms are usually used to segment and extract the denture neck margin line of the gingival edge in the oral image. However, since the environment in which the oral images are shot and collected requires high lighting, the light easily forms reflective spots on the tooth surface, resulting in deviations in the segmentation and extraction of the denture neck margin line, which in turn makes the production quality of the denture model poor.

[0004] Therefore, how to improve the segmentation and extraction effect of the denture neck edge line of the gingival margin in the oral image to ensure the production quality of the denture model has become an urgent problem to be solved. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method and system for automatically extracting the denture neck margin line to solve the problem of how to improve the segmentation and extraction effect of the denture neck margin line of the gingival edge in the oral image to ensure the production quality of the denture model.

[0006] In a first aspect, an embodiment of the present invention provides a method for automatically extracting a denture neck margin line, the method comprising the following steps:

[0007] Acquire surface images including teeth and gums from different angles, perform edge detection on the grayscale image of each surface image, and obtain an edge image corresponding to each surface image;

[0008] For any edge image, according to the shape feature of each edge in the edge image, the shape feature degree of the corresponding edge belonging to the arc edge is obtained, and according to the shape feature degree of each edge in the edge image belonging to the arc edge, at least one suspected neck margin line edge in the edge image is obtained;

[0009] For any suspected neck edge, according to the pixel distribution and the neighborhood edge distribution on the suspected neck edge, the neck feature degree of the suspected neck edge is obtained, and according to the neck feature degree of each suspected neck edge, the neck edge in the edge image is obtained;

[0010] The cervical margin line edges in all edge images are marked, and the three-dimensional reconstruction of the denture is performed based on the marked edge images.

[0011] Preferably, obtaining the degree to which the shape feature of the corresponding edge belongs to an arc edge according to the shape feature of each edge in the edge image comprises:

[0012] For any edge in the edge image, counting the total number of pixels on the edge, normalizing the total number of pixels to obtain a corresponding normalized value;

[0013] Obtaining the slope value between every two adjacent pixel points on the edge to obtain the absolute value of the sum of the slope values, obtaining the absolute value of the difference between every two adjacent slope values ​​according to the slope value between every two adjacent pixel points on the edge to obtain the sum of the absolute values ​​of the differences, obtaining the product of the absolute value of the sum of the slope values ​​and the sum of the absolute values ​​of the differences, substituting the negative number of the product into an exponential function with a natural constant as the base to obtain a corresponding function value;

[0014] The addition result between the normalized value and the function value is used as the shape feature degree of the edge belonging to the arc edge.

[0015] Preferably, obtaining at least one suspected neck margin line edge in the edge image according to the shape feature degree of each edge in the edge image belonging to an arc edge comprises:

[0016] A preset shape feature degree threshold is obtained, and if the shape feature degree of any edge in the edge image belonging to an arc edge is greater than or equal to the shape feature degree threshold, the edge is determined to be a suspected neck margin line edge.

[0017] Preferably, the step of obtaining the degree of neck edge characteristics of the edge of the suspected neck edge according to the pixel point distribution and the neighborhood edge distribution on the edge of the suspected neck edge includes:

[0018] According to the slope value of each pixel point on the edge of the suspected neck margin line, the number of consecutive pixel points under any same slope value is obtained as the chain length to obtain at least one chain length, and a quadratic operation is performed on each of the chain lengths to obtain a corresponding quadratic result, and an average operation is performed on all quadratic results to obtain the inverse of the corresponding average value;

[0019] According to a preset number of segmentation segments, the edge of the suspected neck edge line is evenly segmented to obtain corresponding segmentation nodes, and the nearest distance of each segmentation node is obtained according to the distance between each segmentation node and each other edge in the edge image, and the nearest distance variance is obtained according to the nearest distances of all segmentation nodes;

[0020] According to the shortest distance of each segmentation node, the nearest neighbor edge of each segmentation node is obtained, the minimum circumscribed rectangle containing the nearest neighbor edges of all segmentation nodes is obtained, and the area of ​​the minimum circumscribed rectangle is obtained;

[0021] For any nearest neighbor edge in the minimum bounding rectangle, obtain the nearest edge of the nearest neighbor edge in the minimum bounding rectangle, obtain the distance between the nearest neighbor edge and the nearest edge as the nearest neighbor distance of the nearest neighbor edge, and obtain the cumulative sum of the nearest neighbor distances of each nearest neighbor edge in the minimum bounding rectangle;

[0022] A multiplication result of the nearest variance, the area and the accumulated sum is obtained, and a sum of the reciprocal of the multiplication result and the reciprocal of the average value is used as the neck margin line feature degree of the suspected neck margin line edge.

[0023] Preferably, acquiring the neck margin edge in the edge image according to the neck margin feature degree of each of the suspected neck margin edges comprises:

[0024] A preset neck margin line feature degree threshold is obtained, and if the neck margin line feature degree of any suspected neck margin line edge is greater than or equal to the neck margin line feature degree threshold, the suspected neck margin line edge is determined to be the neck margin line edge in the edge image.

[0025] Preferably, performing edge detection on the grayscale image of each of the surface images to obtain an edge image corresponding to each of the surface images includes:

[0026] The canny operator is used to perform edge detection on the grayscale image of each surface image to obtain an edge image corresponding to each surface image.

[0027] In a second aspect, an embodiment of the present invention provides a system for automatically extracting the denture neck margin line, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, it implements a method for automatically extracting the denture neck margin line as described in the first aspect.

[0028] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0029] The present invention takes surface images including teeth and gums from different angles, performs edge detection on the grayscale image of each of the surface images, and obtains an edge image corresponding to each of the surface images; for any edge image, obtains the shape feature degree of the corresponding edge belonging to the arc edge according to the shape feature of each edge in the edge image, and obtains at least one suspected neck margin line edge in the edge image according to the shape feature degree of each edge in the edge image belonging to the arc edge; for any suspected neck margin line edge, obtains the neck margin line feature degree of the suspected neck margin line edge according to the pixel point distribution and the neighborhood edge distribution on the suspected neck margin line edge, and obtains the neck margin line edge in the edge image according to the neck margin line feature degree of each of the suspected neck margin line edges; marks the neck margin line edges in all edge images, and performs three-dimensional reconstruction of the denture according to the marked edge images. Among them, the edge shape of each edge in any edge image is analyzed to obtain the suspected neck margin edge, and the internal change characteristics of the suspected neck margin edge and the neighborhood edge distribution characteristics are further combined. The neck margin feature degree of each suspected neck margin edge is obtained through the difference between the neck margin line and the light spot edge, thereby eliminating the interference of the light spot on the denture neck margin extraction, obtaining a more accurate neck margin edge extraction result, and then ensuring the subsequent production quality of the denture model based on the extracted denture neck margin line. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative labor.

[0031] Figure 1 This is a method flow chart of a method for automatically extracting the denture neck edge line provided by the first embodiment of the present invention.

[0032] Figure 2 is a schematic diagram of a grayscale image including teeth and gums provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0033] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, but should not be understood as limiting the present disclosure.

[0034] It should be noted that the terms "first", "second", etc. in the specification of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure.

[0035] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.

[0036] The specific scenario targeted by the present invention is: when taking a photo of the oral cavity of a patient who needs to replace bad teeth and fit dentures, and performing edge segmentation on the photographed image to extract the denture neck margin line, since strong light exposure is required in the shooting environment, light spot interference will be formed on the tooth surface, resulting in inaccurate extraction results of the denture neck margin line by traditional edge detection algorithms.

[0037] See also Figure 1 , is a method flow chart of a method for automatically extracting the denture neck margin line provided in the first embodiment of the present invention, such as Figure 1 As shown, the method may include:

[0038] Step S101 , acquiring surface images including teeth and gums from different angles, performing edge detection on the grayscale image of each surface image, and obtaining an edge image corresponding to each surface image.

[0039] Use a high-resolution camera to capture surface images of teeth and gums from different angles, ensuring that the surface images at all angles can cover the target area and that the ambient light has a certain intensity. For each surface image, first perform grayscale processing on the surface image to obtain the corresponding grayscale image, such as Figure 2 As shown, the canny operator edge detection algorithm is then used to extract the edge in the grayscale image to obtain the corresponding edge image. It is worth noting that the grayscale processing and the canny operator belong to the prior art and will not be described here.

[0040] At this point, the edge image corresponding to the surface image at each shooting angle is obtained.

[0041] Step S102, for any edge image, according to the shape features of each edge in the edge image, obtain the shape feature degree of the corresponding edge belonging to the arc edge, and according to the shape feature degree of each edge in the edge image belonging to the arc edge, obtain at least one suspected neck margin line edge in the edge image.

[0042] The edges obtained by the canny operator edge detection algorithm contain many background and noise edges. Therefore, the background and noise edges are first screened out to obtain the suspected edges with the characteristics of the neck edge line trend. Considering that the main trend of the denture neck edge line fits the part where the gums and teeth meet, it is in the form of an arc when observed from multiple directions. At the same time, due to the natural distribution of the gums, the arc has a certain symmetry; and in the edge image, compared with the edges of other tissues and noise edges in the oral background, the continuity of the denture neck edge line is stronger. Therefore, the edge shape characteristics of the neck edge line of each edge in each edge image are analyzed comprehensively from two aspects.

[0043] For any edge image, according to the shape feature of each edge in the edge image, the shape feature degree of the corresponding edge belonging to the arc edge is obtained, and the specific acquisition process is as follows:

[0044] For any edge in the edge image, counting the total number of pixels on the edge, normalizing the total number of pixels to obtain a corresponding normalized value;

[0045] Obtaining the slope value between every two adjacent pixel points on the edge to obtain the absolute value of the sum of the slope values, obtaining the absolute value of the difference between every two adjacent slope values ​​according to the slope value between every two adjacent pixel points on the edge to obtain the sum of the absolute values ​​of the differences, obtaining the product of the absolute value of the sum of the slope values ​​and the sum of the absolute values ​​of the differences, substituting the negative number of the product into an exponential function with a natural constant as the base to obtain a corresponding function value;

[0046] The addition result between the normalized value and the function value is used as the shape feature degree of the edge belonging to the arc edge.

[0047] In one embodiment, taking the pth edge in any edge image as an example, each slope value on the pth edge is set to be the slope value between the current pixel point and the next pixel point, and the calculation expression of the shape feature degree of the pth edge belonging to the arc edge is:

[0048]

[0049] in, Indicates the shape feature degree of the pth edge belonging to the arc edge, norm() represents the normalization function, represents the total number of pixels on the pth edge, exp() represents an exponential function with a natural constant as the base, represents the i-th slope value on the p-th edge, || represents the absolute value sign, Represents the i+1th slope value on the pth edge.

[0050] It should be noted that The larger the value, the more pixels there are on the pth edge, the stronger the continuity of the edge, the more consistent with the shape characteristics of the neck edge line, and the greater the shape characteristics of the pth edge belonging to the arc edge; there is a slope value between two adjacent pixels on the pth edge, corresponding to the existence of Slope value, because the shape of the neck edge line is a symmetrical arc, therefore, the slope value is accumulated The closer it is to 0, the more it has the shape characteristics of the neck edge line. The absolute value of the accumulated slope value The smaller the positive value is (that is, the closer it is to 0), the stronger the shape feature of the neck edge of the pth edge is, and the greater the shape feature of the pth edge belonging to the arc edge is; The smaller the value of , the smaller the change of each part in the p-th edge is, and the more it conforms to the shape characteristics of the arc edge. The corresponding p-th edge has a greater degree of shape characteristics of the arc edge.

[0051] Similarly, the degree to which each edge in the edge image belongs to an arc edge is obtained, and then according to the degree to which each edge in the edge image belongs to an arc edge, at least one suspected neck margin line edge in the edge image is obtained. The specific method is: obtain a preset shape feature degree threshold, and if the degree to which any edge in the edge image belongs to an arc edge is greater than or equal to the shape feature degree threshold, then the edge is determined to be a suspected neck margin line edge.

[0052] In one embodiment, the shape feature degree threshold is set to 0.6. When the shape feature degree of the pth edge in the edge image that belongs to the arc edge is greater than or equal to 0.6, it means that the pth edge meets the neck margin line shape feature. Therefore, the pth edge is marked as a suspected neck margin line edge. Similarly, all suspected neck margin line edges in the edge image are obtained.

[0053] At this point, all the suspected neck margin edges in the edge image are obtained.

[0054] Step S103, for any suspected neck edge, according to the pixel point distribution and the neighborhood edge distribution on the suspected neck edge, the neck feature degree of the suspected neck edge is obtained, and according to the neck feature degree of each suspected neck edge, the neck edge in the edge image is obtained.

[0055] In strong light environments, the light spots reflected from the tooth surface may also have symmetrical arc-shaped light spot edges. Therefore, after obtaining the suspected neck margin edge in the edge image, it is necessary to further analyze the edge internal and neighborhood features to eliminate the interference of the light spot edges of the teeth under the lighting environment on the denture neck margin extraction results.

[0056] In terms of the internal edge, the edge of the denture cervical margin line is located at the gingival edge and shows diffuse reflection under light, so the internal pixel points of the denture cervical margin line vary greatly in details and are not smooth. On the contrary, the tooth surface material is harder and has rigid characteristics in the edge details under light, and the pixels will show a smooth arrangement in many places; in terms of the external neighborhood of the edge, by analyzing the distribution characteristics of other edges in the edge neighborhood, the other edges around the gingival edge are dense light points generated by light, so the pixel points of the neighborhood edge of the gingival edge are more densely distributed, and are distributed in a more evenly distributed small dot shape near the cervical margin line; while there are more concave and convex edges and lines on the tooth surface, and the other edges around them are distributed at different distances under the influence of light, which is relatively chaotic and discrete.

[0057] For any suspected neck edge in the edge image, the neck feature degree of the suspected neck edge is obtained according to the pixel distribution on the suspected neck edge and the neighborhood edge distribution. The specific acquisition process is as follows:

[0058] According to the slope value of each pixel point on the edge of the suspected neck margin line, the number of consecutive pixel points under any same slope value is obtained as the chain length to obtain at least one chain length, and a quadratic operation is performed on each of the chain lengths to obtain a corresponding quadratic result, and an average operation is performed on all quadratic results to obtain the inverse of the corresponding average value;

[0059] According to a preset number of segmentation segments, the edge of the suspected neck edge line is evenly segmented to obtain corresponding segmentation nodes, and the nearest distance of each segmentation node is obtained according to the distance between each segmentation node and each other edge in the edge image, and the nearest distance variance is obtained according to the nearest distances of all segmentation nodes;

[0060] According to the shortest distance of each segmentation node, the nearest neighbor edge of each segmentation node is obtained, the minimum circumscribed rectangle containing the nearest neighbor edges of all segmentation nodes is obtained, and the area of ​​the minimum circumscribed rectangle is obtained;

[0061] For any nearest neighbor edge in the minimum bounding rectangle, obtain the nearest edge of the nearest neighbor edge in the minimum bounding rectangle, obtain the distance between the nearest neighbor edge and the nearest edge as the nearest neighbor distance of the nearest neighbor edge, and obtain the cumulative sum of the nearest neighbor distances of each nearest neighbor edge in the minimum bounding rectangle;

[0062] A multiplication result of the nearest variance, the area and the accumulated sum is obtained, and a sum of the reciprocal of the multiplication result and the reciprocal of the average value is used as the neck margin line feature degree of the suspected neck margin line edge.

[0063] In one embodiment, taking the qth suspected neck edge in the edge image as an example, the qth suspected neck edge is evenly divided into -1 segment, corresponding to split nodes, preferably, If 10 is the value of the j-th segmentation node, the shortest distance of the j-th segmentation node is obtained based on the distance between the j-th segmentation node and each other edge in the edge image (except the q-th suspected neck edge). , similarly, the shortest distance of all segmentation nodes is obtained, and the variance of the shortest distance is calculated At the same time, the edge corresponding to the nearest distance of each split node is used as the nearest neighbor edge of each split node, and then the minimum enclosing rectangle containing the nearest neighbor edges of all split nodes is obtained to obtain the area S of the minimum enclosing rectangle. In the minimum enclosing rectangle, for the i-th nearest neighbor edge, the edge closest to the i-th nearest neighbor edge is obtained, recorded as the nearest edge of the i-th nearest neighbor edge, and the distance between the i-th nearest neighbor edge and its nearest edge is obtained, recorded as the nearest neighbor distance , so that the nearest neighbor distance of each nearest neighbor edge can be obtained.

[0064] There is a slope value between every two pixels on the edge of the qth suspected neck edge line. According to all slope values, the number of continuous pixels corresponding to any slope value is obtained and recorded as the length of a chain. , corresponding to Chain length. The variance of the chain length and the closest distance , the area S of the minimum circumscribed rectangle and the nearest neighbor distance of each nearest neighbor edge in the minimum circumscribed rectangle, and obtain the neck margin feature degree of the qth suspected neck margin edge, wherein the calculation expression of the neck margin feature degree of the qth suspected neck margin edge is:

[0065]

[0066] in, Indicates the degree of the neck margin feature of the qth suspected neck margin edge, represents the number of chains on the edge of the qth suspected neck line, represents the length of the i-th chain on the edge of the q-th suspected neck margin line, represents the variance of the closest distance, S represents the area of ​​the minimum enclosing rectangle, represents the nearest neighbor distance of the ith nearest neighbor edge, Represents the number of segmentation nodes on the edge of the qth suspected neck margin line.

[0067] It should be noted that It is used to improve the contribution of chain length to the neck edge line feature. The longer the chain length, the higher the continuity of the pixel points with the same slope of the chain. The smaller the value is, the larger the mean value of the chain length is, which is more consistent with the smooth edge caused by the rigid characteristics of the tooth part, and less consistent with the characteristics of the cervical margin line. The corresponding qth suspected cervical margin line has a smaller degree of cervical margin line characteristics. The smaller the value is, the more similar and uniform the distribution of other edges near the edge of the qth suspected neck margin line is, and the more consistent it is with the edge distribution characteristics around the neck margin line. The greater the degree of neck margin characteristics of the qth suspected neck margin line is. The smaller the area S is, the more concentrated the distribution of other edges near the edge of the qth suspected neck margin line is, and the more consistent it is with the edge distribution characteristics around the neck margin line. The smaller the value is, the denser the distribution of other edges near the edge of the qth suspected neck margin line is, and the more consistent it is with the edge neighborhood characteristic distribution of the neck margin line. The greater the degree of neck margin line characteristics of the edge of the qth suspected neck margin line is.

[0068] Similarly, the neck margin line feature degree of each suspected neck margin line edge in the edge image is obtained, and then the neck margin line edge in the edge image is obtained according to the neck margin line feature degree of each suspected neck margin line edge. The specific acquisition method is: obtain a preset neck margin line feature degree threshold. If the neck margin line feature degree of any suspected neck margin line edge is greater than or equal to the neck margin line feature degree threshold, then the suspected neck margin line edge is determined to be the neck margin line edge in the edge image.

[0069] In one embodiment, the neck margin line feature degree threshold is set to 0.8, which can be adjusted according to actual scene changes. When the neck margin line feature degree of the qth suspected neck margin line edge is greater than or equal to 0.8, the qth suspected neck margin line edge is considered to be the neck margin line edge. Similarly, all neck margin line edges in the edge image are obtained. At this point, the features of the light spot edge and the neck margin line edge are distinguished by combining the internal details of the suspected neck margin line edge and the external distribution difference characteristics, thereby eliminating the interference of the light spot edge of the tooth part on the neck margin line extraction as much as possible, and extracting a more accurate neck margin line edge.

[0070] Step S104, marking the edges of the cervical margin lines in all edge images, and performing three-dimensional reconstruction of the denture based on the marked edge images.

[0071] Using the methods of step S102 and step S103, the edges of the cervical margin lines in each edge image are extracted respectively, and the edges of the cervical margin lines in all edge images are marked, and the pixel values ​​of the pixels belonging to the cervical margin lines are set to 255, and the pixel values ​​of other pixels are set to 0, corresponding to each marked edge image, that is, a binary image. Then, three-dimensional reconstruction of the denture is performed based on all binary images, and a sparse point cloud is generated using the feature point matching and registration results to represent the three-dimensional structure of the object surface in the surface image. Then, a dense point cloud is generated from the sparse point cloud through multi-view stereo matching technology to refine the three-dimensional structure of the object surface. In this process, the extracted gingival part is further processed and refined to ensure that it fits correctly with the denture model. It should be noted that how to perform three-dimensional reconstruction of the denture based on the marked edge image is not the focus of the present invention and will not be described in detail here.

[0072] In summary, the embodiments of the present invention take surface images including teeth and gums from different angles, perform edge detection on the grayscale image of each of the surface images, and obtain an edge image corresponding to each of the surface images; for any edge image, obtain the shape feature degree of the corresponding edge belonging to the arc edge according to the shape feature of each edge in the edge image, and obtain at least one suspected neck margin line edge in the edge image according to the shape feature degree of each edge in the edge image belonging to the arc edge; for any suspected neck margin line edge, obtain the neck margin line feature degree of the suspected neck margin line edge according to the pixel point distribution and the neighborhood edge distribution on the suspected neck margin line edge, and obtain the neck margin line edge in the edge image according to the neck margin line feature degree of each of the suspected neck margin line edges; mark the neck margin line edges in all edge images, and perform three-dimensional reconstruction of the denture according to the marked edge images. Among them, the edge shape of each edge in any edge image is analyzed to obtain the suspected neck margin edge, and the internal change characteristics of the suspected neck margin edge and the neighborhood edge distribution characteristics are further combined. The neck margin feature degree of each suspected neck margin edge is obtained through the difference between the neck margin line and the light spot edge, thereby eliminating the interference of the light spot on the denture neck margin extraction, obtaining a more accurate neck margin edge extraction result, and then ensuring the subsequent production quality of the denture model based on the extracted denture neck margin line.

[0073] Based on the same inventive concept as the above method, an embodiment of the present invention also provides a system for automatically extracting the denture neck margin line, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned methods for automatically extracting the denture neck margin line when executing the computer program.

[0074] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A method for automatically extracting the denture neck edge line, characterized in that: The method comprises: Acquire surface images including teeth and gums from different angles, perform edge detection on the grayscale image of each surface image, and obtain an edge image corresponding to each surface image; For any edge image, according to the shape feature of each edge in the edge image, the shape feature degree of the corresponding edge belonging to the arc edge is obtained, and according to the shape feature degree of each edge in the edge image belonging to the arc edge, at least one suspected neck margin line edge in the edge image is obtained; For any suspected neck edge, according to the pixel distribution and the neighborhood edge distribution on the suspected neck edge, the neck feature degree of the suspected neck edge is obtained, and according to the neck feature degree of each suspected neck edge, the neck edge in the edge image is obtained; Mark the edges of the cervical margin lines in all edge images, and perform three-dimensional reconstruction of the denture based on the marked edge images; The step of obtaining the degree to which the shape feature of each edge in the edge image belongs to an arc edge comprises: For any edge in the edge image, counting the total number of pixels on the edge, normalizing the total number of pixels to obtain a corresponding normalized value; Obtaining the slope value between every two adjacent pixel points on the edge to obtain the absolute value of the sum of the slope values, obtaining the absolute value of the difference between every two adjacent slope values ​​according to the slope value between every two adjacent pixel points on the edge to obtain the sum of the absolute values ​​of the differences, obtaining the product of the absolute value of the sum of the slope values ​​and the sum of the absolute values ​​of the differences, substituting the negative number of the product into an exponential function with a natural constant as the base to obtain a corresponding function value; The addition result between the normalized value and the function value is used as the shape feature degree of the edge belonging to the arc edge; The step of obtaining the degree of neck edge characteristics of the edge of the suspected neck edge according to the pixel point distribution and the neighborhood edge distribution on the edge of the suspected neck edge includes: According to the slope value of each pixel point on the edge of the suspected neck margin line, the number of consecutive pixel points under any same slope value is obtained as the chain length to obtain at least one chain length, and a quadratic operation is performed on each of the chain lengths to obtain a corresponding quadratic result, and an average operation is performed on all quadratic results to obtain the inverse of the corresponding average value; According to a preset number of segmentation segments, the edge of the suspected neck edge line is evenly segmented to obtain corresponding segmentation nodes, and the nearest distance of each segmentation node is obtained according to the distance between each segmentation node and each other edge in the edge image, and the nearest distance variance is obtained according to the nearest distances of all segmentation nodes; According to the shortest distance of each segmentation node, the nearest neighbor edge of each segmentation node is obtained, the minimum circumscribed rectangle containing the nearest neighbor edges of all segmentation nodes is obtained, and the area of ​​the minimum circumscribed rectangle is obtained; For any nearest neighbor edge in the minimum bounding rectangle, obtain the nearest edge of the nearest neighbor edge in the minimum bounding rectangle, obtain the distance between the nearest neighbor edge and the nearest edge as the nearest neighbor distance of the nearest neighbor edge, and obtain the cumulative sum of the nearest neighbor distances of each nearest neighbor edge in the minimum bounding rectangle; A multiplication result of the nearest distance variance, the area and the accumulated sum is obtained, and a sum of the reciprocal of the multiplication result and the reciprocal of the average value is used as the neck margin line feature degree of the suspected neck margin line edge.

2. The method for automatically extracting the denture neck margin line according to claim 1, characterized in that: The step of obtaining at least one suspected neck margin line edge in the edge image according to the degree to which each edge in the edge image belongs to an arc edge includes: A preset shape feature degree threshold is obtained, and if the shape feature degree of any edge in the edge image belonging to an arc edge is greater than or equal to the shape feature degree threshold, the edge is determined to be a suspected neck margin line edge.

3. The method for automatically extracting the denture neck margin line according to claim 1, characterized in that: The step of acquiring the edge of the neck margin in the edge image according to the neck margin feature degree of each of the suspected neck margin edges comprises: A preset neck margin line feature degree threshold is obtained, and if the neck margin line feature degree of any suspected neck margin line edge is greater than or equal to the neck margin line feature degree threshold, the suspected neck margin line edge is determined to be the neck margin line edge in the edge image.

4. The method for automatically extracting the denture neck margin line according to claim 1, characterized in that: The step of performing edge detection on the grayscale image of each surface image to obtain an edge image corresponding to each surface image includes: The canny operator is used to perform edge detection on the grayscale image of each surface image to obtain an edge image corresponding to each surface image.

5. A denture cervical margin automatic extraction system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method for automatically extracting the denture cervical margin line as described in any one of claims 1 to 4 are implemented.