Image registration method and electronic equipment
Automatically registering 2D tooth images and 3D oral models based on coordinate systems and feature points, the problem of low registration efficiency in the prior art is solved, and efficient and accurate preview of the tooth restoration effect is achieved.
Patent Information
- Application Number
- CN202411115994.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-22
AI Technical Summary
The lack of fully automatic methods in the prior art to register 2D dental images and 3D oral models, resulting in low registration efficiency and manual participation is required.
By registering the 3D oral model with the 2D tooth image based on the first coordinate system, the second coordinate system, the first feature point and the second feature point, the 3D oral model is automatically displayed on the 2D tooth image to achieve the tooth restoration effect Preview without manual participation.
Improves the efficiency and accuracy of image registration, can automatically preview the dental restoration effect, and reduces manual intervention.
Smart Images

Figure CN119006544A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to an image registration method and electronic equipment. Background Art
[0002] Teeth are an important part of the human body, playing a vital role in maintaining chewing function and facial appearance. However, due to illness, injury, or aging, people often need dental restorations. Before undergoing a dental restoration, patients often need to know the final effect of the restoration so that they can choose the appropriate restoration plan. Therefore, it is necessary to align the patient's 2D dental image with a 3D oral model to display the final effect of the restoration.
[0003] Currently, due to the complexity of 2D dental images and 3D oral models, existing technologies mainly rely on manual or semi-automatic feature point selection for image registration. Currently, there is no mature, fully automatic method for aligning 2D dental images with 3D oral models.
[0004] However, although existing methods can achieve the registration of 2D tooth images and 3D oral models to a certain extent, the registration efficiency is low because they generally require manual participation. Summary of the Invention
[0005] In response to the shortcomings of the existing technology, the present application provides an image registration method and electronic device, which can automatically display the 3D oral model at the corresponding position on the 2D dental image by aligning the 3D oral model and the 2D dental image based on the first coordinate system, the second coordinate system, the first feature point and the second feature point, so as to allow the target object to preview the effect of the tooth restoration. There is no need for manual participation in the registration, which can improve the registration efficiency.
[0006] In order to solve the above problems, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides an image registration method, comprising: acquiring a 3D oral cavity model and a 2D tooth image of a target object, wherein the 3D oral cavity model includes a tooth model;
[0008] determining the occlusal center point based on the 3D oral model;
[0009] Determine a first coordinate system of the 3D oral model based on the occlusal center point and the center point of the tooth model;
[0010] determining a second coordinate system of the 2D tooth image based on a center point of the 2D tooth image;
[0011] Determining a first feature point of the 3D oral model based on a center point of the tooth model;
[0012] determining a second feature point of the 2D tooth image based on the 2D tooth image, wherein the second feature point corresponds one-to-one with the first feature point;
[0013] The 2D tooth image and the 3D oral cavity model are registered based on the first coordinate system, the second coordinate system, the first feature points, and the second feature points.
[0014] In some embodiments, determining the first coordinate system of the 3D oral model based on the occlusal center point and the center point of the tooth model includes:
[0015] Taking the occlusal center point as the origin of the first coordinate system;
[0016] determining a first coordinate axis and a second coordinate axis of the first coordinate system based on a center point of the tooth model;
[0017] Cross-product the first coordinate axis and the second coordinate axis of the first coordinate system to obtain a third coordinate axis of the first coordinate system;
[0018] The first coordinate system is determined according to the origin, the first coordinate axis, the second coordinate axis and the third coordinate axis of the first coordinate system.
[0019] In some embodiments, determining the first coordinate axis and the second coordinate axis of the first coordinate system based on the center point of the tooth model includes:
[0020] Determining a plurality of first vectors based on the center points of a plurality of pairs of upper and lower occlusal tooth models in the 3D oral model, wherein the two endpoints of each first vector are the center points of a pair of upper and lower occlusal tooth models;
[0021] determining a first coordinate axis of the first coordinate system according to an average vector of the plurality of first vectors;
[0022] Determining a plurality of second vectors based on the center points of a plurality of pairs of left and right opposing tooth models in the 3D oral model, wherein the two endpoints of each second vector are the center points of a pair of left and right opposing tooth models;
[0023] A second coordinate axis of the first coordinate system is determined according to an average vector of a plurality of second vectors.
[0024] In some embodiments, determining the first feature point of the 3D oral model based on the center point of the tooth model includes:
[0025] The center point of the tooth model with a preset tooth position number in the 3D oral model is used as the first feature point of the 3D oral model.
[0026] In some embodiments, determining a second feature point of the 2D tooth image based on the 2D tooth image includes:
[0027] identifying a tooth region in the 2D tooth image;
[0028] The center point of the tooth area with a preset tooth position number in the 2D tooth image is used as the second feature point of the 2D tooth image.
[0029] In some embodiments, identifying a tooth region in the 2D tooth image comprises:
[0030] Determine a first point set corresponding to each pixel point in the 2D tooth image according to a preset rule;
[0031] Traversing all pixel points in the 2D tooth image one by one, adding pixel values of all pixel points in the first point set corresponding to each pixel point to obtain a calculated value corresponding to each pixel point;
[0032] Calculating the difference between the calculated value corresponding to each pixel point and the calculated values corresponding to all adjacent pixel points to obtain a plurality of difference values corresponding to each pixel point;
[0033] When the multiple difference values corresponding to the pixel point meet a preset condition, the pixel point is determined as a region edge pixel point;
[0034] After traversing all pixel points in the 2D tooth image, determining an edge line of a region in the 2D tooth image according to all regional edge pixel points in the 2D tooth image;
[0035] determining a region in the 2D dental image based on an edge line of the region in the 2D dental image;
[0036] A tooth region in the 2D tooth image is determined based on the region in the 2D tooth image and a template region.
[0037] In some embodiments, determining the tooth region in the 2D tooth image based on the region in the 2D tooth image and the template region includes:
[0038] When the similarity between the edge line of the area in the 2D tooth image and the edge line of the lip area in the template area is greater than a preset degree, determining the area in the 2D tooth image as the lip area;
[0039] determining a center point of the lip area according to the lip area;
[0040] The tooth region is determined according to a center point of the lip region and edge lines of other regions in the lip region, wherein the tooth region includes an incisor region.
[0041] In some embodiments, registering the 2D tooth image and the 3D oral model based on the first coordinate system, the second coordinate system, the first feature point, and the second feature point includes:
[0042] Calculating a scaling ratio according to the first feature point and the second feature point;
[0043] determining a scaling matrix according to the scaling ratio;
[0044] Calculating a movement vector based on the coordinates of the occlusal center of the 3D oral model and the coordinates of the center of the 2D tooth image;
[0045] determining a movement matrix according to the movement vector;
[0046] Determine a first rotation matrix for rotating the second coordinate system to the first coordinate system according to the first coordinate system and the second coordinate system;
[0047] Multiplying the scaling matrix, the movement matrix, and the first rotation matrix to obtain a final transformation matrix;
[0048] The 2D tooth image is left-multiplied by the final transformation matrix to align the 2D tooth image with the 3D oral cavity model.
[0049] In some embodiments, after multiplying the 2D tooth image by the final transformation matrix to register the 2D tooth image with the 3D oral model, the method further includes:
[0050] identifying a first eye feature point and a second eye feature point in the 2D tooth image;
[0051] Determining a third vector according to the first eye feature point and the second eye feature point;
[0052] Calculating an angle between the third vector and a horizontal coordinate axis in the second coordinate system;
[0053] determining a second rotation matrix according to the angle;
[0054] The 2D tooth image is left-multiplied by the second rotation matrix to obtain the further registered 2D tooth image.
[0055] In a second aspect, an embodiment of the present application provides an electronic device, comprising:
[0056] at least one processor; and,
[0057] a memory communicatively connected to the at least one processor; wherein,
[0058] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the image registration method as described in the first aspect.
[0059] The present application provides an image registration method and electronic device. By registering a 3D oral model and a 2D tooth image based on a first coordinate system, a second coordinate system, a first feature point, and a second feature point, the present application can automatically display the 3D oral model at the corresponding position on the 2D tooth image so that the target object can preview the effect of the tooth restoration. No manual participation in the registration is required, which can improve the registration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 It is a flowchart of the image registration method provided in an embodiment of the present application.
[0061] Figure 2 Schematic diagram of the 3D oral model provided in the embodiment of the present application.
[0062] Figure 3 Schematic diagram of a 2D tooth image provided in an embodiment of the present application.
[0063] Figure 4 yes Figure 1 Detailed flowchart of step S300.
[0064] Figure 5 yes Figure 1 Detailed flowchart of step S600.
[0065] Figure 6 yes Figure 5 Detailed flowchart of step S610.
[0066] Figure 7A It is the first result image obtained by using the image registration method provided by this application.
[0067] Figure 7B It is a second result image obtained by using the image registration method provided in this application.
[0068] Figure 8 This is a structural diagram of an electronic device provided in an embodiment of the present application.
[0069] Figure 9 This is a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0071] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature identified as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.
[0072] This application provides an image registration method and electronic device that automatically displays a 3D oral model at a corresponding position on the 2D dental image to allow the target subject to preview the effect of dental restorations. This method eliminates the need for manual registration and improves registration efficiency. Furthermore, the first and second coordinate systems in this method are determined based on the positional features of teeth in the oral cavity, which can improve registration accuracy compared to methods that register images using only feature points.
[0073] The image registration method provided by this application will be described in detail below with reference to the accompanying drawings.
[0074] See also Figure 1 , Figure 1 Schematic diagram of the image registration method provided in the embodiment of the present application. Figure 1 As shown, the image registration method includes: steps S100 to S700.
[0075] Step S100: Acquire a 3D oral cavity model and a 2D tooth image of a target object.
[0076] In some embodiments, an initial 3D oral model of the target subject is obtained by performing an oral scan of the target subject, and the initial 3D oral model is then designed to obtain a final 3D oral model. The initial 3D oral model is used to represent the actual oral morphology of the target subject. The final 3D oral model is used to represent the oral morphology of the target subject after the dental restoration is performed.
[0077] The following 3D oral model takes the final 3D oral model as an example, but this does not limit the image registration method of the present application. The 3D oral model may also be an initial 3D oral model.
[0078] See also Figure 2 , Figure 2 Schematic diagram of the 3D oral model provided in the embodiment of the present application. Figure 2 As shown, in some embodiments, the 3D oral model 100 includes a tooth model 110 .
[0079] like Figure 2 As shown, in some embodiments, the number of tooth models 110 is at least two.
[0080] Optionally, the 3D oral model includes at least a first incisor model and a second incisor model.
[0081] Tooth position notation is a method used in dentistry to number each human tooth. In this method, each tooth is assigned a unique position number, which indicates its location in the mouth. Different tooth position notation methods include the FDI method and the positional recording method.
[0082] Optionally, when the FDI tooth position representation method is adopted, the first incisor model is the tooth model with the tooth position number 11, and the second incisor model is the tooth model with the tooth position number 21.
[0083] In some embodiments, each tooth model in the 3D oral model is separated for subsequent processing.
[0084] In some embodiments, a 2D dental image is obtained by photographing the target subject.
[0085] See also Figure 3 , Figure 3 Schematic diagram of a 2D tooth image provided in an embodiment of the present application. Figure 3 As shown, in some embodiments, the 2D dental image 200 displays the teeth of the target subject.
[0086] In some embodiments, the 2D dental image includes at least two dental regions, and each dental region displays one tooth of the target subject.
[0087] Optionally, the dental region comprises an incisor region.
[0088] Optionally, the incisor region includes a first incisor region and a second incisor region of the target object.
[0089] Optionally, when the FDI tooth position representation method is adopted, the first incisor area is the display area of the tooth with the tooth position number 11, and the second incisor area is the display area of the tooth with the tooth position number 21.
[0090] Optionally, the first incisor region corresponds to the first incisor model in the 3D oral model, and the second incisor region corresponds to the second incisor model in the 3D oral model.
[0091] Step S200: Determine the occlusal center point based on the 3D oral model.
[0092] In some embodiments, a bounding box of the 3D oral model is determined based on the 3D oral model, and the center point of the bounding box is used as the occlusion center point of the 3D oral model.
[0093] The bounding box is the smallest geometric object in space that includes the 3D oral model.
[0094] Optionally, the bounding box is a regular geometric body, such as a cuboid or a sphere.
[0095] Optionally, when the bounding box is a cuboid, the center point of the bounding box is the average coordinate point of eight vertices of the cuboid.
[0096] Optionally, when the bounding box is a sphere, the center point of the bounding box is the center point of the sphere.
[0097] Optionally, methods for determining the bounding box of the 3D oral model include the minimum bounding rectangle (MBR) method, the axis-aligned bounding box (AABB) method, the diagonal bounding box (OBB) method, and the sphere-shell bounding box (Sphere-Shell Bounding Box) method.
[0098] Step S300: Determine a first coordinate system of the 3D oral model based on the occlusal center point and the center point of the tooth model.
[0099] See also Figure 4 , Figure 4 yes Figure 1 Detailed flow chart of step S300 in FIG. Figure 4 As shown, step S300 includes steps S310 to S340.
[0100] Step S310: taking the occlusal center point as the origin of the first coordinate system.
[0101] like Figure 2 As shown, point O1 is the occlusal center point and also the origin of the first coordinate system.
[0102] Step S320: Determine the first coordinate axis and the second coordinate axis of the first coordinate system based on the center point of the tooth model.
[0103] In some embodiments, the 3D oral cavity model is a mesh model, which is composed of a plurality of polygonal patches, each of which has a plurality of vertices.
[0104] Optionally, the tooth model is also a mesh model, and the center point of the tooth model is the average coordinate point of the centroids of all patches of the tooth model, and the centroid of a patch is the average coordinate point of all vertices of the patch.
[0105] Optionally, the center point of the tooth model is the average coordinate point of all vertices of the tooth model.
[0106] In some embodiments, step S320 includes steps (320.1) to (320.4).
[0107] (320.1) Determine multiple first vectors based on the center points of multiple pairs of upper and lower occlusal tooth models in the 3D oral model.
[0108] The two endpoints of each first vector are the center points of a pair of upper and lower occlusal tooth models.
[0109] In some embodiments, the first vector may also be referred to as a bite direction vector.
[0110] In some embodiments, the center point of a tooth model of the mandible is used as the starting point of the first vector, and the center point of a tooth model of the mandible that occludes with the tooth model of the mandible is used as the end point of the first vector.
[0111] Optionally, the number of first vectors is greater than 2.
[0112] In some embodiments, a first set of first vectors is determined based on the center points of at least one pair of upper and lower occlusal tooth models (the left side of the maxillary teeth and the left side of the mandibular teeth), and a second set of first vectors is determined based on the center points of at least one pair of upper and lower occlusal tooth models (the right side of the maxillary teeth and the right side of the mandibular teeth). The first set of first vectors and the second set of first vectors contain the same number of first vectors. In this manner, errors in the subsequent determination of the first coordinate axis of the first coordinate system caused by differences between the left and right teeth of the target subject can be reduced.
[0113] Optionally, a first vector is formed by the center point of the tooth model with the tooth position number 15 of the maxillary tooth and the center point of the tooth model with the tooth position number 45 of the mandibular tooth.
[0114] Optionally, a first vector is formed by the center point of the tooth model with the tooth position number 16 of the maxillary tooth and the center point of the tooth model with the tooth position number 46 of the mandibular tooth.
[0115] Optionally, a first vector is formed by the center point of the tooth model with the tooth position number 17 of the maxillary tooth and the center point of the tooth model with the tooth position number 47 of the mandibular tooth.
[0116] Optionally, a first vector is formed by the center point of the tooth model with the tooth position number 25 of the maxillary tooth and the center point of the tooth model with the tooth position number 35 of the mandibular tooth.
[0117] Optionally, a first vector is formed by the center point of the tooth model with the tooth position number 26 of the maxillary tooth and the center point of the tooth model with the tooth position number 36 of the mandibular tooth.
[0118] Optionally, a first vector is formed by the center point of the tooth model with the tooth position number 27 of the maxillary tooth and the center point of the tooth model with the tooth position number 37 of the mandibular tooth.
[0119] Optionally, a first vector is formed by the center point of the tooth model with the tooth position number 11 of the maxillary tooth and the center point of the tooth model with the tooth position number 41 of the mandibular tooth.
[0120] Optionally, a first vector is formed by the center point of the tooth model with the tooth position number 21 of the maxillary tooth and the center point of the tooth model with the tooth position number 31 of the mandibular tooth.
[0121] (320.2) Determine a first coordinate axis of the first coordinate system based on an average vector of the plurality of first vectors.
[0122] In some embodiments, a coordinate axis passing through the occlusal center point and having a direction equal to the direction of an average vector of the plurality of first vectors is used as the first coordinate axis of the first coordinate system.
[0123] Optionally, a coordinate axis passing through the occlusion center point and having a direction equal to the average vector of the first six first vectors is used as the first coordinate axis of the first coordinate system.
[0124] Optionally, a coordinate axis passing through the occlusion center point and having a direction equal to the direction of the average vector of the eight first vectors is used as the first coordinate axis of the first coordinate system.
[0125] like Figure 2 As shown, the coordinate axis Z is the first coordinate axis of the first coordinate system.
[0126] (320.3) Determine multiple second vectors based on the center points of multiple pairs of left and right opposing tooth models in the 3D oral model.
[0127] The two endpoints of each second vector are the center points of a pair of left and right opposite tooth models.
[0128] In some embodiments, the second vector may also be referred to as a buccal direction vector.
[0129] In some embodiments, the center point of a tooth model of the maxilla is used as the starting point of the second vector, and the center point of a tooth model of the maxilla opposite to the tooth model is used as the end point of the second vector.
[0130] In some embodiments, the center point of a tooth model of the mandible is used as the starting point of the second vector, and the center point of a tooth model of the mandible opposite to the tooth model is used as the end point of the second vector.
[0131] Optionally, the number of the second vectors is greater than 2.
[0132] In some embodiments, a first set of second vectors is determined based on the center points of at least one pair of left and right tooth models of an upper jaw, and a second set of second vectors is determined based on the center points of at least one pair of left and right tooth models of an upper jaw, wherein the first set of second vectors and the second set of second vectors have the same number of second vectors. In this manner, errors caused by differences between the upper and lower teeth of the target subject in the subsequent determination of the second coordinate axis of the first coordinate system can be reduced.
[0133] Optionally, a second vector is formed by the center point of the tooth model with the tooth position number 15 of the maxillary tooth and the center point of the tooth model with the tooth position number 25.
[0134] Optionally, a second vector is formed by the center point of the tooth model with the tooth position number 16 of the maxillary tooth and the center point of the tooth model with the tooth position number 26.
[0135] Optionally, a second vector is formed by the center point of the tooth model with the tooth position number 17 of the maxillary tooth and the center point of the tooth model with the tooth position number 27.
[0136] Optionally, a second vector is formed by the center point of the tooth model with the tooth position number 45 of the mandible and the center point of the tooth model with the tooth position number 35.
[0137] Optionally, a second vector is formed by the center point of the tooth model with the tooth position number 46 of the mandible and the center point of the tooth model with the tooth position number 36.
[0138] Optionally, a second vector is formed by the center point of the tooth model with the tooth position number 47 of the mandible and the center point of the tooth model with the tooth position number 37.
[0139] Optionally, a second vector is formed by the center point of the tooth model with the tooth position number 11 of the maxillary tooth and the center point of the tooth model with the tooth position number 21.
[0140] Optionally, a second vector is formed by the center point of the tooth model with the tooth position number 41 of the mandible and the center point of the tooth model with the tooth position number 31.
[0141] (320.4) Determine a second coordinate axis of the first coordinate system based on an average vector of the plurality of second vectors.
[0142] In some embodiments, a coordinate axis passing through the occlusal center point and having a direction equal to the direction of an average vector of the plurality of second vectors is used as the second coordinate axis of the first coordinate system.
[0143] Optionally, a coordinate axis passing through the occlusion center point and having a direction equal to the direction of the average vector of the first six second vectors is used as the second coordinate axis of the first coordinate system.
[0144] Optionally, a coordinate axis passing through the occlusion center point and having a direction equal to the direction of the average vector of the eight second vectors is used as the second coordinate axis of the first coordinate system.
[0145] like Figure 2 As shown, the coordinate axis X is the second coordinate axis of the first coordinate system.
[0146] Step S330: cross-multiply the first coordinate axis and the second coordinate axis of the first coordinate system to obtain the third coordinate axis of the first coordinate system.
[0147] Step S340: determining the first coordinate system according to the origin, the first coordinate axis, the second coordinate axis, and the third coordinate axis of the first coordinate system.
[0148] Step S400: determining a second coordinate system of the 2D tooth image based on the center point of the 2D tooth image.
[0149] In some embodiments, the center point of the 2D dental image is the geometric center point of the 2D dental image.
[0150] Optionally, the 2D tooth image is rectangular.
[0151] In some embodiments, the center point of the 2D dental image is used as the origin, the coordinate axis passing through the origin and pointing vertically upward is used as the first coordinate axis of the second coordinate system, and the coordinate axis passing through the origin and pointing horizontally to the right is used as the second coordinate axis of the second coordinate system, thereby determining the second coordinate system of the 2D dental image.
[0152] Step S500: determining a first feature point of the 3D oral cavity model based on the center point of the tooth model.
[0153] In some embodiments, the center point of the tooth model with a preset tooth position number in the 3D oral model is used as the first feature point of the 3D oral model.
[0154] Optionally, there are more than two first characteristic points.
[0155] Optionally, there are more than 2 preset tooth position numbers, and the preset tooth position numbers include 11 and 21.
[0156] like Figure 2As shown, in some embodiments, the first feature point 120 includes point 121 and point 122, point 121 is the center point of the tooth model with tooth position number 11, and point 122 is the center point of the tooth model with tooth position number 21.
[0157] Step S600: determining a second feature point of the 2D tooth image based on the 2D tooth image.
[0158] The second feature points correspond to the first feature points one by one.
[0159] See also Figure 5 , Figure 5 yes Figure 1 Detailed flow chart of step S600 in FIG. Figure 5 As shown, step S600 includes steps S610 to S620.
[0160] Step S610: Identify tooth regions in the 2D tooth image.
[0161] In some embodiments, an image feature recognition method is used to identify tooth regions in a 2D tooth image.
[0162] Optionally, the image feature recognition method includes a Haar-like feature recognition method, a GIST feature recognition method, a HOG (Histogram of Oriented Gradients) feature recognition method, a deep learning method, and the like.
[0163] In some embodiments, an edge detection method is used to identify edge lines of regions in a 2D tooth image, and then the tooth region in the 2D tooth image is identified based on the edge lines of the regions.
[0164] See also Figure 6 , Figure 6 yes Figure 5 Detailed flow chart of step S610 in FIG. Figure 6 As shown, step S610 includes steps S611 to S617.
[0165] Step S611: Determine a first point set corresponding to each pixel point in the 2D tooth image according to a preset rule.
[0166] In some embodiments, a Haar-like feature recognition method is used to identify tooth regions in a 2D tooth image.
[0167] In some embodiments, the 2D tooth image is divided into an upper left rectangular area, a lower left rectangular area, an upper right rectangular area, and a lower right rectangular area according to horizontal lines and vertical lines passing through pixel points.
[0168] In some embodiments, the preset rule is that the first point set corresponding to the pixel is a set of all pixel points included in a rectangular area to the upper left of the pixel point, wherein the first point set includes the pixel point and all pixel points on the edge of the rectangular area.
[0169] In some embodiments, the preset rule is that the first point set corresponding to the pixel is a set of all pixel points included in a rectangular area to the lower left of the pixel point, wherein the first point set includes the pixel point and all pixel points on the edge of the rectangular area.
[0170] In some embodiments, the preset rule is that the first point set corresponding to a pixel is a set of all pixel points included in a rectangular area to the upper right of the pixel point, wherein the first point set includes the pixel point and all pixel points on the edge of the rectangular area.
[0171] In some embodiments, the preset rule is that the first point set corresponding to the pixel is the set of all pixel points included in the rectangular area to the lower right of the pixel point, wherein the first point set includes the pixel point and all pixel points on the edge of the rectangular area.
[0172] Step S612: traverse all pixel points in the 2D tooth image one by one, add up the pixel values of all pixel points in the first point set corresponding to each pixel point, and obtain a calculated value corresponding to each pixel point.
[0173] In some embodiments, the pixel value of a pixel is the sum of the pixel values of all color channels of the pixel.
[0174] In some embodiments, the 2D tooth image is converted into a grayscale image, wherein the pixel values of the pixels are grayscale values.
[0175] Step S613: Calculate the difference between the calculated value corresponding to each pixel point and the calculated values corresponding to all adjacent pixel points to obtain multiple difference values corresponding to each pixel point.
[0176] Step S614: When the multiple difference values corresponding to the pixel point meet the preset conditions, the pixel point is determined as a region edge pixel point.
[0177] In some embodiments, when the absolute value of one of the multiple differences corresponding to a pixel point is greater than a first preset value, it indicates that the pixel point is significantly different from adjacent pixels and may belong to the edge line of the region, and the pixel point is determined as a region edge pixel point.
[0178] In some embodiments, when the absolute values of multiple difference values corresponding to a pixel point are all greater than a first preset value, it indicates that the pixel point is very different from adjacent pixels and is likely to belong to the edge line of the region, and the pixel point is determined as a region edge pixel point.
[0179] Step S615: After all pixel points in the 2D tooth image are traversed, the edge line of the region in the 2D tooth image is determined according to all the region edge pixel points in the 2D tooth image.
[0180] In some embodiments, a plurality of edge lines are determined based on consecutive adjacent region edge pixels.
[0181] Step S616: Determine the region in the 2D tooth image based on the edge line of the region in the 2D tooth image.
[0182] In some embodiments, a closed area enclosed by the edge lines is determined as the area in the 2D tooth image.
[0183] Optionally, there are multiple regions in the 2D tooth image.
[0184] Optionally, the region in the 2D tooth image includes tooth regions, and the number of the tooth regions is more than 2.
[0185] Optionally, the area in the 2D tooth image also includes a lip area and an eye area, etc.
[0186] In some embodiments, a template area preset by a user is obtained, and the template area is used to identify an area in a 2D tooth image.
[0187] Optionally, the template area includes template tooth areas, and the number of template tooth areas is more than 2.
[0188] Optionally, the template tooth region includes a template incisor region.
[0189] Optionally, the template incisor region includes a first template incisor region and a second template incisor region, the first template incisor region is used to identify the first incisor region, and the second template incisor region is used to identify the second incisor region.
[0190] Step S617: Determine the tooth region in the 2D tooth image based on the region in the 2D tooth image and the template region.
[0191] In some embodiments, the tooth region in the 2D dental image is determined directly based on the region in the 2D dental image and the template region.
[0192] Optionally, when the similarity between the edge line of the area in the 2D tooth image and the edge line of a tooth area in the template area is greater than a preset degree, the area in the 2D tooth image is determined as the tooth area.
[0193] In some embodiments, when the similarity between the edge line of the region in the 2D dental image and the edge line of the first template incisor region in the template region is greater than a preset degree, the region in the 2D dental image is determined as the first incisor region.
[0194] In some embodiments, when the similarity between the edge line of the area in the 2D dental image and the edge line of the second template incisor area in the template area is greater than a preset degree, the area in the 2D dental image is determined as the second incisor area.
[0195] In some embodiments, the lip region is first determined, and then the tooth region in the 2D tooth image is determined based on the edge line of the region in the lip region and the template region.
[0196] In some embodiments, step S617 includes steps (617.1) to (617.3).
[0197] (617.1) When the similarity between the edge line of the region in the 2D dental image and the edge line of the lip region in the template region is greater than a preset degree, the region in the 2D dental image is determined as the lip region.
[0198] Optionally, the first distance between each pixel point in the edge line of the area and the nearest pixel point in the edge line of the lip area is calculated. When the sum of all the first distances is greater than a second preset value, it is determined that the similarity between the edge line of the area and the edge line of the lip area in the template area is greater than a preset degree.
[0199] In some embodiments, the template region includes other features besides the edge line of the region. For example, the pixels in the lip region of the template are red pixels, and the center point of the eye region of the template is black.
[0200] In some embodiments, the lip region is determined based on the similarity between the edge line of the region and the edge line of the lip region in the template region, and the color of the pixels in the template region.
[0201] (617.2) Determine the center point of the lip area based on the lip area.
[0202] In some embodiments, the average coordinate point of all pixel points on the edge line of the lip region is used as the center point of the lip region.
[0203] like Figure 3 As shown, in some embodiments, a first line segment 221 having the longest horizontal length and a second line segment 222 having the longest vertical length within the lip region 220 are determined based on the edge line of the lip region 220, and the intersection O of the first line segment 221 and the second line segment 222 is used as the center point of the lip region 220. The endpoints of the first line segment 221 and the second line segment 222 are both located on the edge line of the lip region 220.
[0204] (617.3) The tooth region is determined based on the center point of the lip region and the edge lines of other regions in the lip region.
[0205] The tooth area includes the incisor area.
[0206] As described above, in some embodiments, the incisor region includes a first incisor region and a second incisor region, the first incisor region corresponds to the first incisor model in the 3D oral model, and the second incisor region corresponds to the second incisor model in the 3D oral model.
[0207] like Figure 3 As shown, in some embodiments, the center point O of the lip area 220 is located at the junction of the first incisor area 230 and the second incisor area 240, so it is convenient to determine the incisor area in the lip area 220 based on the center point O of the lip area 220.
[0208] In some embodiments, all tooth regions are determined based on edge lines of other regions in the lip region and tooth regions in the template region, and the method is as described above.
[0209] In some embodiments, tooth regions located on the left and right sides of the center point of the lip region are respectively determined as the first incisor region and the second incisor region.
[0210] Step S620: taking the center point of the tooth region with the preset tooth position number in the 2D tooth image as the second feature point of the 2D tooth image.
[0211] Optionally, the preset tooth position numbers are more than 2.
[0212] Optionally, the preset tooth position numbers include 11 and 21.
[0213] Optionally, the method for determining the center point of the tooth region refers to the method for determining the center point of the lip region described above.
[0214] like Figure 3 As shown, in some embodiments, the second feature point 210 includes point 211 and point 212. Figure 2 and Figure 3 As shown, in some embodiments, point 121 corresponds to point 211, and point 122 corresponds to point 212. Because it is easy to display the two front teeth of the target object in a 2D tooth image when photographing the target object, the above method can facilitate the correspondence between the first feature point and the second feature point.
[0215] Step S700: aligning the 2D tooth image and the 3D oral cavity model based on the first coordinate system, the second coordinate system, the first feature point, and the second feature point.
[0216] In some embodiments, a rigid transformation is performed on the 2D tooth image based on the first coordinate system, the second coordinate system, the first feature point, and the second feature point to align the 2D tooth image with the 3D oral cavity model.
[0217] In some embodiments, step S700 includes steps (700.1) to (700.7).
[0218] (700.1) Calculate a scaling ratio based on the first feature point and the second feature point.
[0219] In some embodiments, the distance between a pair of first feature points is calculated and used as the second distance, the distance between a pair of second feature points corresponding to the pair of first feature points is calculated and used as the third distance, and the second distance is divided by the third distance to obtain a scaling ratio.
[0220] Optionally, the distance between point 121 and point 122 is calculated and used as the second distance, the distance between point 211 and point 212 is calculated and used as the third distance, and the second distance is divided by the third distance to obtain the scaling ratio.
[0221] In some embodiments, the second distances between multiple pairs of first feature points are calculated, the average of all the second distances is calculated, the third distances between multiple pairs of second feature points corresponding one-to-one to the multiple pairs of first feature points are calculated, the average of all the third distances is calculated, and the average of all the second distances is divided by the average of all the third distances to obtain a scaling ratio. In this way, calculation errors can be reduced.
[0222] (700.2) Determine the scaling matrix according to the scaling ratio.
[0223] In some embodiments, the scaling matrix is Where S represents the scaling factor.
[0224] (700.3) The movement vector is calculated based on the coordinates of the occlusal center point of the 3D oral model and the coordinates of the center point of the 2D tooth image.
[0225] In some embodiments, the coordinates of the target point are determined based on the coordinates of the occlusal center point of the 3D oral model.
[0226] In some embodiments, the coordinates of the target point are the coordinates of the occlusal center point plus the fourth vector, where the direction of the fourth vector is the positive direction of the third coordinate axis of the first coordinate system, and the length of the fourth vector is the length of the unit vector multiplied by the third preset value. In this manner, when registering a 2D dental image with a 3D oral model, the 2D dental image can be moved closer to or further away from the 3D oral model as desired by the user to achieve the desired display effect, thereby increasing the flexibility of the image registration method.
[0227] Optionally, the third preset value is greater than 1, for example, the third preset value is 1, 5, 10 or 15.
[0228] In some embodiments, the coordinates of the center point of the 2D dental image are subtracted from the coordinates of the target point to obtain a movement vector. Since the coordinates of the target point include coordinate values on three coordinate axes of a first coordinate system, and the coordinates of the center point of the 2D dental image include coordinate values on two coordinate axes of a second coordinate system, the coordinate value of the center point of the 2D dental image on the third coordinate axis of the first coordinate system is considered to be zero.
[0229] In some embodiments, the coordinates of the center point of the 2D teeth image are subtracted from the coordinates of the occlusal center point of the 3D oral model to obtain the movement vector.
[0230] (700.4) Determine a movement matrix based on the movement vector.
[0231] In some embodiments, the motion vector is (tx, t y ,tz), the moving matrix is
[0232] (700.5) Determine a first rotation matrix for rotating the second coordinate system toward the first coordinate system based on the first coordinate system and the second coordinate system.
[0233] In some embodiments, a first angle between a first coordinate axis of the first coordinate system and a first coordinate axis of the second coordinate system is calculated, a second angle between a second coordinate axis of the first coordinate system and a second coordinate axis of the second coordinate system is calculated, and a third angle between a third coordinate axis of the first coordinate system and a plane where the second coordinate system is located is calculated, and then a first rotation matrix is determined based on the first angle, the second angle, and the third angle.
[0234] In some implementations, an initial first rotation matrix is determined based on the first angle, the second angle, and the third angle.
[0235] In some embodiments, an initial first rotation matrix is obtained by multiplying a first sub-matrix, a second sub-matrix, and a third sub-matrix. The first sub-matrix is a matrix for rotating the 2D dental image around the X-axis of the world coordinate system, the second sub-matrix is a matrix for rotating the 2D dental image around the Y-axis of the world coordinate system, and the third sub-matrix is a matrix for rotating the 2D dental image around the Z-axis of the world coordinate system.
[0236] In some embodiments, because the rotation center point when rotating the 2D dental image is the origin of the world coordinate system, it is necessary to first determine the translation matrix that moves the origin of the second coordinate system to the origin of the world coordinate system, and then determine the final first rotation matrix based on the translation matrix and the initial first rotation matrix.
[0237] In some embodiments, the translation matrix is determined based on a translation vector obtained by subtracting the coordinates of the origin of the second coordinate system from the coordinates of the origin of the world coordinate system.
[0238] In some embodiments, the origin of the second coordinate system is moved to the origin of the world coordinate system, and then the second coordinate system is rotated, and then the origin of the second coordinate system needs to be moved to the original position.
[0239] In some embodiments, the translation matrix, the initial first rotation matrix, and the inverse matrix of the translation matrix are multiplied together to obtain the final first rotation matrix.
[0240] Optionally, the final first rotation matrix is: the translation matrix multiplied by the initial first rotation matrix multiplied by the inverse matrix of the translation matrix.
[0241] (700.6) Multiply the scaling matrix, the translation matrix, and the first rotation matrix to obtain the final transformation matrix.
[0242] Optionally, the final transformation matrix is: the scaling matrix multiplied by the movement matrix multiplied by the first rotation matrix.
[0243] (700.7) The 2D tooth image is left-multiplied by the final transformation matrix to align the 2D tooth image with the 3D oral model.
[0244] In some embodiments, the coordinate vector of each pixel in the 2D dental image is pre-multiplied by the final transformation matrix, thereby pre-multiplying the 2D dental image by the final transformation matrix.
[0245] By registering the 3D oral model with the 2D dental image based on the first coordinate system, the second coordinate system, the first feature point, and the second feature point, the 3D oral model can be automatically displayed at the corresponding location on the 2D dental image, allowing the target person to preview the effect of the restored tooth. This eliminates the need for manual registration and improves registration efficiency. Furthermore, the first and second coordinate systems in this method are determined based on the positional features of the teeth in the oral cavity, which can improve registration accuracy compared to methods that register images using feature points alone.
[0246] In some embodiments, the entire face of the target subject is displayed in the 2D dental image.
[0247] In some embodiments, because the first coordinate system is determined based on the scanned 3D oral model and the second coordinate system is determined based on the horizontal and vertical directions of the 2D dental image, the face of the target object in the 2D dental image may be skewed, while the 3D oral model generally will not be skewed, and therefore the 2D dental image and the 3D oral model need to be further aligned.
[0248] In some embodiments, after (700.7), the method further includes: further registering the 2D tooth image and the 3D oral cavity model.
[0249] In some embodiments, a non-rigid transformation is performed on the 2D dental image to further align the 2D dental image with the 3D oral cavity model.
[0250] In some embodiments, after (700.7), the method further includes steps (700.8) to (700.12).
[0251] (700.8) Identify a first eye feature point and a second eye feature point in the 2D tooth image.
[0252] In some embodiments, a first eye region and a second eye region in a 2D dental image are identified, and the center point of the first eye region is used as a first eye feature point, and the center point of the second eye region is used as a second eye feature point. The method is described above.
[0253] (700.9) Determine a third vector based on the first eye feature point and the second eye feature point.
[0254] Optionally, the first eye feature point is used as the starting point of the third vector, and the second eye feature point is used as the end point of the third vector to determine the third vector.
[0255] (700.10) Calculate the angle between the third vector and the horizontal coordinate axis in the second coordinate system.
[0256] In some embodiments, when the included angle is greater than 90 degrees, the inverse vector of the third vector is used as the updated third vector, and the included angle between the updated third vector and the horizontal coordinate axis in the second coordinate system is calculated.
[0257] (700.11) Determine the second rotation matrix based on the angle.
[0258] In some embodiments, the second rotation matrix is Here, θ represents the angle between the third vector and the horizontal coordinate axis in the second coordinate system.
[0259] (700.12) The 2D tooth image is multiplied by the second rotation matrix to obtain a further registered 2D tooth image.
[0260] In some embodiments, the coordinate vector of each pixel in the registered 2D dental image is left-multiplied by the second rotation matrix, thereby left-multiplying the registered 2D dental image by the second rotation matrix to obtain a further registered 2D dental image.
[0261] In some embodiments, the portion of the 3D oral model outside the lip area is made transparent, so that the target subject can preview his or her image after the dental restoration.
[0262] See also Figure 7A and Figure 7B , Figure 7A is the first result image obtained by the image registration method provided by this application, Figure 7B is the second result image obtained by using the image registration method provided by this application. Figure 7A and Figure 7B As shown, in the first result image 1 and the second result image 2, a 3D tooth model 100 and a 2D tooth image 200 are displayed simultaneously, wherein the 3D tooth model 100 and the 2D tooth image 200 are both registered.
[0263] like Figure 7B As shown, in some embodiments, the portion of the 3D oral model 100 outside the lip area is made transparent. In this way, it is convenient for the target subject to preview his or her image after the tooth restoration.
[0264] In summary, the image registration method provided in the embodiments of the present application has the following advantages:
[0265] 1. By registering a 3D oral model with a 2D dental image based on a first coordinate system, a second coordinate system, and first and second feature points, the 3D oral model can be automatically displayed at the corresponding location on the 2D dental image, allowing the subject to preview the effect of the restored tooth. This eliminates the need for manual registration and improves registration efficiency. Furthermore, the first and second coordinate systems in this method are determined based on the positional features of the teeth in the oral cavity, which can improve registration accuracy compared to methods that register images using feature points alone.
[0266] 2. By dividing the first vector into a first group of first vectors and a second group of first vectors, and dividing the second vector into a first group of second vectors and a second group of second vectors, the error caused by the differences in teeth in different parts of the target object in the subsequent determination of the coordinate axes of the first coordinate system can be reduced.
[0267] 3. By taking the coordinates of the target point as the coordinates of the occlusal center point plus the fourth vector, when aligning the 2D dental image and the 3D oral model, the 2D dental image can be controlled to move closer to or farther from the 3D oral model according to the user's requirements to achieve the user's desired display effect, thereby improving the flexibility of the image alignment method.
[0268] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8As shown, the electronic device 400 includes: one or more processors 410 and a memory 420, Figure 8 A processor 410 is taken as an example.
[0269] In some embodiments, the processor 410 and the memory 420 may be connected via a bus or other means. Figure 8 The bus connection is taken as an example.
[0270] In some embodiments, the processor 410 is used to obtain a 3D oral model and a 2D dental image of a target object, wherein the 3D oral model includes a dental model; determine an occlusal center point based on the 3D oral model; determine a first coordinate system of the 3D oral model based on the occlusal center point and the center point of the dental model; determine a second coordinate system of the 2D dental image based on the center point of the 2D dental image; determine a first feature point of the 3D oral model based on the center point of the dental model; determine a second feature point of the 2D dental image based on the 2D dental image, wherein the second feature point corresponds one-to-one to the first feature point; and align the 2D dental image and the 3D oral model based on the first coordinate system, the second coordinate system, the first feature point, and the second feature point.
[0271] In some embodiments, memory 420, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules of the image registration method in the embodiments of the present application. Processor 410 executes the non-volatile software programs, instructions, and modules stored in memory 420 to execute various functional applications and data processing of electronic device 400, thereby implementing the image registration method of the above-mentioned method embodiment.
[0272] In some embodiments, the memory 420 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device 400, etc. In addition, the memory 420 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 420 may optionally include a memory remotely located relative to the processor 410, and these remote memories may be connected to the controller via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0273] In some embodiments, one or more modules are stored in the memory 420 and, when executed by one or more processors 410, perform the image registration method in any of the above method embodiments, for example, performing the above described Figure 1Method steps S100 to S700.
[0274] Please refer to Figure 9 , Figure 9 The computer-readable storage medium 500 stores program code 510, which can be called by a processor to execute the image registration method described in the above method embodiment.
[0275] The computer-readable storage medium 500 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium 500 has storage space for program code that executes any method step in the above-described image registration method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.
[0276] In summary, the present application provides an image registration method and electronic device, the image registration method comprising acquiring a 3D oral model and a 2D dental image of a target object, wherein the 3D oral model includes a dental model; determining an occlusal center point based on the 3D oral model; determining a first coordinate system of the 3D oral model based on the occlusal center point and the center point of the dental model; determining a second coordinate system of the 2D dental image based on the center point of the 2D dental image; determining a first feature point of the 3D oral model based on the center point of the dental model; determining a second feature point of the 2D dental image based on the 2D dental image, wherein the second feature point corresponds one-to-one with the first feature point; and registering the 2D dental image and the 3D oral model based on the first coordinate system, the second coordinate system, the first feature point, and the second feature point. By registering the 3D oral model and the 2D dental image based on the first coordinate system, the second coordinate system, the first feature point, and the second feature point, the present application can automatically display the 3D oral model at a corresponding position on the 2D dental image for the target object to preview the effect of dental restoration, without requiring manual registration, thereby improving registration efficiency. In addition, the first coordinate system and the second coordinate system in this method are determined based on the positional features of the teeth in the oral cavity, which can improve the accuracy of registration compared to a method of registering images only by feature points.
[0277] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An image registration method, characterized in that: include: Acquire a 3D oral cavity model and a 2D tooth image of a target object, wherein the 3D oral cavity model includes a tooth model; Determine the occlusal center point based on the 3D oral model; Determine a first coordinate system of the 3D oral model based on the occlusal center point and the center point of the tooth model; determining a second coordinate system of the 2D tooth image based on a center point of the 2D tooth image; Determine a first feature point of the 3D oral model based on the center point of the tooth model; Determining a second feature point of the 2D tooth image based on the 2D tooth image, wherein the second feature point corresponds one-to-one to the first feature point; The 2D tooth image and the 3D oral cavity model are registered based on the first coordinate system, the second coordinate system, the first feature points, and the second feature points.
2. The image registration method according to claim 1, characterized in that: The determining of the first coordinate system of the 3D oral model based on the occlusal center point and the center point of the tooth model comprises: Taking the occlusal center point as the origin of the first coordinate system; Determine a first coordinate axis and a second coordinate axis of the first coordinate system based on a center point of the tooth model; Cross-multiply the first coordinate axis and the second coordinate axis of the first coordinate system to obtain a third coordinate axis of the first coordinate system; The first coordinate system is determined according to the origin, the first coordinate axis, the second coordinate axis and the third coordinate axis of the first coordinate system.
3. The image registration method according to claim 2, characterized in that: The determining the first coordinate axis and the second coordinate axis of the first coordinate system based on the center point of the tooth model comprises: Determine a plurality of first vectors based on the center points of a plurality of pairs of upper and lower occlusal tooth models in the 3D oral model, wherein two endpoints of each of the first vectors are the center points of a pair of upper and lower occlusal tooth models; determining a first coordinate axis of the first coordinate system according to an average vector of a plurality of the first vectors; Determine a plurality of second vectors based on the center points of a plurality of pairs of left-right opposing tooth models in the 3D oral model, wherein two endpoints of each of the second vectors are the center points of a pair of left-right opposing tooth models; A second coordinate axis of the first coordinate system is determined according to an average vector of a plurality of the second vectors.
4. The image registration method according to claim 1, characterized in that: The determining the first feature point of the 3D oral model based on the center point of the tooth model comprises: The center point of the tooth model with a preset tooth position number in the 3D oral model is used as the first feature point of the 3D oral model.
5. The image registration method according to any one of claims 1 to 4, characterized in that: The determining a second feature point of the 2D tooth image based on the 2D tooth image comprises: identifying a tooth region in the 2D tooth image; The center point of the tooth area with a preset tooth position number in the 2D tooth image is used as the second feature point of the 2D tooth image.
6. The image registration method according to claim 5, characterized in that: The identifying of the tooth region in the 2D tooth image comprises: Determine a first point set corresponding to each pixel point in the 2D tooth image according to a preset rule; Traversing all pixel points in the 2D tooth image one by one, adding pixel values of all pixel points in the first point set corresponding to each pixel point, and obtaining a calculated value corresponding to each pixel point; Calculating the difference between the calculated value corresponding to each pixel point and the calculated values corresponding to all adjacent pixel points to obtain a plurality of difference values corresponding to each pixel point; When the multiple difference values corresponding to the pixel point meet the preset conditions, the pixel point is determined as a region edge pixel point; After all pixel points in the 2D tooth image are traversed, an edge line of a region in the 2D tooth image is determined according to all regional edge pixel points in the 2D tooth image; determining a region in the 2D dental image based on an edge line of the region in the 2D dental image; A tooth region in the 2D tooth image is determined based on the region in the 2D tooth image and a template region.
7. The image registration method according to claim 6, characterized in that: The determining of the tooth region in the 2D tooth image based on the region in the 2D tooth image and the template region comprises: When the similarity between the edge line of the area in the 2D tooth image and the edge line of the lip area in the template area is greater than a preset degree, determining the area in the 2D tooth image as the lip area; Determining a center point of the lip area according to the lip area; The tooth region is determined according to a center point of the lip region and edge lines of other regions in the lip region, wherein the tooth region includes an incisor region.
8. The image registration method according to claim 1, characterized in that: The registering the 2D tooth image and the 3D oral cavity model based on the first coordinate system, the second coordinate system, the first feature point, and the second feature point includes: Calculating a scaling ratio according to the first feature point and the second feature point; Determining a scaling matrix according to the scaling ratio; A movement vector is calculated based on the coordinates of the occlusal center point of the 3D oral model and the coordinates of the center point of the 2D tooth image; Determine a movement matrix according to the movement vector; Determine a first rotation matrix for rotating the second coordinate system to the first coordinate system according to the first coordinate system and the second coordinate system; Multiplying the scaling matrix, the movement matrix and the first rotation matrix to obtain a final transformation matrix; The 2D tooth image is left-multiplied by the final transformation matrix to align the 2D tooth image with the 3D oral cavity model.
9. The image registration method according to claim 8, characterized in that: After the 2D tooth image is left-multiplied by the final transformation matrix to register the 2D tooth image with the 3D oral model, the method further includes: Identifying a first eye feature point and a second eye feature point in the 2D tooth image; Determine a third vector according to the first eye feature point and the second eye feature point; Calculating an angle between the third vector and a coordinate axis in a horizontal direction in the second coordinate system; Determine a second rotation matrix according to the angle; The 2D tooth image is left-multiplied by the second rotation matrix to obtain the 2D tooth image after further registration.
10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the image registration method according to any one of claims 1 to 9.
