CN109801357B - Method and device for displaying three-dimensional digital model, storage medium and processor - Google Patents

Method and device for displaying three-dimensional digital model, storage medium and processor Download PDF

Info

Publication number
CN109801357B
CN109801357B CN201811474402.XA CN201811474402A CN109801357B CN 109801357 B CN109801357 B CN 109801357B CN 201811474402 A CN201811474402 A CN 201811474402A CN 109801357 B CN109801357 B CN 109801357B
Authority
CN
China
Prior art keywords
coordinate system
digital model
dimensional digital
target view
mdm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811474402.XA
Other languages
Chinese (zh)
Other versions
CN109801357A (en
Inventor
向小平
张健
马超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shining 3D Technology Co Ltd
Original Assignee
Shining 3D Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shining 3D Technology Co Ltd filed Critical Shining 3D Technology Co Ltd
Priority to CN201811474402.XA priority Critical patent/CN109801357B/en
Publication of CN109801357A publication Critical patent/CN109801357A/en
Application granted granted Critical
Publication of CN109801357B publication Critical patent/CN109801357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application discloses a method and a device for displaying a three-dimensional digital model, a storage medium and a processor. The method for displaying the three-dimensional model comprises the following steps: acquiring a three-dimensional digital model of an object to be detected; and displaying the three-dimensional digital model according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view, and the aim of displaying the view of the three-dimensional model as the target view according to the predetermined algorithm is fulfilled. The application solves the technical problem that the three-dimensional digital model cannot be automatically adjusted to the target view for display in the prior art.

Description

Method and device for displaying three-dimensional digital model, storage medium and processor
Technical Field
The application relates to the field of three-dimensional digital model processing, in particular to a method and a device for displaying a three-dimensional digital model, a storage medium and a processor.
Background
At present, an intraoral imaging technology is widely applied to dental digital solutions, a scanner slowly moves in an intraoral (or dental model) to acquire pictures of tooth surface contours and characteristics in real time, point cloud data are reconstructed in real time through an image reconstruction algorithm and a splicing algorithm, and then the point cloud data are subjected to splicing alignment and grid post-treatment to finally synthesize a usable 3D digital model. In the existing solution, each time one jaw is scanned, the reconstructed view of the model placement is irregular and circulated. The method is presented to the customer in a mode of manually correcting the posture of the dental jaw, but has the problems of inaccurate operation, untimely operation and the like. The model is not clearly compared with the real object in different views, the model is randomly placed, and the user experience is poor.
Aiming at the problem that the three-dimensional digital model cannot be automatically adjusted to be a target view for display in the prior art, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for displaying a three-dimensional digital model, a storage medium and a processor, which at least solve the technical problem that the three-dimensional digital model cannot be automatically adjusted to a target view for displaying in the prior art.
According to an aspect of an embodiment of the present application, there is provided a method of displaying a three-dimensional digital model, including: acquiring a three-dimensional digital model of an object to be detected; and displaying the three-dimensional digital model according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view.
Further, the coordinate system is a local coordinate system matrix, wherein the local coordinate system matrix at least comprises: the vector sum of the three directions X, Y, Z constituting the local coordinate system and the fitting plane center.
Further, determining the fit plane includes: calculating a mass distribution matrix MDM of a local coordinate system of the three-dimensional digital model, and determining the Z-axis vector; the MDM is an MDM under a local coordinate system when the three-dimensional digital model is located at an initial position; and calculating a fitting plane of the three-dimensional digital model according to the Z-axis vector in the MDM.
Further, determining the coordinate system includes: rotating and projecting vertexes of the three-dimensional digital model to the fitting plane, and calculating MDMs of corresponding vertexes in the fitting plane; and determining a coordinate system of the target view based on the MDM of the corresponding vertex in the fitting plane.
Further, determining the coordinate system includes: and adjusting each vector direction of the MDM of the corresponding vertex in the fitting plane according to the MDM of the local coordinate system to obtain the coordinate system of the target view.
Further, adjusting each vector direction of the MDM of the corresponding vertex in the fitting plane according to the MDM of the local coordinate system, and obtaining the coordinate system of the target view includes: judging whether the direction of the local coordinate axis meets the preset direction or not; when the direction of the coordinate axis of the local coordinate system does not meet the preset direction, adjusting the direction of the coordinate axis of the local coordinate system according to the MDM of the local coordinate system to obtain a coordinate system of the target view; and when the directions of the coordinate axes of the local coordinate system meet the preset directions, the current local coordinate system is used as the coordinate system of the target view.
Further, the acquiring the three-dimensional digital model of the object to be detected includes: the data to be processed in the three-dimensional digital model are unordered points with normal directions.
According to another aspect of an embodiment of the present application, there is provided a method of displaying a three-dimensional digital model of a tooth, comprising: acquiring a three-dimensional digital model of the tooth to be detected; and displaying the three-dimensional digital model of the tooth according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view of the three-dimensional digital model.
Further, the three-dimensional digital model of the tooth to be detected is obtained in a real-time mode.
According to another aspect of the embodiment of the present application, there is also provided an apparatus for displaying a three-dimensional digital model, including: the first acquisition unit is used for acquiring a three-dimensional digital model of the object to be detected; and the first display unit is used for displaying the three-dimensional digital model according to the target view based on a preset algorithm, wherein the preset algorithm is used for determining a coordinate system of the target view.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program, wherein the program, when run, performs the method of displaying a three-dimensional digital model as set forth in any one of the above.
According to another aspect of an embodiment of the present application, there is also provided a processor for running a program, where the program, when run, performs any one of the methods of displaying a three-dimensional digital model described above.
In the embodiment of the application, a three-dimensional digital model of an object to be detected is obtained; based on a preset algorithm, the three-dimensional digital model is displayed according to the target view, wherein the preset algorithm is used for determining a coordinate system of the target view, the purpose of displaying the view of the three-dimensional model as the target view according to the preset algorithm is achieved, and the technical problem that the three-dimensional digital model cannot be automatically adjusted to the target view for display in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment of a method of displaying a three-dimensional digital model according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of displaying a three-dimensional digital model according to an embodiment of the present application;
FIG. 3 is a flow chart of a method of displaying a three-dimensional digital model of a tooth according to an embodiment of the present application;
FIG. 4 is a grid model schematic of a three-dimensional digital model of teeth according to a preferred embodiment of the present application;
FIG. 5 is a schematic representation of a model partial pose of a three-dimensional digital model of teeth according to a preferred embodiment of the present application;
FIG. 6 is a schematic diagram of an apparatus for displaying a three-dimensional digital model according to an embodiment of the present application; and
fig. 7 is a schematic diagram of an apparatus for displaying a three-dimensional digital model of a tooth according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present application, there is provided a method embodiment for displaying a three-dimensional digital model, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order other than that shown or described herein.
Alternatively, in the present embodiment, the above method for displaying a three-dimensional digital model may be applied to a hardware environment composed of the server 102 and the terminal 104 as shown in fig. 1. As shown in fig. 1, server 102 is connected to terminal 104 via a network including, but not limited to: the terminal 104 is not limited to a PC, a mobile phone, a tablet computer, etc., but is a wide area network, a metropolitan area network, or a local area network. The method for displaying the three-dimensional digital model according to the embodiment of the present application may be performed by the server 102, may be performed by the terminal 104, or may be performed by both the server 102 and the terminal 104. The method for displaying the three-dimensional digital model performed by the terminal 104 according to the embodiment of the present application may also be performed by a client installed thereon.
Alternatively, the process of the server 102 executing the sentence class recognition method according to the embodiment of the present application may be described as: the server 102 acquires a three-dimensional digital model of an object to be detected; the server 102 displays the three-dimensional digital model in terms of the target view based on a predetermined algorithm that is used to determine the coordinate system of the target view.
Alternatively, the process of executing the sentence class recognition method by the terminal 104 or the client according to the embodiment of the present application may be described as: the terminal 104 or the client acquires a three-dimensional digital model of an object to be detected; the terminal 104 or the client displays the three-dimensional digital model according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view; the terminal 104 or the client displays the three-dimensional digital model according to the target view and transmits the three-dimensional digital model to the server 102.
Alternatively, the process of jointly executing the sentence class recognition method of the embodiment of the present application by the server 102 and the terminal 104 or the client may be described as: the terminal 104 or the client acquires a three-dimensional digital model of an object to be detected; the terminal 104 or the client displays the three-dimensional digital model according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view; the server 102 displays the three-dimensional digital model in accordance with the target view to the terminal 104 or client.
The method for displaying a three-dimensional digital model according to the embodiment of the present application will be described in detail below with a client as an execution subject.
FIG. 2 is a flow chart of a method of displaying a three-dimensional digital model according to an embodiment of the present application, as shown in FIG. 2, the method of displaying a three-dimensional digital model comprising the steps of:
step S202, a three-dimensional digital model of an object to be detected is obtained.
The data to be processed in the three-dimensional digital model is a normal disordered point, and the disordered point comprises Cloud or Mesh. The object to be detected may be any object including: a dental model.
Step S204, displaying the three-dimensional digital model according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view.
It should be noted that, the above coordinate system is a local coordinate system matrix, where the local coordinate system matrix may at least include: the vector sum of the three directions X, Y, Z constituting the local coordinate system and the fitting plane center.
Wherein the fitting plane may be determined by calculation by: calculating a mass distribution matrix MDM of a local coordinate system of the three-dimensional digital model, and determining a Z-axis vector in the MDM, wherein the MDM is the MDM under the local coordinate system when the three-dimensional digital model is positioned at an initial position; and calculating a fitting plane of the three-dimensional digital model according to the Z-axis amount in the MDM. The coordinate system may be determined by the following calculations including: rotating and projecting vertexes of the three-dimensional digital model to a fitting plane, and calculating MDMs of corresponding vertexes in the fitting plane; a coordinate system of the target view is determined based on the MDM of the corresponding vertex in the fitting plane.
It should also be noted that determining the coordinate system may further include: and adjusting each vector direction of the MDM of the corresponding vertex in the fitting plane according to the MDM of the local coordinate system to obtain the coordinate system of the target view.
Wherein, according to the MDM of the local coordinate system, adjusting each vector direction of the MDM of the corresponding vertex in the fitting plane, the coordinate system for obtaining the target view comprises: judging whether the direction of the coordinate axis of the local coordinate system meets the preset direction or not; when the direction of the coordinate axis of the local coordinate system does not meet the preset direction, adjusting the direction of the coordinate axis of the local coordinate system according to the MDM of the local coordinate system to obtain a coordinate system of the target view; when the directions of the coordinate axes of the local coordinate system meet the preset directions, the current local coordinate system is used as the coordinate system of the target view. For example, the coordinate axes of the local coordinate system may be reversely adjusted to obtain the coordinate system of the target view.
It should be noted that, the coordinate axes in the preset direction may be defined according to the need, and the directions of the other coordinate axes may be adjusted by means of a cartesian coordinate system when the coordinate adjustment is performed:
for example, when the Z axis does not meet the preset direction, the Z axis is inverted, and according to the cartesian coordinate system rule, the X axis needs to be inverted together, otherwise, the obtained coordinate system violates the cartesian coordinate; and when the X axis does not meet the preset direction, reversing the X axis, and according to the Cartesian coordinate system rule, reversing the Y axis together, otherwise, violating the Cartesian coordinate by the obtained coordinate system.
It should be further noted that, based on the predetermined algorithm, displaying the three-dimensional digital model according to the target view may include: in the determined local coordinate system of the target view, the updated three-dimensional digital model view is displayed according to the target view. And the displayed three-dimensional model can be displayed in a preset target view mode, so that the user experience is improved.
In order to improve the speed and accuracy of calculation, after the three-dimensional digital model of the object to be detected is acquired, the model can be uniformly and simply processed.
Through the steps, the three-dimensional digital model of the object to be detected is obtained; based on a preset algorithm, the three-dimensional digital model is displayed according to the target view, wherein the preset algorithm is used for determining a coordinate system of the target view, the purpose of displaying the view of the three-dimensional model as the target view according to the preset algorithm is achieved, and the technical problem that the three-dimensional digital model cannot be automatically adjusted to the target view for display in the prior art is solved.
FIG. 3 is a flow chart of a method of displaying a three-dimensional digital model of a tooth, as shown in FIG. 3, according to an embodiment of the present application, the method of displaying a three-dimensional model of a tooth comprising the steps of:
step S302, a three-dimensional digital model of the tooth to be detected is obtained.
It should be noted that, the three-dimensional digital model of the tooth to be detected may be obtained in a real-time manner, or the required three-dimensional digital model of the tooth model may be stored in the storage area in advance, so as to perform data processing, or the data may be processed while the data is obtained by scanning, that is, the user may select to store the data in advance according to the degree of convenience in obtaining the data, or may process the three-dimensional data of the tooth model while obtaining the data.
Step S304, displaying the three-dimensional digital model of the tooth according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view of the three-dimensional digital model.
The above-mentioned target view of the dental model is a forward view of the teeth, the forward view means that one side of the teeth next to the lips faces the user, the cusps face upward or downward or incline slightly, but the whole is still facing upward or downward, and the whole is centered or generally centered, preferably, the three-dimensional digital model of the teeth is displayed in accordance with the target view when the teeth of the dental patient are closed, of course, the three-dimensional digital model of the teeth can also be tilted slightly, which corresponds to the state that the teeth of the dental patient are slightly separated, the occlusal surface of the teeth can be observed, the specific setting of the target view can be determined according to the habit of the user, the display of the three-dimensional object models of different objects is also specifically set according to the characteristics of the objects, such as a cup, the general cup mouth faces upward, the cup bottom is downward, and the cup mouth faces upward and the cup bottom is also adopted for display when the three-dimensional digital model is displayed.
Alternatively, the view may be adjusted in real time during the acquisition of the three-dimensional digital model of the tooth, wherein the target view is updated continuously as the data increases, and in one embodiment the scanner and computer form a scanning system, the computer controls the scanner to scan the tooth to acquire the three-dimensional digital model of the tooth, and the computer adjusts the view of the three-dimensional digital model of the tooth as the tooth data increases; the view can be adjusted after the three-dimensional digital model of the tooth is completely acquired, the view is unchanged in the process of data increase, and the view is adjusted once only after the data acquisition is complete.
The present application also provides a preferred embodiment that provides a method of displaying a three-dimensional digital model of a tooth.
1. The obtained data of the three-dimensional digital model of the tooth are unordered point Cloud with normal direction or grid Mesh. As shown in fig. 4, a mesh model schematic of a three-dimensional digital model of a tooth.
2. In order to increase the calculation speed and accuracy, the model needs to be simplified uniformly. And uniformly collecting points on the point cloud by using the 3D grid.
3. And calculating a model local coordinate system mass distribution matrix MDM.
Wherein the mass distribution matrix is calculated as follows: firstly, calculating the center of gravity of a modelWherein p is i The world coordinate system is the vertex coordinates, N is the number of vertices, wherein the vertices are the vertices in the model mesh. To calculate three direction vectors, a covariance matrix is calculated, a= Σd i *(D i ) T *W i ) Wherein D is i =P i -Pcen,W i For the weight, the weight is the vertex p i The relative proportion of the model is usually 1.0.
And calculating covariance matrix eigenvectors. Covariance matrix eigenvectors are calculated by self-adjoint matrix decomposition. The self-adjoint matrix is a symmetric matrix in real space, there is a set of eigenvalues λ and a set of vectors v such that a=λ. If the diagonal matrix D is composed of eigenvalues, and the column vector of the reversible matrix V is the eigenvector corresponding to the eigenvalue, a=v×d×v' is called self-adjoint matrix decomposition, and the eigenvector can be obtained by substituting the covariance matrix a.
4. A fitting plane of the model is calculated. The center of gravity of the model is taken as a plane center Pori of a fitting plane, and a feature vector corresponding to the maximum feature value lambda is a plane normal (model local posture Z-axis orientation) Pnrv.
5. The vertices of the tooth three-dimensional model are rotated and projected to a fitting plane, and MDM of the vertices in the fitting plane is calculated.
Wherein, the tooth three-dimensional model vertex rotates and projects to the plane as follows:
the rotation matrix RT is calculated first. Rotating from shaft Pnrv to Z axis (0, 1), rotation center is Pori, rotation axis is Z.Cross (Pori), rotation radian is |cos (Z dot (Pori))|. The rotated projection vertex Proj is calculated again. The rotation coordinate point ri=rt×p, and the projection coordinate point pro=r- (R-Pori) ·dot (Z) ×z. And 3, calculating a feature vector corresponding to the minimum feature value as a local gesture Zaxis by using Proj through the step 3, wherein the feature vector corresponding to the next-smallest feature value is the local gesture Xaxis, and Yaxis=Zaxis. As shown in fig. 5, a model partial pose of a three-dimensional model of teeth is schematically represented.
6. And adjusting the direction of the three-dimensional coordinates. Zaxis and Xaxis are updated first. Computing the general direction of the original patch or vertexIf Zaxis and Nrv are opposite in coordinate direction, zaxis and Xaxis are rotated 180 deg. to adjust the direction. Xaxis and Yaxis are updated again. Calculating the overall direction of the center of gravity Pcen of the model to the direction of the patch center point fcen (or the original vertex) which is the same direction as the patch normal fnrv ∈ ->If Dir is opposite to the Xaxis coordinate direction, xaxis and Yaxis are rotated 180 ° to adjust the coordinate axis direction.
7. The local posture matrix [ Xaxis, yaxis, zaxis, pori ] (corresponding to the local coordinate system matrix) is obtained through the calculation of the steps, and then the display view of the three-dimensional digital model of the tooth is updated according to the local posture matrix.
Through the above preferred embodiment, the obtained three-dimensional digital model of the tooth is simplified, then the coordinate system is calculated, and finally the local posture matrix is obtained, so that the obtained three-dimensional digital model of the tooth is automatically aligned, and the user experience is improved.
According to the embodiment of the present application, there is further provided an embodiment of a device for displaying a three-dimensional digital model, and it should be noted that the device for displaying a three-dimensional digital model may be used to perform the method for displaying a three-dimensional digital model in the embodiment of the present application, that is, the method for displaying a three-dimensional digital model in the embodiment of the present application may be performed in the device for displaying a three-dimensional digital model.
FIG. 6 is a schematic diagram of an apparatus for displaying a three-dimensional digital model, as shown in the figure, according to an embodiment of the present application, the apparatus for displaying a three-dimensional digital model may include: the first acquisition unit 61 and the first display unit 63. The specific description is as follows.
A first acquisition unit 61 for acquiring a three-dimensional digital model of an object to be detected.
The data to be processed in the three-dimensional digital model is unordered points to be normal, and the unordered points comprise Cloud clouds or grid Mesh.
A first display unit 63 for displaying the three-dimensional digital model according to the target view based on a predetermined algorithm for determining a coordinate system of the target view.
It should be noted that, the above coordinate system is a local coordinate system matrix, where the local coordinate system matrix may at least include: the vector sum of the three directions X, Y, Z constituting the local coordinate system and the fitting plane center.
Wherein, the first display unit 63 may include: and the updating module is used for updating the three-dimensional digital model view to be displayed according to the target view in the determined local coordinate system of the target view. And the displayed three-dimensional model can be displayed in a preset target view mode, so that the experience of the user is improved.
By the above apparatus, a three-dimensional digital model of an object to be detected is acquired by the first acquisition unit 61; the first display unit 63 displays the three-dimensional digital model according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view, so that the purpose of displaying the view of the three-dimensional model as the target view according to the predetermined algorithm is achieved, and further the technical problem that the three-dimensional digital model cannot be automatically adjusted to be the target view for display in the prior art is solved.
It should be noted that, the first obtaining unit 61 in this embodiment may be used to perform step S202 in the embodiment of the present application, and the first display unit 63 in this embodiment may be used to perform step S204 in the embodiment of the present application. The above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments.
As an alternative embodiment, the apparatus may include: the first calculation unit is used for calculating a mass distribution matrix MDM of a local coordinate system of the three-dimensional digital model and determining a Z-axis vector in the MDM, wherein the MDM is the MDM under the local coordinate system when the three-dimensional digital model is positioned at an initial position; and a second calculating unit for calculating the fitting plane of the three-dimensional digital model according to the Z-axis vector in the MDM. A third calculation unit for rotating and projecting the vertexes of the three-dimensional digital model to a fitting plane, calculating MDMs of the corresponding vertexes in the fitting plane, and determining a coordinate system of the target view based on the MDMs of the corresponding vertexes in the fitting plane; and the obtaining unit is used for adjusting each vector direction of the MDM of the corresponding vertex in the fitting plane according to the MDM of the local coordinate system to obtain the coordinate system of the target view.
Wherein, the obtaining unit may further include: the judging module is used for judging whether the direction of the coordinate axis of the local coordinate system meets the preset direction or not; the first processing module is used for inverting the direction of the coordinate axis of the local coordinate system according to the MDM of the local coordinate system when the direction of the coordinate axis of the local coordinate system does not meet the preset direction, so as to obtain a coordinate system of the target view; and the second processing module is used for taking the current local coordinate system as the coordinate system of the target view when the direction of the coordinate axes of the local coordinate system meets the preset direction.
As an alternative embodiment, to increase the speed and accuracy of the calculation, the apparatus further comprises: and the simplification unit is used for carrying out uniform and simplified processing on the model after acquiring the three-dimensional digital model of the object to be detected.
Fig. 7 is a schematic view of an apparatus for displaying a three-dimensional digital model of teeth according to an embodiment of the present application, as shown in fig. 7, the apparatus for displaying a three-dimensional digital model comprising the steps of: the second acquisition unit 71 and the second display unit 73. The specific description is as follows.
A second acquisition unit 71 for acquiring a three-dimensional digital model of the tooth to be detected.
It should be noted that, the three-dimensional digital model of the tooth to be detected may be obtained in a real-time manner, or the required three-dimensional digital model of the tooth model may be stored in the storage area in advance, so as to perform data processing, or the data may be processed while the data is obtained through scanning, that is, the user may select to store the data in advance according to the degree of convenience in obtaining the data, or may process the three-dimensional data of the tooth model while obtaining the data.
A second display unit 73 for displaying the three-dimensional digital model of the tooth according to the target view based on a predetermined algorithm for determining a coordinate system of the target view of the dental model.
It should be noted that, the target view of the dental model may be a target view of a user's daily habit, for example, when the three-dimensional digital model of the tooth is displayed, the three-dimensional digital model of the tooth may be a target view when we are closing the tooth for viewing.
With the above-described embodiment, the second acquisition unit 71 is configured to acquire a three-dimensional digital model of the tooth to be detected. A second display unit 73 for displaying the three-dimensional digital model of the tooth according to the target view based on a predetermined algorithm for determining a coordinate system of the target view of the dental model. The three-dimensional data model of the dental model can be displayed according to the target view, so that a user can conveniently analyze the tooth condition according to the dental model.
According to another aspect of the present application, an embodiment of the present application further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is controlled to execute the method for displaying a three-dimensional digital model described above.
According to another aspect of the present application, an embodiment of the present application further provides a processor, where the processor is configured to execute a program, where the program executes the method for displaying a three-dimensional digital model described above.
The embodiment of the application provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program: acquiring a three-dimensional digital model of an object to be detected; the three-dimensional digital model is displayed according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view.
The coordinate system is a local coordinate system matrix, wherein the local coordinate system matrix at least comprises: the vector sum of the three directions X, Y, Z constituting the local coordinate system and the fitting plane center.
Determining the fitting plane includes: calculating a mass distribution matrix MDM of a local coordinate system of the three-dimensional digital model, and determining a Z-axis vector in the MDM, wherein the MDM is the MDM under the local coordinate system when the three-dimensional digital model is positioned at an initial position; and calculating a fitting plane of the three-dimensional digital model according to the Z-axis amount in the MDM.
Determining the coordinate system includes: rotating and projecting vertexes of the three-dimensional digital model to a fitting plane, and calculating MDMs of corresponding vertexes in the fitting plane; a coordinate system of the target view is determined based on the MDM of the corresponding vertex in the fit plane.
Determining the coordinate system includes: and adjusting each vector direction of the MDM of the corresponding vertex in the fitting plane according to the MDM of the local coordinate system to obtain the coordinate system of the target view.
Adjusting each vector direction of MDMs of corresponding vertexes in a fitting plane according to MDMs of the local coordinate system, and obtaining the coordinate system of the target view comprises the following steps: judging whether the direction of the coordinate axis of the local coordinate system meets the preset direction or not; when the direction of the coordinate axis of the local coordinate system does not meet the preset direction, reversing the direction of the coordinate axis of the local coordinate system according to the MDM of the local coordinate system to obtain a coordinate system of the target view; when the directions of the coordinate axes of the local coordinate system meet the preset directions, the current local coordinate system is used as the coordinate system of the target view.
The method for obtaining the three-dimensional digital model of the object to be detected comprises the following steps: the data to be processed in the three-dimensional digital model are unordered points with normal directions. The devices herein may be servers, PCs, PADs, cell phones, three-dimensional scanners, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: acquiring a three-dimensional digital model of an object to be detected; the three-dimensional digital model is displayed according to the target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view.
The coordinate system is a local coordinate system matrix, wherein the local coordinate system matrix at least comprises: the vector sum of the three directions X, Y, Z constituting the local coordinate system and the fitting plane center.
Determining the fitting plane includes: calculating a mass distribution matrix MDM of a local coordinate system of the three-dimensional digital model, and determining a Z-axis vector in the MDM, wherein the MDM is the MDM under the local coordinate system when the three-dimensional digital model is positioned at an initial position; and calculating a fitting plane of the three-dimensional digital model according to the Z-axis amount in the MDM.
Determining the coordinate system includes: and rotating and projecting the vertexes of the three-dimensional digital model to a fitting plane, calculating MDMs of the corresponding vertexes in the fitting plane, and determining a coordinate system of the target view based on the MDMs of the corresponding vertexes in the fitting plane.
Determining the coordinate system includes: and adjusting each vector direction of the MDM of the corresponding vertex in the fitting plane according to the MDM of the local coordinate system to obtain the coordinate system of the target view.
Adjusting each vector direction of MDMs of corresponding vertexes in a fitting plane according to MDMs of the local coordinate system, and obtaining the coordinate system of the target view comprises the following steps: judging whether the direction of the coordinate axis of the local coordinate system meets the preset direction or not; when the direction of the coordinate axis of the local coordinate system does not meet the preset direction, reversing the direction of the coordinate axis of the local coordinate system according to the MDM of the local coordinate system to obtain a coordinate system of the target view; when the directions of the coordinate axes of the local coordinate system meet the preset directions, the current local coordinate system is used as the coordinate system of the target view.
The method for obtaining the three-dimensional digital model of the object to be detected comprises the following steps: the data to be processed in the three-dimensional digital model are unordered points with normal directions.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method of displaying a three-dimensional digital model, comprising:
acquiring a three-dimensional digital model of an object to be detected;
updating the three-dimensional digital model view to be displayed according to a target view based on a preset algorithm, wherein the preset algorithm is used for determining a coordinate system of the target view, the coordinate system is a local coordinate system matrix, and the local coordinate system matrix at least comprises: vector sums of three directions X, Y, Z constituting a local coordinate system and a fitting plane center, wherein determining the coordinate system comprises:
and rotating and projecting the vertexes of the three-dimensional digital model to the fitting plane, calculating a mass distribution matrix MDM of the corresponding vertexes in the fitting plane, and determining a coordinate system of the target view based on the mass distribution matrix MDM of the corresponding vertexes in the fitting plane.
2. The method of claim 1, wherein determining the fit plane comprises:
calculating a mass distribution matrix MDM of a local coordinate system of the three-dimensional digital model, and determining a Z-axis vector in the MDM, wherein the MDM is the MDM under the local coordinate system when the three-dimensional digital model is positioned at an initial position;
and calculating a fitting plane of the three-dimensional digital model according to the Z-axis vector in the MDM.
3. The method of claim 1, wherein determining the coordinate system comprises:
and adjusting each vector direction of the MDM of the corresponding vertex in the fitting plane according to the MDM of the local coordinate system to obtain the coordinate system of the target view.
4. A method according to claim 3, wherein adjusting the respective vector directions of MDMs of corresponding vertices in the fitting plane according to the MDMs of the local coordinate system, resulting in the coordinate system of the target view comprises:
judging whether the direction of the coordinate axis of the local coordinate system meets the preset direction or not;
when the direction of the coordinate axis of the local coordinate system does not meet the preset direction, adjusting the direction of the coordinate axis of the local coordinate system according to the MDM of the local coordinate system to obtain a coordinate system of the target view;
and when the directions of the coordinate axes of the local coordinate system meet the preset directions, the current local coordinate system is used as the coordinate system of the target view.
5. The method of claim 1, wherein the acquiring a three-dimensional digital model of the object to be inspected comprises: the data to be processed in the three-dimensional digital model are unordered points with normal directions.
6. A method of displaying a three-dimensional digital model of a tooth, comprising:
acquiring a three-dimensional digital model of the tooth to be detected;
displaying the three-dimensional digital model of the tooth according to a target view based on a predetermined algorithm, wherein the predetermined algorithm is used for determining a coordinate system of the target view of the three-dimensional digital model, wherein the coordinate system is a local coordinate system matrix, and the local coordinate system matrix at least comprises: vector sums of three directions X, Y, Z constituting a local coordinate system and a fitting plane center, wherein determining the coordinate system comprises:
and rotating and projecting the vertexes of the three-dimensional digital model to the fitting plane, calculating a mass distribution matrix MDM of the corresponding vertexes in the fitting plane, and determining a coordinate system of the target view based on the mass distribution matrix MDM of the corresponding vertexes in the fitting plane.
7. The method of claim 6, wherein the three-dimensional digital model of the tooth to be inspected is obtained in real-time.
8. An apparatus for displaying a three-dimensional digital model, comprising:
the first acquisition unit is used for acquiring a three-dimensional digital model of the object to be detected;
the second display unit is configured to display the three-dimensional digital model according to a target view based on a predetermined algorithm, where the predetermined algorithm is used to determine a coordinate system of the target view, and the coordinate system is a local coordinate system matrix, and the local coordinate system matrix at least includes: the vector sum and fitting plane center of the three directions X, Y, Z constituting the local coordinate system, wherein the apparatus further comprises a third computing unit for:
and rotating and projecting the vertexes of the three-dimensional digital model to the fitting plane, calculating a mass distribution matrix MDM of the corresponding vertexes in the fitting plane, and determining a coordinate system of the target view based on the mass distribution matrix MDM of the corresponding vertexes in the fitting plane.
9. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the method of three-dimensional digital model display of any one of claims 1 to 7.
10. A processor for executing a program, wherein the program when executed performs the method of three-dimensional digital model display of any one of claims 1 to 7.
CN201811474402.XA 2018-12-04 2018-12-04 Method and device for displaying three-dimensional digital model, storage medium and processor Active CN109801357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811474402.XA CN109801357B (en) 2018-12-04 2018-12-04 Method and device for displaying three-dimensional digital model, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811474402.XA CN109801357B (en) 2018-12-04 2018-12-04 Method and device for displaying three-dimensional digital model, storage medium and processor

Publications (2)

Publication Number Publication Date
CN109801357A CN109801357A (en) 2019-05-24
CN109801357B true CN109801357B (en) 2023-10-31

Family

ID=66556432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811474402.XA Active CN109801357B (en) 2018-12-04 2018-12-04 Method and device for displaying three-dimensional digital model, storage medium and processor

Country Status (1)

Country Link
CN (1) CN109801357B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111798571A (en) * 2020-05-29 2020-10-20 先临三维科技股份有限公司 Tooth scanning method, device, system and computer readable storage medium
CN115068140A (en) * 2022-06-17 2022-09-20 先临三维科技股份有限公司 Tooth model acquisition method, device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005165283A (en) * 2003-11-13 2005-06-23 Matsushita Electric Ind Co Ltd Map display device
CN1694126A (en) * 2005-06-02 2005-11-09 中国科学院力学研究所 System and method for building three-dimentional scene dynamic model and real-time simulation
CN101692286A (en) * 2009-09-15 2010-04-07 上海交通大学 Method for acquiring three-view drawing of medical image
CN102722911A (en) * 2011-09-23 2012-10-10 新奥特(北京)视频技术有限公司 OpenGL model transformation-based method and system for acquiring three-dimensional coordinate
WO2015096518A1 (en) * 2013-12-25 2015-07-02 湖南三一智能控制设备有限公司 Method and apparatus for dynamically displaying three-dimensional model
CN106503351A (en) * 2016-10-25 2017-03-15 上海电机学院 A kind of behavior modeling method of moving vehicle in virtual environment
CN108629830A (en) * 2018-03-28 2018-10-09 深圳臻迪信息技术有限公司 A kind of three-dimensional environment method for information display and equipment
CN108765496A (en) * 2018-05-24 2018-11-06 河海大学常州校区 A kind of multiple views automobile looks around DAS (Driver Assistant System) and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7023432B2 (en) * 2001-09-24 2006-04-04 Geomagic, Inc. Methods, apparatus and computer program products that reconstruct surfaces from data point sets
CN104240302B (en) * 2014-09-03 2017-12-15 青岛海信移动通信技术股份有限公司 A kind of image display method and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005165283A (en) * 2003-11-13 2005-06-23 Matsushita Electric Ind Co Ltd Map display device
CN1694126A (en) * 2005-06-02 2005-11-09 中国科学院力学研究所 System and method for building three-dimentional scene dynamic model and real-time simulation
CN101692286A (en) * 2009-09-15 2010-04-07 上海交通大学 Method for acquiring three-view drawing of medical image
CN102722911A (en) * 2011-09-23 2012-10-10 新奥特(北京)视频技术有限公司 OpenGL model transformation-based method and system for acquiring three-dimensional coordinate
WO2015096518A1 (en) * 2013-12-25 2015-07-02 湖南三一智能控制设备有限公司 Method and apparatus for dynamically displaying three-dimensional model
CN106503351A (en) * 2016-10-25 2017-03-15 上海电机学院 A kind of behavior modeling method of moving vehicle in virtual environment
CN108629830A (en) * 2018-03-28 2018-10-09 深圳臻迪信息技术有限公司 A kind of three-dimensional environment method for information display and equipment
CN108765496A (en) * 2018-05-24 2018-11-06 河海大学常州校区 A kind of multiple views automobile looks around DAS (Driver Assistant System) and method

Also Published As

Publication number Publication date
CN109801357A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
WO2021174939A1 (en) Facial image acquisition method and system
US11302064B2 (en) Method and apparatus for reconstructing three-dimensional model of human body, and storage medium
US10102639B2 (en) Building a three-dimensional composite scene
US20210312220A1 (en) Photograph-based assessment of dental treatments and procedures
US20210118159A1 (en) Method and device for image processing
CN108305312B (en) Method and device for generating 3D virtual image
EP3992919B1 (en) Three-dimensional facial model generation method and apparatus, device, and medium
US11257299B2 (en) Face model processing for facial expression method and apparatus, non-volatile computer-readable storage-medium, and electronic device
CN111369428B (en) Virtual head portrait generation method and device
CN109801357B (en) Method and device for displaying three-dimensional digital model, storage medium and processor
US20200327728A1 (en) Virtual asset map and index generation systems and methods
CN110689626A (en) Game model rendering method and device
CN111599002A (en) Method and apparatus for generating image
CN109035380B (en) Face modification method, device and equipment based on three-dimensional reconstruction and storage medium
JP4809480B2 (en) Computer graphics method and system for generating images with rounded corners
CN110751026B (en) Video processing method and related device
CN113223137B (en) Generation method and device of perspective projection human face point cloud image and electronic equipment
CN115830202A (en) Three-dimensional model rendering method and device
CN114399800A (en) Human face posture estimation method and device
CN111582120A (en) Method and terminal device for capturing eyeball activity characteristics
CN113223128A (en) Method and apparatus for generating image
CN111524062B (en) Image generation method and device
CN116597079A (en) Three-dimensional virtual face generation method and device and electronic equipment
CN114596357A (en) Pose precision evaluation method and device based on simulation data
CN114283238A (en) Data enhancement method, neural network training method, image processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant