A fast method for 3D head data alignment
By constructing a three-dimensional model of the skull and automatically calculating the rotation angle using the symmetry of the skull, the problem of errors introduced by manual calibration in cephalometric measurements is solved, and fast and high-precision three-dimensional head data alignment is achieved.
Patent Information
- Application Number
- CN202311724396.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-12-14
AI Technical Summary
In the existing technology, the head position calibration process for cephalometric measurement relies on manual calibration, which is cumbersome and can easily introduce left-right symmetry errors, affecting the accuracy of three-dimensional cephalometric measurement.
By analyzing 3D medical image data, a 3D skull model is constructed, the left-right symmetry of the skull is used to automatically calculate the rotation angle, and grayscale images are generated for orbital and ear point calibration, achieving high-precision orthotopic calibration of 3D skull data.
It achieves fast and accurate three-dimensional head data alignment, improves the accuracy of left and right symmetry, and simplifies the operation process.
Smart Images

Figure CN117726752B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of medical imaging, surgical orthodontics and maxillofacial plastic surgery, and specifically is a fast three-dimensional skull data orthographic calibration method. Background Art
[0002] Cephalometric analysis is an important technical means to study the anatomical structure and growth and development status of the head, and is usually performed based on two-dimensional X-rays. However, when taking X-rays, the head posture is difficult to be completely symmetrical, resulting in imaging errors. With the application of three-dimensional imaging technologies such as computed tomography (CT) and magnetic resonance imaging (MRI), three-dimensional cephalometric measurement has become possible. Head alignment is the initial step in three-dimensional cephalometric measurement, which usually involves adjusting the three-dimensional head data to be symmetrical about the yoz plane and the eye-ear plane to be parallel to the xoy plane. However, at present, it mainly relies on manual calibration of feature points and multiple iterative adjustments. The operation is cumbersome and easily introduces errors in accuracy, especially in terms of left-right symmetry, so it needs to be improved. Summary of the invention
[0003] The purpose of the present invention is to provide a fast three-dimensional head data alignment method to solve the problems raised in the above background technology.
[0004] In order to achieve the above object, the present invention provides the following technical solution: a fast three-dimensional head data alignment method, the alignment method comprises the following steps:
[0005] S1, analyzes 3D medical imaging data and constructs a 3D model of the skull;
[0006] S2, perform zero mean processing on each column of vertex V: calculate the mean [Xmean, Ymean, Zmean] of each column of V, and subtract the mean of each column of V from the mean of the column;
[0007] S3, generate the mirror vertex V1 of V about the X axis: multiply the first column of V by -1 and keep the second and third columns unchanged to obtain V1;
[0008] S4, calculate the rotation angle θ required for V to rotate along the Z axis to achieve maximum overlap with V1;
[0009] S5, rotate the three-dimensional voxel D to be symmetrical about the plane x=Xmean; rotate the three-dimensional voxel D along a straight line parallel to the z-axis by an angle of θ / 2;
[0010] S6, calculating the accumulated image I of the three-dimensional voxel D along the x-axis and performing grayscale normalization;
[0011] S7, calibrating the coordinates of the orbital point and the ear point of the skull; calibrating the coordinates of the orbital point and the ear point of the skull on the accumulated image I;
[0012] S8, calculate the angle α between the straight line connecting the orbital point and the ear point and the y-axis;
[0013] S9, generating a three-dimensional model after ortho-calibration.
[0014] Preferably, the detailed steps of parsing and constructing in S1 are:
[0015] Step 1: read the three-dimensional voxel D from DICOM data. DICOM is a standard format for medical images and related information. The three-dimensional voxel D is regarded as a three-dimensional matrix, which represents the image data of the head CT or MRI scan;
[0016] Step 2: According to the patient position and image orientation information in the DICOM data, the three-dimensional voxel D is adjusted to the standard orientation to ensure the correctness of the head position in the three-dimensional space for subsequent processing and analysis;
[0017] Step 3, using an isosurface extraction algorithm and a set bone density threshold, extracting a three-dimensional model of the skull from the three-dimensional voxel D;
[0018] The three-dimensional model includes vertices V and triangular faces F; the vertex V is a matrix of n rows and 3 columns, where the number of rows n is the number of vertices, and the 3 columns represent the x, y, and z coordinates of the vertices respectively; the triangular face F is the face connecting the vertices.
[0019] Preferably, the isosurface extraction algorithm in step 3 is a common method for generating a three-dimensional model from CT or MRI scan data, which connects points with the same density according to the density value of pixels or voxels to form a continuous surface;
[0020] Bone density thresholds can be used to differentiate between bone and soft tissue.
[0021] Preferably, the step of generating the three-dimensional model in S9 is:
[0022] A1, rotate V along the z axis by an angle of θ / 2 to obtain V2;
[0023] A2, rotate V2 along the x-axis by an angle of α to obtain V3. Vertex V3 and triangular face F constitute the three-dimensional head model after the correction.
[0024] Preferably, the calculation step of the rotation angle θ in S4 is:
[0025] B1, determine a reasonable rotation angle range, such as ±15°;
[0026] B2, search within this range with a certain step length; after each rotation, the registration error between the rotated V and V1 is calculated using the point cloud registration algorithm;
[0027] B3, find the rotation angle corresponding to the minimum registration error, which is the required θ.
[0028] Preferably, the orbital point and ear point coordinates of the skull in S7 are calibrated by manually calibrating the coordinates of the two key points; or by automatically calibrating the algorithm using a trained image target detection deep learning model.
[0029] The beneficial effects of the present invention are as follows:
[0030] The present invention introduces a fast alignment method based on three-dimensional skull data. First, we reconstruct three-dimensional skull voxels from DICOM data. Then, we use the left-right symmetry of the skull to automatically calculate the rotation angle parameters so that the three-dimensional voxels reach a left-right symmetric state. Next, we generate a grayscale image similar to a head X-ray through the voxel stacking accumulation technology. Finally, we can automatically or manually calibrate the orbital point and ear point on this grayscale image, and calculate the rotation angle through these calibration points, thereby realizing high-precision alignment of the three-dimensional skull data. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flow chart of the method for calibrating the three-dimensional skull data in the present invention;
[0032] Figure 2 The figure is a flow chart of the steps for constructing a three-dimensional skull model of the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] like Figure 1 to Figure 2 As shown, the embodiment of the present invention provides a fast three-dimensional head data alignment method, and the alignment method comprises the following steps:
[0035] S1, analyzes 3D medical imaging data and constructs a 3D model of the skull;
[0036] S2, perform zero mean processing on each column of vertex V: calculate the mean [Xmean, Ymean, Zmean] of each column of V, and subtract the mean of each column of V from the mean of the column;
[0037] S3, generate the mirror vertex V1 of V about the X axis: multiply the first column of V by -1 and keep the second and third columns unchanged to obtain V1;
[0038] S4, calculate the rotation angle θ required for V to rotate along the Z axis to achieve maximum overlap with V1;
[0039] S5, rotate the three-dimensional voxel D to be symmetrical about the plane x=Xmean; rotate the three-dimensional voxel D by an angle of θ / 2 along a straight line (x=Xmean, y=Ymean) parallel to the z-axis;
[0040] S6, calculating the accumulated image I of the three-dimensional voxel D along the x-axis and performing grayscale normalization;
[0041] This method of stacking and accumulating voxels is similar to the principle of X-ray fluoroscopic imaging, so the grayscale image obtained is also very similar to the head X-ray image. The key points on the skull can be calibrated on this grayscale image manually or through a deep learning model of target detection;
[0042] S7, calibrate the coordinates of the orbital point and ear point of the skull; calibrate the coordinates of the orbital point (Sella) and ear point (Porion) of the skull on the accumulated image I;
[0043] S8, calculate the angle α between the straight line connecting the orbital point and the ear point and the y-axis;
[0044] S9, generating a three-dimensional model after ortho-calibration.
[0045] Among them, the detailed steps of parsing and construction in S1 are:
[0046] Step 1: read the three-dimensional voxel D from DICOM data. DICOM is a standard format for medical images and related information. The three-dimensional voxel D is regarded as a three-dimensional matrix, which represents the image data of the head CT or MRI scan;
[0047] Step 2: According to the patient position and image orientation information in the DICOM data, adjust the three-dimensional voxel D to the standard orientation; ensure the correctness of the head position in the three-dimensional space for subsequent processing and analysis; To read the three-dimensional voxel D in the DICOM data of head CT or MRI, you can use the method provided by the third-party library pydicom in Python language. Specifically, we can use the pydicom library to extract the corresponding two-dimensional slice information from each DICOM file, and then stack these two-dimensional slices into a three-dimensional matrix according to the slice position information in each DICOM file. In this way, a three-dimensional matrix D containing detailed image information of the head can be obtained;
[0048] Step 3, using an isosurface extraction algorithm and a set bone density threshold, extracting a three-dimensional model of the skull from the three-dimensional voxel D;
[0049] According to the patient position information and image orientation information contained in the DICOM data, we need to adjust the 3D voxel D to the standard orientation. Specifically, the positive x-axis of the standard orientation is from the right shoulder to the left shoulder, the positive y-axis is from the front chest to the back, and the positive z-axis is from the foot to the head. After reading the position and orientation information, we can construct a 3D transformation matrix based on the relationship between the current position and the standard orientation. Then, we use this transformation matrix to transform the coordinates of the 3D voxel to adjust it to the standard orientation.
[0050] The three-dimensional model includes vertices V and triangular faces F; vertex V is a matrix of n rows and 3 columns, where the number of rows n is the number of vertices, and the 3 columns represent the x, y, and z coordinates of the vertices respectively; triangular face F is the face connecting the vertices. Such a model can better represent the shape and structure of the head.
[0051] By applying an isosurface extraction algorithm to the voxel data and combining it with a preset bone density threshold, we extracted a 3D model of the skull. This 3D model consists of vertices V and triangular faces F. Vertices V are represented as a matrix with n rows and 3 columns, where n represents the number of vertices and the 3 columns of the matrix correspond to the x, y, and z coordinates of each vertex.
[0052] Among them, the isosurface extraction algorithm in step 3 is a common method for generating a three-dimensional model from CT or MRI scan data. It connects points with the same density according to the density value of pixels or voxels to form a continuous surface;
[0053] Bone density thresholds can be used to differentiate between bone and soft tissue.
[0054] Among them, the steps for generating the three-dimensional model in S9 are:
[0055] A1, rotate V along the z axis by an angle of θ / 2 to obtain V2;
[0056] A2, rotate V2 along the x-axis by an angle of α to obtain V3. Vertex V3 and triangular face F constitute the three-dimensional head model after the correction.
[0057] Among them, the calculation steps of the rotation angle θ in S4 are:
[0058] B1, determine a reasonable rotation angle range, such as ±15°;
[0059] B2, search within this range with a certain step size (such as 1°); after each rotation, use the point cloud registration algorithm (such as the iterative closest point algorithm: IterativeClosestPoint-ICP) to calculate the registration error between the rotated V and V1;
[0060] B3, find the rotation angle corresponding to the minimum registration error, which is the required θ.
[0061] Among them, the calibration method of the orbital point and ear point coordinates of the skull in S7 is: manually calibrating the coordinates of the two key points; or automatically calibrating the algorithm through a trained image target detection deep learning model (such as YOLO, SSD, RCNN, etc.).
[0062] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0063] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A fast three-dimensional head data alignment method, characterized by: The steps of the positive calibration method are: S1, analyzes 3D medical imaging data and constructs a 3D model of the skull; S2, perform zero mean processing on each column of vertex V: calculate the mean [Xmean, Ymean, Zmean] of each column of V, and subtract the mean of each column of V; S3, generate the mirror vertex V1 of V about the X axis: multiply the first column of V by -1 and keep the second and third columns unchanged to obtain V1; S4, calculate the rotation angle θ required for V to rotate along the Z axis to achieve maximum overlap with V1; S5, rotate the three-dimensional voxel D to be symmetrical about the plane x=Xmean; rotate the three-dimensional voxel D along a straight line parallel to the z-axis by an angle of θ / 2; S6, calculating the cumulative image I of the three-dimensional voxel D along the x-axis and performing grayscale normalization; S7, calibrating the coordinates of the orbital point and the ear point of the skull: calibrating the coordinates of the orbital point and the ear point of the skull on the accumulated image I; S8, calculate the angle α between the straight line connecting the orbital point and the ear point and the y-axis; S9, generating a three-dimensional model after orthographic calibration.
2. A rapid three-dimensional skull data alignment method according to claim 1, characterized in that: The detailed steps of the analysis and construction in S1 are: Step 1: Read 3D voxels D from DICOM data. DICOM is a standard format for medical images and related information. 3D voxels D are considered as a 3D matrix representing image data from a head CT or MRI scan. Step 2: Adjust the 3D voxel D to a standard orientation based on the patient position and image orientation information in the DICOM data; Ensure the correct position of the head in three-dimensional space for subsequent processing and analysis; Step 3: Using an isosurface extraction algorithm and a set bone density threshold, a three-dimensional skull model is extracted from the three-dimensional voxels D; The three-dimensional model includes vertices V and triangular faces F; the vertex V is a matrix with n rows and 3 columns, where the number of rows n is the number of vertices and the three columns represent the x, y, and z coordinates of the vertices respectively; the triangular face F is the face connecting the vertices.
3. A rapid three-dimensional skull data alignment method according to claim 2, characterized in that: The isosurface extraction algorithm in step 3 is a common method for generating a 3D model from CT or MRI scan data. It connects points with the same density based on the density value of pixels or voxels to form a continuous surface. The bone density threshold can be used to distinguish between bone and soft tissue.
4. A rapid three-dimensional skull data alignment method according to claim 2, characterized in that: The steps for generating the three-dimensional model in S9 are: A1, rotate V along the z axis by an angle of θ / 2 to obtain V2; A2, rotate V2 along the x-axis by an angle α to obtain V3. Vertex V3 and triangular face F constitute the three-dimensional head model after correction.
5. The method for rapid three-dimensional skull data alignment according to claim 1, characterized in that: The calculation steps of the rotation angle θ in S4 are: B1, determine a reasonable rotation angle range; B2, searches within this range with a certain step size; after each rotation, the registration error between the rotated V and V1 is calculated using the point cloud registration algorithm; B3, find the rotation angle corresponding to the minimum registration error, which is the required θ.
6. A rapid three-dimensional skull data alignment method according to claim 1, characterized in that: The coordinates of the orbital point and ear point of the skull in S7 are calibrated by manually calibrating the coordinates of the two key points; or by automatically calibrating the algorithm through a trained image target detection deep learning model.
Citation Information
Patent Citations
Automatic registration positioning method and device for bone joints
CN112184782A
Method and system for reconstructing three-dimensional image based on two-dimensional X-ray image
CN114842154A
Multi-modal medical registration method based on point cloud registration
CN116580068A
Image segmentation for sets of objects
US20230207106A1
Cone-beam CT three-dimensional reconstruction method and system
WO2018035905A1
