Three-dimensional reconstruction method and imaging system
By optimizing imaging parameters, using real two-dimensional image data to convert into three-dimensional image data, and performing comparisons, the image blur problem caused by human movement during the three-dimensional reconstruction process in the existing technology is solved, and high-quality three-dimensional imaging is achieved.
Patent Information
- Application Number
- CN202310205074.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-10
AI Technical Summary
Due to the long scanning time of the existing medical three-dimensional reconstruction technology, the patient's standing is unstable, and the resulting three-dimensional image is blurred, which affects the imaging quality.
By optimizing the imaging parameters, converting the real two-dimensional image data into three-dimensional image data, and comparing the matching values between the projected two-dimensional image data and the real two-dimensional image data, the imaging parameters are adjusted to reduce the impact of human movement on the image. Improve imaging quality.
It significantly improves the clarity and quality of three-dimensional imaging, avoids image artifacts, and meets the requirements of medical diagnosis and treatment.
Smart Images

Figure CN118628641A
Abstract
Description
Technical Field
[0001] The present invention relates to medical image processing technology, and in particular to a three-dimensional reconstruction method and an imaging system. Background Art
[0002] At present, X-ray imaging is widely used in the fields of medical treatment and scientific research, mainly through the radiation source emitting X-rays and the detector collecting X-ray signals for imaging.
[0003] Three-dimensional imaging has become the key development direction of medical imaging technology. Compared with two-dimensional imaging, three-dimensional imaging can improve the quality of diagnosis such as detection, characterization, damage quantification and functional evaluation. At this stage, three-dimensional reconstruction of medical images is to reconstruct the surface or internal image of a three-dimensional object through surface rendering or volume rendering algorithms using computer graphics methods from a two-dimensional tomographic digital image sequence obtained from medical scanning imaging equipment such as CT / MRI. However, when scanning patients, because it takes a long time, the patient may be unstable when standing, resulting in blurred three-dimensional images and low imaging quality, which in turn affects subsequent diagnosis and analysis.
[0004] In view of this, it is indeed necessary to provide a three-dimensional reconstruction method and imaging system to solve the above problems. Summary of the invention
[0005] The object of the present invention is to provide a three-dimensional reconstruction method and imaging system which can eliminate image artifacts and provide clear imaging.
[0006] To achieve the above object, the present invention provides a three-dimensional reconstruction method, which comprises:
[0007] Scan the imaging part to obtain real two-dimensional image data;
[0008] Converting the real two-dimensional image data into three-dimensional image data according to imaging parameters;
[0009] Projecting the three-dimensional image data to generate projected two-dimensional image data;
[0010] comparing a matching value between the projected two-dimensional image data and the real two-dimensional image data;
[0011] Optimizing the imaging parameters according to the matching value;
[0012] The real two-dimensional image data is converted into the three-dimensional image data according to the adjusted imaging parameters.
[0013] As a further improvement of the present invention, the method of comparing the matching values of the projected two-dimensional image data and the real two-dimensional image data and optimizing the imaging parameters according to the matching values includes:
[0014] When the matching value is lower than a preset standard value, regenerating the three-dimensional image data after optimizing the imaging parameters, projecting the three-dimensional image data to generate the projected two-dimensional image data, and comparing the projected two-dimensional image data with the real two-dimensional image data;
[0015] When the matching value reaches a preset standard value, the adjusted three-dimensional image data is output.
[0016] As a further improvement of the present invention, the method for comparing the matching value between the projected two-dimensional image data and the real two-dimensional image data includes:
[0017] Setting a number of image feature parameters in the real two-dimensional image data;
[0018] Establish a normalized cross-correlation algorithm for similarity values of image feature parameters;
[0019] The image feature parameters are searched and compared in the projected two-dimensional image data, and the matching value is output based on the comparison structure and the normalized cross-correlation algorithm.
[0020] As a further improvement of the present invention, the three-dimensional image data is projected through a projection matrix to generate the projected two-dimensional image data.
[0021] As a further improvement of the present invention, the formula for optimizing the imaging parameters is:
[0022]
[0023] Where θ is the geometry of the imaging parameters, including the ray source coordinates (x s ,y s ,z s ), coordinates of the ray generator (x d ,y d ,z d ), the unit vector of the signal receiving device in the row direction is and the column-direction unit vector (x v ,y v ,z v );vol is the three-dimensional image data currently reconstructed;proj is the projected two-dimensional image data;L(vol,proj,Θ) is the matching function between the projected two-dimensional image data and the real two-dimensional image data under the condition that the imaging parameter is Θ, and the higher the matching value, the smaller the matching function.
[0024] As a further improvement of the present invention, the method for optimizing the matching function includes a gradient descent method and a Newton method.
[0025] As a further improvement of the present invention, the process of optimizing the imaging parameters by the gradient descent method is expressed as follows:
[0026]
[0027] Where α is the update step size.
[0028] As a further improvement of the present invention, the scanning method includes Z-shaped scanning or zigzag scanning.
[0029] Another object of the present invention is to provide an imaging system capable of implementing the above-mentioned three-dimensional reconstruction method.
[0030] To achieve the above object, the present invention provides an imaging system, comprising:
[0031] Data acquisition system: used to collect real two-dimensional image data; including a ray generating device and a signal receiving device;
[0032] Image reconstruction system: connected to the data acquisition system signal, used to execute the above method to perform three-dimensional reconstruction.
[0033] As a further improvement of the present invention, the ray generating device is used to emit X-rays, including a first robotic arm and an X-ray emitter arranged on the first robotic arm; the signal receiving device is used to receive X-rays, including a second robotic arm and a detector arranged on the second robotic arm; the X-ray emitter and the detector rotate circumferentially around the human body rotation axis driven by the first robotic arm and the second robotic arm, and move in a "Z"-shaped or zigzag trajectory in the extension direction of the human body rotation axis.
[0034] The beneficial effects of the present invention are as follows: compared with the prior art, the three-dimensional reconstruction method of the present invention generates the projection two-dimensional image data by reversely projecting the three-dimensional image data obtained by converting the real two-dimensional image data according to the initial imaging parameters, and then comparing the projection two-dimensional image data with the real two-dimensional image data to obtain a matching value, optimizing the imaging parameters through an algorithm according to the matching value, and converting the real two-dimensional image data into the three-dimensional image data again according to the optimized imaging parameters. The three-dimensional reconstruction method of the present invention can avoid the situation where the final three-dimensional image data has artifacts and blurs due to the movement of the human body during the shooting process, and significantly improves the quality of the final imaging by optimizing the imaging parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a block diagram of the three-dimensional reconstruction method of the present invention.
[0036] Figure 2It is a schematic diagram of the coordinate system of imaging parameters during initial shooting of the imaging system in the present invention.
[0037] Figure 3 It is a schematic diagram of the coordinate system of imaging parameters during the shooting process.
[0038] Figure 4 yes Figure 2 Schematic diagram of row vectors and column vectors of a signal receiving device. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0040] It should be noted here that in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the scheme of the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0041] In addition, it should be noted that the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes 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 apparatus.
[0042] See also Figure 1-4 As shown, a three-dimensional reconstruction method provided by the present invention comprises the following steps:
[0043] Scan the imaging part to obtain real two-dimensional image data;
[0044] Converting real two-dimensional image data into three-dimensional image data according to imaging parameters;
[0045] Projecting the three-dimensional image data to generate projected two-dimensional image data;
[0046] comparing matching values of the projected two-dimensional image data and the real two-dimensional image data;
[0047] Imaging parameters are optimized according to the matching values;
[0048] The real two-dimensional image data is integrated according to the adjusted imaging parameters and three-dimensional image data is output.
[0049] Among them, the imaging part is scanned to obtain real two-dimensional image data, and the real two-dimensional image data is converted into three-dimensional image data according to the initial imaging parameters without any adjustment. Because the imaging part may move during the shooting process, the three-dimensional image data initially formed at this time may have artifacts, blur, etc. Next, the three-dimensional image data is projected to generate projected two-dimensional image data, and the projected two-dimensional image data is compared with the real two-dimensional image data to obtain a matching value. The imaging parameters are optimized according to the matching value, and then the real two-dimensional image data is converted into three-dimensional image data according to the optimized imaging parameters. The final three-dimensional image data has a high imaging quality; imaging parameters refer to the collection of all parameters used to represent the relative position relationship between the ray source, the detector and the imaging part, and are indispensable parameters for realizing CT imaging.
[0050] Furthermore, the method of comparing the matching values of the projected two-dimensional image data and the real two-dimensional image data and optimizing the imaging parameters according to the matching values includes:
[0051] When the matching value is lower than a preset standard value, the imaging parameters are optimized and then the three-dimensional image data is regenerated, the three-dimensional image data is projected to generate projected two-dimensional image data, and the projected two-dimensional image data is compared with the real two-dimensional image data;
[0052] When the matching value reaches a preset standard value, the adjusted three-dimensional image data is output.
[0053] The standard value here can be set to 99% or above, at which point the output three-dimensional image data is clearer and can meet the requirements of medical diagnosis and examination.
[0054] Furthermore, the method for comparing the matching values of the projected two-dimensional image data and the real two-dimensional image data includes:
[0055] A number of image feature parameters are set in the real two-dimensional image data;
[0056] Establish a normalized cross-correlation algorithm for similarity values of image feature parameters;
[0057] Image feature parameters are searched and compared in the projected two-dimensional image data, and matching values are output based on the comparison structure and the normalized cross-correlation algorithm. Image feature parameters are searched and compared in the projected two-dimensional image data, and similarity values are output based on the comparison structure and the normalized cross-correlation algorithm. The implementation scheme using the normalized cross-correlation algorithm is simple, has adaptability to linear changes in grayscale values, strong anti-white noise capability, and stable matching performance. In other embodiments, other algorithms such as the normalized mutual information algorithm may also be used, and the present invention does not impose any restrictions on this.
[0058] Furthermore, the three-dimensional image data is projected through a projection matrix to form projected two-dimensional image data.
[0059] In the process of converting from 3D to 2D, the principle of perspective projection is used. According to its geometric parameters, the position of the point in the 3D world coordinate system mapped to the plane of the signal receiving device during the projection process is found, that is, the 2D coordinates of the projection domain corresponding to the 3D coordinates in the spatial domain are obtained. The projection matrix is a 3*4 matrix that contains the parameters required for converting from 3D to 2D. Multiplying the 3D homogeneous coordinates with the projection matrix can obtain the 2D homogeneous coordinates (triplets), and then dividing it by the third number of the triplets can obtain the 2D coordinates.
[0060] There are many specific forms of expression of imaging parameters. For example, a polar coordinate system can be established with the rotation center of the ray generating device and the signal receiving device as the polar axis directly above the pole, and the polar coordinates corresponding to the centers of the ray generating device and the signal receiving device are used to describe the positional relationship between the ray generating device and the signal receiving device, and the direction vector of the signal receiving device, the target object center offset vector and the three-dimensional rotation angle are combined to realize the description of the relative positions of the three. A rectangular coordinate system can also be established with the center of the object as the origin, and the spatial coordinates of the starting points of the ray generating device and the signal receiving device in the coordinate system and the direction vectors corresponding to the rows and columns of the signal receiving device are used to describe the positional relationship between the ray generating device and the signal receiving device relative to the target object, and so on.
[0061] Here, the method for optimizing imaging parameters of the present invention is further described using the second imaging parameter expression form. Figure 2 As shown in FIG, a rectangular coordinate system is established with the object center O as the origin (the z axis is perpendicular to the display plane and is not drawn), and the coordinates of the ray generating device in this coordinate system are (x s ,y s ,z s ), the coordinates of the starting point of the signal receiving device are (x d ,y d ,z d ), the unit vector of the signal receiving device in the row direction is Column direction unit vector (See Figure 4 ), the coordinates of a point P inside the object are (x p ,y p ,z p ). During the scanning process, the target object undergoes rigid deformations such as rotation and translation. Figure 3As shown in the figure, although the actual spatial positions of the ray generator and the signal receiving device have not changed, the coordinates of the ray generator and the signal receiving device and the row and column direction vectors of the signal receiving device have changed due to the offset of the coordinate system itself, while the coordinates of point P have not changed due to the deformation of the object. The idea of the present invention is to fine-tune the imaging parameters by combining the current three-dimensional reconstruction results and the actual projection data collected at a certain moment. Taking the coordinates of the ray generator as an example, (x s ,y s ,z s ) gradually adjusts to (x′ s ,y′ s ,z′ s ), so that the imaging parameters are close to the actual position relationship at that moment, thereby improving the accuracy of reconstruction and making the image clearer.
[0062] Furthermore, the formula for optimizing the imaging parameters is:
[0063]
[0064] where θ is the geometry of the imaging parameters, including the coordinates of the ray generator (x s ,y s ,z s ), signal receiving device coordinates (x d ,y d ,z d ), the unit vector of the signal receiving device in the row direction is and the column-direction unit vector vol is the currently reconstructed three-dimensional image data; proj is the projected two-dimensional image data; L(vol,proj,Θ) is the matching function between the projected two-dimensional image data and the real two-dimensional image data under the condition that the imaging parameter is Θ. The higher the matching value, the smaller the matching function L.
[0065] There are many ways to set up the L function, including but not limited to the following three: (1) Select matching feature points a and a' (such as edge points, corner points, etc.) on the three-dimensional image data and the projected two-dimensional image data, calculate the projection point a" of point a on the plane of the signal receiving device according to the imaging parameters, and use the distance between a' and a" as the evaluation index of the matching degree; (2) Segment the bone area in the three-dimensional image data and the projected two-dimensional image data respectively, and perform orthographic projection of the three-dimensional bone mask according to the current imaging parameters to obtain the corresponding two-dimensional footprint, and use the proportion of the area of the mismatched area between the two-dimensional bone mask and the obtained footprint as the evaluation index; (3) Directly perform orthographic projection of the entire three-dimensional image data according to the imaging parameters to obtain the projected two-dimensional image data, and calculate the matching value evaluation index (mean square error, mutual information, etc.) between the projected two-dimensional image data and the real two-dimensional image data as the L function.
[0066] Furthermore, methods for optimizing the matching function L include gradient descent method and Newton method.
[0067] The optimization process of imaging parameters by gradient descent method is expressed as follows:
[0068]
[0069] Where α is the update step size.
[0070] Furthermore, the scanning method includes Z-shaped scanning or zigzag scanning. By scanning in a Z-shaped or zigzag trajectory, image acquisition of key parts at different heights and angles can be completed in one scanning process, thereby shortening the inspection time.
[0071] The present invention also provides an imaging system, comprising:
[0072] Data acquisition system: used to collect real two-dimensional image data; including a ray generating device and a signal receiving device;
[0073] Image reconstruction system: connected to the data acquisition system signal, used to execute the above method for three-dimensional reconstruction.
[0074] In some embodiments, a ray generating device, for emitting X-rays, comprises a first mechanical arm and an X-ray emitter disposed on the first mechanical arm;
[0075] A signal receiving device, for receiving X-rays, comprising a second mechanical arm and a detector arranged on the second mechanical arm;
[0076] The X-ray emitter and the detector rotate circumferentially around the rotation axis driven by the first mechanical arm and the second mechanical arm, and move in a "Z"-shaped or zigzag trajectory in the extension direction of the rotation axis.
[0077] When sampling human body parts, the first mechanical arm flexibly controls the X-ray emitter to move upward or downward in a spiral, so that X-rays can be emitted to parts of the human body at different heights and angles. At the same time, the second mechanical arm also drives the detector to move accordingly to cooperate with receiving the X-rays emitted by the X-ray emitter. Other mechanical structures often require multiple ray generating devices and signal receiving devices to realize the acquisition of images at different angles and heights. The present invention utilizes the high flexibility of the mechanical arm to realize the image sampling required for imaging when only one ray generating device and one signal receiving device are provided, thereby reducing the manufacturing cost of the system. When conducting an examination, the patient only needs to stand at a designated position in the system, and there is no need to change the position during the entire examination process. The system controls the first mechanical arm and the second mechanical arm to rotate circumferentially around the rotation axis (patient), so that the image acquisition of key parts of the patient at different angles and heights can be realized. In other embodiments, the X-ray emitter and the detector can also rotate circumferentially around the rotation axis at a uniform speed, and the present invention does not impose any restrictions on this.
[0078] Furthermore, the detector in the present invention is a large-size flat-panel detector with an image size of 430×430 mm and a pixel matrix of 3072×3072. The use of a large-size flat-panel detector can enable the imaging system to have higher conversion efficiency and spatial resolution, while having strong environmental adaptability.
[0079] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the above method when executing the computer program.
[0080] The following is a specific implementation of the three-dimensional reconstruction method of the present invention.
[0081] When performing three-dimensional reconstruction of the femur of the lower limb, the patient stands in the center of the imaging system. The first robotic arm drives the radiation generating device to move around the human body's rotation axis from the hip joint to the knee joint (or from the knee joint to the hip joint). The signal receiving device is also driven by the second robotic arm to move corresponding to the radiation generating device. During this process, hundreds of real two-dimensional image data at different heights and angles from the hip joint to the knee joint are collected.
[0082] Next, the real two-dimensional image data initially captured is converted into three-dimensional image data according to the imaging parameters. The initial three-dimensional image data of the lower limb femur is obtained at this time. The three-dimensional image data at this time may have artifacts and blurs. The three-dimensional image data obtained at this time is projected using the projection matrix to generate projected two-dimensional image data of the lower limb femur. The projected two-dimensional image data is then compared with the real two-dimensional image data to obtain a matching value. If the matching value at this time is lower than 99%, the imaging parameters are optimized, and the real two-dimensional image data is converted into three-dimensional image data again according to the optimized imaging parameters. The three-dimensional image data is projected again to generate projected two-dimensional image data, and then the projected two-dimensional image data is compared with the real two-dimensional image data again. If the matching value is lower than 99%, the above steps are repeated again.
[0083] When the matching value reaches 99%, the quality of the three-dimensional image data of the femur of the lower limb is relatively high and meets the requirements, and the system outputs the three-dimensional image data at this time.
[0084] In summary, when the three-dimensional imaging of the imaging part is performed by the three-dimensional reconstruction method of the present invention, the real two-dimensional image data obtained by scanning is first converted into three-dimensional image data according to the initial imaging parameters, the projected two-dimensional image data generated by projecting the three-dimensional image data is compared with the real two-dimensional image data, and the imaging parameters are optimized by the algorithm according to the comparison result. The clarity and quality of the three-dimensional image data obtained by converting the real two-dimensional image data according to the imaging parameters finally optimized can meet the standards, and the influence of the human body movement on the imaging result during the shooting process can be effectively reduced, and the artifacts in the three-dimensional image data can be eliminated to obtain a clear image.
[0085] The above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A three-dimensional reconstruction method, characterized in that: include: Scan the imaging part to obtain real two-dimensional image data; Converting the real two-dimensional image data into three-dimensional image data according to imaging parameters; Projecting the three-dimensional image data to generate projected two-dimensional image data; comparing a matching value between the projected two-dimensional image data and the real two-dimensional image data; Optimizing the imaging parameters according to the matching value; The real two-dimensional image data is converted into the three-dimensional image data according to the adjusted imaging parameters.
2. The three-dimensional reconstruction method according to claim 1, characterized in that: The method of comparing the matching values of the projected two-dimensional image data and the real two-dimensional image data and optimizing the imaging parameters according to the matching values comprises: When the matching value is lower than a preset standard value, regenerating the three-dimensional image data after optimizing the imaging parameters, projecting the three-dimensional image data to generate the projected two-dimensional image data, and comparing the projected two-dimensional image data with the real two-dimensional image data; When the matching value reaches a preset standard value, the adjusted three-dimensional image data is output.
3. The three-dimensional reconstruction method according to claim 1, characterized in that: The method for comparing the matching value between the projected two-dimensional image data and the real two-dimensional image data comprises: Setting a number of image feature parameters in the real two-dimensional image data; Establish a normalized cross-correlation algorithm for similarity values of image feature parameters; The image feature parameters are searched and compared in the projected two-dimensional image data, and the matching value is output based on the comparison structure and the normalized cross-correlation algorithm.
4. The three-dimensional reconstruction method according to claim 1, characterized in that: The three-dimensional image data is projected by a projection matrix to generate the projected two-dimensional image data.
5. The three-dimensional reconstruction method according to claim 1, characterized in that: The formula for optimizing the imaging parameters is: Where θ is the geometry of the imaging parameters, including the coordinates of the signal generating device (x s ,y s ,z s ), signal receiving device coordinates (x d ,y d ,z d ), the row direction unit vector of the signal receiving device is and the column-direction unit vector vol is the three-dimensional image data currently reconstructed; proj is the projected two-dimensional image data; L(vol,proj,Θ) is the matching function between the projected two-dimensional image data and the real two-dimensional image data under the condition that the imaging parameter is Θ, and the higher the matching value, the smaller the matching function.
6. The three-dimensional reconstruction method according to claim 5, characterized in that: Methods for optimizing the matching function include gradient descent method and Newton method.
7. The three-dimensional reconstruction method according to claim 6, characterized in that: The process of optimizing the imaging parameters by the gradient descent method is as follows: Where α is the update step size.
8. The three-dimensional reconstruction method according to claim 1, characterized in that: The scanning method includes Z-shaped scanning or zigzag scanning.
9. An imaging system, characterized in that: include: Data acquisition system: used to collect real two-dimensional image data; It includes a ray generating device and a signal receiving device; Image reconstruction system: connected to the data acquisition system signal, used to execute the method described in any one of claims 1 to 8 to perform three-dimensional reconstruction.
10. The imaging system according to claim 9, characterized in that: The ray generating device is used to emit X-rays, and comprises a first mechanical arm and an X-ray emitter arranged on the first mechanical arm; The signal receiving device is used to receive X-rays, and includes a second mechanical arm and a detector arranged on the second mechanical arm; The X-ray emitter and the detector rotate circumferentially around the human body rotation axis driven by the first robotic arm and the second robotic arm, and move in a "Z"-shaped or zigzag trajectory in the extension direction of the human body rotation axis.
