Patient appearance picture deformation method

Through the computer-executed patient appearance deformation method, the homography relationship and thin plate spline interpolation method are used to improve the accuracy of side-image simulation after dental orthodontic treatment, solve the problem of insufficient accuracy in the existing technology, and achieve more Accurate appearance change reaction.

CN118887079APending Publication Date: 2024-11-01HANGZHOU ZOHO INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310429674.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-19
Publication Date
2024-11-01

Smart Images

  • Figure CN118887079A_ABST
    Figure CN118887079A_ABST
Patent Text Reader

Abstract

The invention provides a computer-executed patient appearance picture deformation method. The method comprises the following steps: acquiring a first-view perspective picture and an appearance picture of a patient; calculating a transformation relation between the perspective picture and the appearance picture based on a first group of key points in the perspective picture and the appearance picture; moving a second group of key points in the perspective picture; and calculating new positions of a second group of key points in the appearance picture based on the mapping of the second group of key points after movement in the perspective picture in the appearance picture, the mapping of the second group of key points before movement in the perspective picture in the appearance picture and the second group of key points in the appearance picture, the mapping is based on the transformation relation; and performing deformation processing on the appearance picture based on the new positions of the second group of key points in the appearance picture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to a method for morphing a patient's appearance. Background Art

[0002] Nowadays, more and more people are beginning to understand that orthodontic treatment is not only good for health, but also can improve personal appearance. For patients who are not familiar with orthodontic treatment, if they can be shown the profile after treatment before treatment, it can help them build confidence in the treatment and promote communication between orthodontists and patients.

[0003] At present, a method for simulating the side appearance after orthodontic treatment has emerged in the industry. It predicts the position changes of corresponding key points after orthodontic treatment based on the X-ray lateral film taken before orthodontic treatment, and then performs image deformation processing on the side photo based on the position changes of corresponding key points in the side photo taken before orthodontic treatment to obtain a simulated side photo after orthodontic treatment.

[0004] However, in the existing methods, the accuracy of calculating the position changes of the corresponding key points in the lateral view based on the position changes of the key points in the lateral radiograph is not high enough, and the lateral view cannot truly reflect the effect of dental orthodontic treatment after the corresponding deformation processing.

[0005] Therefore, it is necessary to provide a new side view deformation method. Summary of the invention

[0006] One aspect of the present application provides a computer-implemented method for deforming a patient's appearance photograph, which includes: obtaining a first-person perspective X-ray photograph and an appearance photograph of the patient; calculating a transformation relationship between the X-ray photograph and the appearance photograph based on a first group of key points in the X-ray photograph and the appearance photograph; moving a second group of key points in the X-ray photograph; calculating new positions of the second group of key points in the appearance photograph based on a mapping of the second group of key points in the X-ray photograph after movement in the appearance photograph, a mapping of the second group of key points in the X-ray photograph before movement in the appearance photograph, and the second group of key points in the appearance photograph, wherein the mapping is based on the transformation relationship; and deforming the appearance photograph based on the new positions of the second group of key points in the appearance photograph.

[0007] In one embodiment, for each of the second group of key points in the appearance photo, its new position can be based on the following calculation: the coordinates of the mapping of the corresponding key point in the perspective photo after moving minus the coordinates of the mapping of the corresponding key point in the perspective photo before moving, plus the coordinates of the corresponding key point in the appearance photo.

[0008] In one embodiment, the transformation relationship is a homography transformation matrix.

[0009] In one embodiment, the computer-executed deformation method of the patient's appearance photo also includes: determining the deformation area based on a third group of key points in the appearance photo; cutting out the deformation area block from the appearance photo; deforming the deformation area block based on the new positions of the second group of key points in the deformation area block; and pasting the deformed deformation area block back to the appearance photo to obtain a new appearance photo.

[0010] In one embodiment, the deformation processing adopts a thin plate spline interpolation method, and the computer-implemented method for deforming the patient's appearance photo also includes: pasting the deformed deformation area block back to the appearance photo, and filling the black edges generated by the deformation with pixels on the edge line of the deformation area.

[0011] In one embodiment, during the deformation process, the edge line of the deformation area block remains unchanged.

[0012] In one embodiment, the fluoroscopic image is a lateral X-ray, the appearance image is a side view, the method is used to generate a simulated side view of the patient after orthodontic treatment, and the deformed area is an area covering the vicinity of the mouth.

[0013] In one embodiment, the second group of key points are soft tissue key points, and the new positions of the second group of key points in the fluoroscopic image are calculated based on the new positions of the related hard tissue key points.

[0014] In one embodiment, the computer-implemented method for deforming a patient's appearance photograph further includes: using a trained first deep neural network to identify key points needed in the X-ray photograph; and using a trained second deep neural network to identify key points needed in the appearance photograph.

[0015] Another aspect of the present application provides a computer system for deforming a patient's appearance photograph, which includes a processor and a storage device. The storage device stores a computer program for deforming a patient's appearance photograph. When the computer program is run, the processor executes the method for deforming the patient's appearance photograph. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other features of the present application will be further described below in conjunction with the accompanying drawings and detailed descriptions thereof. It should be understood that these drawings only illustrate several exemplary embodiments according to the present application and should not be considered as limiting the scope of protection of the present application. Unless otherwise specified, the drawings are not necessarily to scale and similar reference numerals represent similar components.

[0017] Figure 1 is a schematic flow chart of a patient side view deformation method in one embodiment of the present application;

[0018] Figure 2 A lateral X-ray taken of a patient in an example of the present application before orthodontic treatment; and

[0019] Figure 3 A side view of an example patient taken before orthodontic treatment. DETAILED DESCRIPTION

[0020] The following detailed description refers to the drawings that form part of this specification. The illustrative embodiments mentioned in the specification and drawings are for illustrative purposes only and are not intended to limit the scope of protection of the present application. Under the guidance of the present application, those skilled in the art will understand that many other embodiments can be adopted and various changes can be made to the described embodiments without departing from the subject matter and scope of protection of the present application. It should be understood that the various aspects of the present application described and illustrated herein can be arranged, replaced, combined, separated and designed according to many different configurations, and these different configurations are within the scope of protection of the present application.

[0021] One aspect of the present application provides a computer-implemented side view deformation method, which establishes a homography transformation matrix between the side view film and the side view based on corresponding key points in the side view film, changes the positions of N key points in the side view film, calculates the new positions of the N key points in the side view based on the original positions and new positions of the N key points in the side view and the corresponding original positions of the N key points in the side view, and deforms the side view based on the new positions of the N key points in the side view, wherein N is a natural number greater than or equal to 1.

[0022] Another aspect of the present application provides a computer system for deforming a side view, which includes a processor and a storage device, wherein the storage device stores a computer program for deforming a side view. When the computer program is run, the processor executes the side view deformation method.

[0023] Please refer to Figure 1 , which is a schematic flow chart of a side view deformation method 100 in one embodiment of the present application.

[0024] In 101, an X-ray lateral view and a lateral view of the patient in an initial state are obtained.

[0025] The X-ray lateral film (hereinafter referred to as the lateral film) and the side view of the patient in the initial state are the lateral film and side view of the patient in the same state, that is, the position and shape of the corresponding hard tissue and / or soft tissue in the two are consistent. For the specific application of predicting the impact of dental orthodontic treatment on the patient's appearance, the lateral film and side view of the patient in the initial state can be taken before dental orthodontic treatment. The side view deformation method of this application is described in detail below using this as an example.

[0026] Please refer to Figure 2 , is a lateral radiograph of a patient in the initial state in an example. Figure 3 , which is a side view of the initial state of the patient in an example.

[0027] In 103, pre-selected key points are marked in the lateral radiograph and the lateral view.

[0028] Orthodontic treatment mainly involves changes in tooth posture. Since the lateral view shows the side view of the patient's hard tissue (including teeth) and soft tissue, the position of the corresponding tooth key points in the lateral view in the initial state can be changed according to the target tooth layout of the orthodontic treatment, thereby changing the position of the corresponding soft tissue (for example, lips) key points. The new position of the corresponding soft tissue key points in the lateral view is then mapped to the lateral view in the initial state, and the lateral view is deformed based on the new position of the key points in the lateral view to obtain a simulated lateral view after orthodontic treatment for the patient's reference.

[0029] In order to obtain a simulated lateral view after dental orthodontic treatment, it is necessary to first mark pre-selected key points (also called feature points) in the lateral view and the lateral view.

[0030] In one embodiment, key points may be manually marked on the lateral view and the side view.

[0031] In yet another embodiment, a trained deep neural network may be used to mark key points on the lateral film and the side view.

[0032] In one embodiment, HRNet (High-Resolution Net) can be used to detect key points in the lateral view and the side view. In the light of this application, it can be understood that in addition to HRNet, any other applicable deep neural network can be used to detect key points in the lateral view and the side view, such as Hourglass Net.

[0033] Figure 2 and Figure 3 Pre-selected key points are annotated.

[0034] In 105, a transformation relationship between the lateral view and the lateral image is calculated based on a first group of key points in the lateral view and the lateral image.

[0035] Since the lateral film and the side view may be shot at different angles and have different sizes, if the position change of a key point in the lateral film is to be calculated based on the position change of the corresponding key point in the side view, it is necessary to first calculate the transformation relationship between the two.

[0036] In one embodiment, the transformation relationship between the two may be calculated based on a first set of key points included in both.

[0037] In one embodiment, the homography transformation from the lateral view to the lateral view can be obtained based on the first group of key points. The homography transformation matrix has 8 independent variables, and the first group of key points includes at least 4 key points. In order to improve accuracy, the first group of key points can include as many key points as possible.

[0038] In one embodiment, the homography transformation matrix may be calculated using a RANSAC (Random Sample Consensus) method, a least squares method, or a LMedS (Least Median of Squares) method.

[0039] In another embodiment, it can also be assumed that the transformation between the lateral view and the lateral illumination is an affine transformation. In this case, the last row of the homography transformation matrix is ​​[0, 0, 1], and accordingly, the first group of key points includes at least 3 key points.

[0040] In one embodiment, the first group of key points may be the following key points: G, Nmark, Bri, Prn, Cm, Sn, Amark, ULmark, Ls, Stms, Si, Stmi, Li, LLmark, Si, Pogmark, Gnmark, Memark, T, and Gomark. In light of this application, it can be understood that the above key points may be added or deleted.

[0041] The transformation matrix from the lateral view to the lateral view is denoted as M1, and the inverse matrix is ​​denoted as M1 -1 The first set of key points of the lateral film are mapped to the side view using matrix M1, and they are substantially coincident with the first set of key points of the side view. -1 The first group of key points of the side view are mapped to the side view film, and they substantially coincide with the first group of key points of the side view film.

[0042] In 107, a deformation region is determined based on a second set of key points in the side view.

[0043] Orthodontic treatment mainly changes the patient's profile in the mouth area, especially the lips. Therefore, for the application of generating a simulated side view after orthodontic treatment, in order to simplify the calculation, only the area near the mouth in the side view can be deformed, and then the deformed image blocks can be used to cover the corresponding area of ​​the original side view to obtain a simulated side view after orthodontic treatment.

[0044] In one embodiment, a second group of key points may be selected near the mouth area of ​​the side view of the initial state, and a rectangular deformation area may be defined based on the maximum and minimum x, y coordinate values ​​of the second group of key points.

[0045] It can be understood that the distribution of feature points in the area near the mouth is similar, that is, which of these feature points have the maximum and minimum x, y coordinate values ​​is known, so in one embodiment, these feature points can be used as the second group of feature points.

[0046] In one embodiment, the size of the deformation zone can be appropriately expanded in proportion to the maximum and minimum x, y coordinate values ​​of the second group of key points to leave a certain margin. For example, the deformation zone leaves a 20% margin in the height direction (10% each in the top and bottom) and a 40% margin in the width direction (20% each in the left and right).

[0047] Please refer to Figure 2 and Figure 3 , the deformation areas are marked.

[0048] In light of the present application, it can be understood that, in addition to a rectangle, the deformation zone may also be in other shapes, such as an ellipse, a hexagon, a triangle, a rhombus, and the like.

[0049] In 109, new positions of the third group of key points in the lateral image are calculated based on the new positions of the third group of key points in the lateral image.

[0050] Orthodontic treatment may change the positions of some key points of hard tissue in the initial lateral view, and may further change the relevant key points of soft tissue. In one embodiment, the position change of the relevant key points of hard tissue in the initial lateral view after orthodontic treatment can be predicted, based on which the new positions of the relevant key points of soft tissue in the initial lateral view are calculated, and then based on which the new positions of the corresponding soft tissue points in the initial lateral view are calculated. In another embodiment, the new positions of the relevant key points of soft tissue in the initial lateral view after orthodontic treatment can also be directly predicted.

[0051] In one embodiment, the dental professional may manually move the relevant soft tissue key points in the lateral radiograph of the initial state based on experience as the new positions of the soft tissue key points after the orthodontic treatment.

[0052] In another embodiment, the new positions of relevant hard tissue key points in the lateral film after orthodontic treatment can be calculated based on the three-dimensional digital model of the jaw under the patient's initial tooth layout and the three-dimensional digital model of the jaw under the target tooth layout (the tooth layout expected to be achieved by orthodontic treatment), and the new positions of relevant soft tissue key points in the lateral film after orthodontic treatment can be calculated based on this, and then, the new positions of corresponding soft tissue key points in the lateral film after orthodontic treatment can be calculated based on this.

[0053] In one embodiment, in a scheme for calculating the position changes of relevant soft tissue key points based on the position changes of relevant hard tissue key points, the following hard tissue key points can be selected: A, L1, U1, B, Pog, Gn and Me, and the following soft tissue key points: Sn, ULmark, Ls, Stms, St, Stmi, Li, LLmark, Si, Pogmark, Gnmark and Memark.

[0054] The side view is deformed to produce a simulated side view after orthodontic treatment, generally only involving soft tissue key points. In one embodiment, the third group of key points can be the soft tissue key points listed above. It is understood that orthodontic treatment may only change the position of one or more of the third group of key points.

[0055] Although the transformation relationship between the initial state of the lateral view and the side view has been calculated in 105, if the key points in the lateral view are mapped to the side view based on the transformation relationship, these mapped key points may not completely overlap with the corresponding key points in the side view. Therefore, based on the transformation relationship, a key point in the lateral view after being moved is mapped to the side view, and it is directly used as the position of the corresponding key point in the side view after being moved, and this result may not be accurate enough.

[0056] In one embodiment, the moved position of a key point in the side view may be calculated based on a mapping of the old and new position difference of a key point in the side view in the side view and the original position of the corresponding key point in the side view.

[0057] Assume that the mapping of the original first key point in the lateral image in the lateral view is SB, the mapping of the first key point after the move in the lateral view is TB, the original first key point in the lateral view is SA, and the first key point after the move in the lateral view TA can be calculated according to the following equation (1):

[0058] TA=SA+TB-SB Equation (1)

[0059] In 111, deformation processing is performed on the deformation area of ​​the side view based on the new positions of the third group of key points in the side view.

[0060] In one embodiment, a block of the deformation area can be cropped from the side view in the initial state, the block can be deformed, and then the deformed block can be pasted back to the side view in the initial state to obtain a simulated side view after dental orthodontic treatment.

[0061] In one embodiment, a thin plate spline interpolation method (Thin Plate Spline) may be used to perform deformation processing on the image block.

[0062] In one embodiment, during the process of deforming the image block using the thin plate spline interpolation method, the positions of several points on the edge contour line of the image block may be kept unchanged. For example, for a rectangular image block, the positions of several points on its four corners and four sides may be kept unchanged before and after the deformation.

[0063] After the image block is deformed by thin plate spline interpolation, its edge contour may be deformed, either convex or concave. For the convex part, the original contour line of the image block can be used for cutting. For the concave part, its edge is a black border. In one embodiment, the black border can be filled / replaced with pixels on the edge line of the image block to eliminate the black border. In one embodiment, for a pixel of the black border, the pixel on the edge line closest to it can be used to fill it.

[0064] Finally, the deformed image block is pasted back to the side view in the initial state to obtain a simulated side view after dental orthodontic treatment.

[0065] In one embodiment, multiple side photos of the patient at different angles can be provided, and the transformation relationship between each side photo and the lateral film can be calculated respectively. After the key points in the lateral film are moved to new positions, the new positions of the corresponding key points in each side photo can be calculated and the side photo can be deformed based on the new positions. In this way, the patient can obtain simulated side photos after dental orthodontic treatment at different angles and better understand the changes in appearance after dental orthodontic treatment.

[0066] In light of the present application, it can be understood that, in addition to the application of generating simulated side photos after dental orthodontic treatment, the photo deformation method of the present application can also be used for other purposes. For example, it is used to predict the effect of plastic surgery, predict the new position of the corresponding key points after surgery based on the fluoroscopic photo of the patient's initial state, calculate the new position of the corresponding key points in the appearance photo of the patient's initial state at the same perspective, and then deform the appearance photo based on this to obtain a simulated postoperative photo. It can be understood that the "same perspective" here does not require the camera external parameters of the fluoroscopic photo and the appearance photo to be consistent, it only requires that the two photos be taken on the same side of the patient. The fluoroscopic photo is a photo of the patient taken by means such as x-ray fluoroscopy, which includes the patient's hard tissue and soft tissue. The appearance photo is a photo of the patient taken with an ordinary camera.

[0067] In another embodiment, the side view may be meshed first, for example, using a triangular mesh. Then, the third group of key points is used as control points of the meshed side view, and the mesh is adjusted so that the third group of key points become vertices of the mesh. Then, based on the new positions of the third group of key points, the new positions of other mesh vertices are calculated to achieve deformation processing of the side view, and obtain a simulated side view after dental orthodontic treatment.

[0068] In one embodiment, 2D Laplacian Curve Editing can be used to calculate the new positions of other mesh vertices based on the new positions of the third set of key points. In another embodiment, the algorithm disclosed in "As-Rigid-As-PossibleShape Manipulation" published by Takeo Igarashi, Tomer Moscovich and John F. Hughes in ACM Transactions on Graphics Volume 24 Issue 3 pp 1134-1141 in July 2005 can be used to calculate the new positions of other mesh vertices based on the new positions of the third set of key points.

[0069] Although various aspects and embodiments of the present application are disclosed herein, other aspects and embodiments of the present application will be apparent to those skilled in the art in light of the present application. The various aspects and embodiments disclosed herein are for illustrative purposes only and not for limiting purposes. The scope and subject matter of the present application are determined solely by the appended claims.

[0070] Likewise, various diagrams may illustrate exemplary architectures or other configurations of the disclosed methods and systems that aid in understanding the features and functions that may be included in the disclosed methods and systems. The claimed content is not limited to the exemplary architectures or configurations shown, and the desired features may be implemented with various alternative architectures and configurations. In addition, for flow charts, functional descriptions, and method claims, the order of blocks presented herein should not be limited to various embodiments that are implemented in the same order to perform the described functions, unless otherwise clearly indicated in the context.

[0071] Unless otherwise expressly noted, the terms and phrases used herein and their variations should be interpreted as open ended, not restrictive. In some instances, the appearance of broad words and phrases such as "one or more", "at least", "but not limited to", or other similar terms should not be understood as an intent or need to indicate a narrowing of the example where such broad terms may not be present.

Claims

1. A computer-implemented method for deforming a patient's appearance photograph, comprising: Obtain first-person perspective and appearance photos of the patient; Calculating a transformation relationship between the perspective photo and the appearance photo based on a first set of key points in the perspective photo and the appearance photo; Moving a second set of key points in the perspective photograph; Calculating new positions of the second group of key points in the appearance photo based on a mapping of the second group of key points in the perspective photo after the movement, a mapping of the second group of key points in the perspective photo before the movement, and the second group of key points in the appearance photo, wherein the mapping is based on the transformation relationship; as well as The appearance photo is deformed based on the new positions of the second group of key points in the appearance photo.

2. The computer-implemented method for deforming a patient's appearance photograph as claimed in claim 1, wherein: The transformation relationship is a homography transformation matrix.

3. The computer-implemented method for deforming a patient's appearance photograph as claimed in claim 1, wherein: It also includes: Determine the deformation area based on a third set of key points in the appearance photo; Cut out the deformation area block from the appearance photo; Deforming the deformation area block based on the new positions of the second group of key points in the deformation area block; and Paste the deformed area block back to the appearance photo to obtain a new appearance photo.

4. The computer-implemented method of deforming a patient's appearance photograph as claimed in claim 3, wherein: The deformation processing adopts thin plate spline interpolation method, and the method also includes: before pasting the deformation area block that has undergone deformation processing back to the appearance photo, the black edges generated by the deformation are filled with pixels on the edge line of the deformation area.

5. The computer-implemented method of deforming a patient's appearance photograph as claimed in claim 4, wherein: During the deformation process, the edge line of the deformation area block remains unchanged.

6. The computer-implemented method of deforming a patient's appearance photograph as claimed in claim 3, wherein: The fluoroscopic image is a lateral X-ray film, the appearance image is a side view, the method is used to generate a simulated side view of the patient after orthodontic treatment, and the deformation zone is an area covering the vicinity of the mouth.

7. The computer-implemented method of deforming a patient's appearance photograph as claimed in claim 1, wherein: The second group of key points are soft tissue key points, and the new positions of the second group of key points in the fluoroscopic image are calculated based on the new positions of the related hard tissue key points.

8. The computer-implemented method of deforming a patient's appearance photograph as claimed in claim 1, wherein: It also includes: Using the trained first deep neural network to identify key points needed in the perspective photo; and The trained second deep neural network is used to identify key points needed in the appearance photo.

9. A computer system for deforming a patient's appearance photograph, comprising a processor and a storage device, wherein the storage device stores a computer program for deforming a patient's appearance photograph. When the computer program is run, the processor executes the method for deforming a patient's appearance photograph as described in claim 1.