3D reconstruction method and system, readable storage medium and C-shaped arm

By establishing a spatial coordinate system and determining the plane image and focus coordinates of the detector and tube, the corresponding relationship between three-dimensional points and two-dimensional coordinates is established, which solves the problem of being unable to use 2D C-shaped arms for 3D reconstruction in the existing technology, and improves the efficiency The convenience of surgery and the accuracy of 3D reconstruction models.

CN118570381APending Publication Date: 2024-08-30XIMU HIGH NEW TECH JIANGSU
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410684927.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, 3D imaging equipment cannot use conventional 2D C-arms for 3D reconstruction, resulting in insufficient convenience and flexibility of surgery, high mechanical repeatability and accuracy requirements, large equipment size and the need for periodic geometric correction.

Method used

By establishing a spatial coordinate system, the plane image and focus coordinates of the detector and tube at each working position are obtained, the projection of the three-dimensional point is determined, the boundary straight line expression of the plane image is obtained, and the corresponding relationship between the three-dimensional point and the two-dimensional coordinate is established, based on This creates a 3D reconstruction model.

Benefits of technology

It realizes 3D reconstruction using conventional 2D C-shaped arms, improves the convenience and flexibility of surgery, enhances the accuracy and replicability of 3D reconstruction models, and is suitable for 3D imaging needs during surgery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570381A
    Figure CN118570381A
Patent Text Reader

Abstract

The invention provides a 3D reconstruction method and system, a readable storage medium and a C-shaped arm, and belongs to the technical field of computer imaging. The 3D reconstruction method comprises the following steps: establishing a space coordinate system; a three-dimensional point on the space coordinate system is selected, and coordinates of the three-dimensional point are obtained; determining a plane coordinate expression of the detector; determining focus coordinates of the bulb tube; determining the projection of the three-dimensional point on the plane image according to the focus coordinate; acquiring a linear expression of a plane image boundary; obtaining a two-dimensional coordinate of the three-dimensional point on the plane image according to the linear expression and the projection coordinate; and establishing a 3D reconstruction model according to the two-dimensional coordinates on the plane image and the corresponding relationship between the two-dimensional coordinates and the three-dimensional coordinates. According to the method, 3D reconstruction can be carried out by using a conventional 2D C-shaped arm, the convenience and the flexibility of an operation can be improved, the 3D model can be correspondingly generated according to the pixels of the 2D image, the accuracy of the 3D reconstruction model is improved, the replicability is high, and the practical value is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer imaging technology, and in particular to a 3D reconstruction method, system, readable storage medium and C-arm. Background Art

[0002] The operating room uses 3D C-arms to perform 3D scanning and imaging before, during, and after surgery. 3D images can enable doctors to perform various surgical activities more intuitively and effectively. Most 3D C-arms have high requirements for imaging consistency and accuracy, as well as mechanical precision, process, and electric control accuracy.

[0003] Most 3D imaging uses an isocentric mechanical structure, which results in a larger C-arm device and requires periodic geometric correction, which places high demands on mechanical repeatability. If 3D reconstruction can be performed using a conventional 2D C-arm, the convenience and flexibility of surgery will be improved.

[0004] Therefore, how to propose a 3D reconstruction method using a conventional 2D C-arm for 3D reconstruction has become an urgent problem to be solved. Summary of the invention

[0005] The present invention proposes a 3D reconstruction method, which solves the problem in the related art that a 3D imaging device is required and a conventional 2D C-arm cannot be used for 3D imaging.

[0006] To this end, a first object of the present invention is to provide a 3D reconstruction method.

[0007] A second object of the present invention is to provide a 3D reconstruction system.

[0008] The third object of the present invention is to provide another 3D reconstruction system.

[0009] A fourth object of the present invention is to provide a readable storage medium.

[0010] A fifth object of the present invention is to provide a C-arm.

[0011] In view of this, an embodiment of the first aspect of the present invention provides a 3D reconstruction method for a C-arm, the C-arm including a detector and a tube, the 3D reconstruction method including: establishing a spatial coordinate system; selecting a three-dimensional point on the spatial coordinate system, and obtaining the coordinates of the three-dimensional point; determining the plane coordinate expression of the plane image formed by the detector at each working position in the spatial coordinate system; determining the focal coordinates of the tube at each working position; determining the projection of the three-dimensional point on the plane image according to the focal coordinates, and obtaining the projection coordinates projected in the spatial coordinate system; obtaining a straight line expression of the boundary of each plane image in the spatial coordinate system; obtaining the two-dimensional coordinates of the three-dimensional point on the plane image according to the straight line expression and the projection coordinates; obtaining the corresponding relationship between the two-dimensional coordinates and the three-dimensional coordinates based on the two-dimensional coordinates of any three-dimensional point on the plane image and the three-dimensional coordinates of any three-dimensional point; and establishing a 3D reconstruction model according to the two-dimensional coordinates on the plane image and the corresponding relationship.

[0012] In this embodiment, optionally, the 3D reconstruction method is used for a C-arm. The 3D reconstruction method first needs to establish a spatial coordinate system, and based on the spatial coordinate system, all subsequent coordinate data are processed to play a role in unifying data standards. Further, a three-dimensional coordinate in the spatial coordinate system, that is, the required coordinate point, is obtained. Then, when the C-arm is at a certain position, the plane coordinate expression of the plane image formed by the detector in the spatial coordinate system is determined. The plane coordinate expression can indicate that the plane where the plane image formed by the detector at the current position exists in the spatial coordinate system, and the coordinates of the focus of the tube at the current position in the spatial coordinate system, that is, the focus coordinates. In the actual use process, any working position of the C-arm corresponds to a plane coordinate expression and a focus coordinate. Then, according to the coordinates of the focus, the plane coordinate expression and the required coordinate point, the projection of the coordinate point relative to the focus on the plane coordinate expression can be obtained, and then the projection of the coordinate point on the plane image can be obtained. This process simulates the process of projecting the object at the coordinate point on the plane image, so the projection point of the coordinate point on the plane coordinate expression is the image of the object at the coordinate point on the actual plane image. After that, the boundary of the plane image is determined, and the two-dimensional coordinates of the projection coordinates on the plane image are determined based on the straight line expression of the boundary in the three-dimensional coordinate system, that is, the distance between the projection coordinates and the boundary is determined, so that a correspondence can be formed between the three-dimensional coordinates of the coordinate point and the two-dimensional coordinates on the plane image, and a 3D reconstruction model based on the plane image can be established based on this correspondence. By obtaining a 3D reconstruction model through the scheme in the present application, a conventional 2D C-arm can be used for 3D reconstruction, which will improve the convenience and flexibility of the operation. At the same time, a 3D model can be generated based on the pixel correspondence of the 2D image, which improves the accuracy of the 3D reconstruction model, and it is highly reproducible and has great practical value.

[0013] In actual use, since the focus and projection plane of the tube are different each time the C-arm is used, the focus and projection plane of the tube need to be measured each time projection is performed, thereby improving the key accuracy of the correspondence between the two-dimensional coordinates and the three-dimensional coordinates, making the generated 3D model more accurate.

[0014] In some embodiments, optionally, the step of establishing a spatial coordinate system includes: establishing the spatial coordinate system with any point on the axis of the C-arm as the origin, the axis of the C-arm as the X-axis, and the distance from the origin to the initial position of the tube as the Z-axis.

[0015] In this embodiment, a spatial coordinate system is established with any point on the axis of the C-arm as the origin, the axis of the C-arm as the X-axis, and the distance from the origin to the initial position of the tube as the Z-axis. All subsequent coordinate data are processed based on the spatial coordinate system to achieve a unified data standard. Optionally, a spatial coordinate system can be established according to actual needs, and is not limited to the relevant parameters of the C-arm as the standard. It is only necessary to ensure that the same spatial coordinate system is always used. For example, any fixed position in the space where the C-arm is located is used as the origin, and the length, width, and height of the space where the C-arm is located are used as the X-axis, Y-axis, and Z-axis to establish a spatial coordinate system.

[0016] In some embodiments, optionally, the step of determining the plane coordinate expression of the plane image formed by the detector at each working position in the spatial coordinate system and determining the focal coordinates of the tube at each working position includes: obtaining the first plane coordinate expression of the plane image formed by the detector, the first coordinates of the focus and the first direction angle of the detector in the spatial coordinate system according to the initial position of the detector and the initial position of the focus; obtaining the transformation matrix Md of the detector and the transformation matrix Ms of the focus; obtaining the second direction angle of the detector at any working position of the detector and the focus, and determining the second plane coordinate expression of the plane image formed by the detector at any working position and the second coordinates of the focus according to the first direction angle of the detector, the second direction angle of the detector, the transformation matrix Md of the detector and the transformation matrix Ms of the focus.

[0017] In some embodiments, optionally, the projection of the three-dimensional coordinates of any point on the plane coordinate expression is determined based on the focal coordinates, and the step of obtaining the projection coordinates includes: determining a first straight line based on the three-dimensional coordinates and the second coordinates of any three-dimensional point; and obtaining the projection coordinates of any three-dimensional point on the second plane coordinate expression based on the first straight line and the second plane coordinate expression.

[0018] In some embodiments, optionally, the step of obtaining a straight line expression of the boundary of the plane image at any working position includes: obtaining the boundary coordinates of the detector at an initial position; and obtaining a straight line expression of the boundary of the plane image at any working position based on the transformation matrix Md of the detector and the boundary coordinates of the detector at the initial position.

[0019] The steps of obtaining the first expression of the detector plane of the detector and the tube in the space coordinate system, the first coordinate of the focus and the first direction angle of the detector provided by the present invention include: using a calibration algorithm to obtain the foot point P of the perpendicular from the focus to the detector platform expressed as (Px, Py, Pz), the first azimuth angle n of the detector expressed as The first coordinate S is represented as (Sx, Sy, Sz), and the first expression of the detector plane is determined based on the perpendicular point P and the first coordinate S:

[0020]

[0021] Among them, x, y, z represent unknowns, Px represents the X-axis coordinate of point P, Py represents the Y-axis coordinate of point P, Pz represents the Z-axis coordinate of point P, α represents the angle between the detector and the X-axis, and β represents the angle between the detector and the Y-axis. represents the angle between the detector and the Z axis, Sx represents the X-axis coordinate of the first coordinate, Sy represents the Y-axis coordinate of the first coordinate, Sz represents the Z-axis coordinate of the first coordinate, and cos represents the cosine function.

[0022] In some embodiments, optionally, the step of obtaining the second direction angle of the detector and determining the second expression of the detector plane and the second coordinates of the focus at the second direction angle of the detector according to the first direction angle of the detector, the transformation matrix Md of the detector and the transformation matrix Ms of the focus includes: obtaining the second direction angle n′ expressed as The foot point P′ of the detector at the second direction angle is calculated as (P′x, P′y, P′z)=Md×P. The second expression for determining the detector plane is based on the foot point P′ at the second direction angle and the second direction angle n′:

[0023]

[0024] The second coordinate S′ of the focus is expressed as: (S′x, S′y, S′z)=Ms×S;

[0025] Wherein, x, y, z represent unknown numbers, n′α represents the angle between the second direction angle n′ and the X-axis, and n′β represents the angle between the second direction angle n′ and the Y-axis. represents the angle between the second direction angle n′ and the Z axis, P′x represents the X-axis coordinate of point P′, P′y represents the Y-axis coordinate of point P′, P′z represents the Z-axis coordinate of point P′, S′x represents the X-axis coordinate of point S′, S′y represents the Y-axis coordinate of point S′, and S′z represents the Z-axis coordinate of point S′.

[0026] In some embodiments, optionally, obtaining a point R on a spatial coordinate system represented by (Rx, Ry, Rz), and determining a first straight line according to the coordinates of the point R and the second coordinates includes: the first straight line is represented by:

[0027]

[0028] Among them, x, y, z represent unknown numbers, S′x represents the X-axis coordinate of point S′, S′y represents the Y-axis coordinate of point S′, S′z represents the Z-axis coordinate of point S′, Rx represents the X-axis coordinate of point R, Ry represents the Y-axis coordinate of point R, Rz represents the Z-axis coordinate of point R, and t represents the slope of the straight line.

[0029] In some embodiments, optionally, the step of calculating the coordinates of the projection point of point R on the second expression of the detector plane according to the first straight line and the second expression includes: substituting the first straight line into the second expression to obtain the coordinate RP of point R on the detection plane expressed as (RPx, RPy, RPz); the calculation method of the coordinate RP is as follows:

[0030]

[0031] Wherein, RPx represents the X-axis coordinate of the RP point, RPy represents the Y-axis coordinate of the RP point, RPz represents the Z-axis coordinate of the RP point, t represents the slope of the straight line, n′α represents the angle between the second direction angle n′ and the X-axis, n′β represents the angle between the second direction angle n′ and the Y-axis, represents the angle between the second direction angle n′ and the Z axis, S′x represents the X-axis coordinate of point S′, S′y represents the Y-axis coordinate of point S′, S′z represents the Z-axis coordinate of point S′, Rx represents the X-axis coordinate of point R, Ry represents the Y-axis coordinate of point R, and Rz represents the Z-axis coordinate of point R.

[0032] In some embodiments, optionally, when obtaining the second direction angle, the boundary equation of the detector, and the step of determining the index of the projection point at the second direction angle according to the projection point coordinates and the boundary equation include: determining the corner point coordinates CLU (CLUx, CLUy, CLUz), CLD (CLDx, CLDy, CLDz), CRU (CRUx, CRUy, CRUz), CRD (CRDx, CRDy, CRDz) of the detector at the first direction angle; based on the second direction angle, determining the index of the projection point at the second direction angle The corner point coordinates under the second direction angle CLU′(CLU′x, CLU′y, CLU′z)=Md×CLU, CLD′(CLD′x, CLD′y, CLD′z)=Md×CLD, CRU′(CRU′x, CRU′y, CRU′z)=Md×CRU, CRD′(CRD′x, CRD′y, CRD′z)=Md×CRD; the expressions for determining the straight lines CLU′-CRU′ and CLU′-CLD′ based on the corner point coordinates under the second direction angle are:

[0033]

[0034] Calculate the distances from the coordinate RP to the straight lines CLU′-CRU′ and CLU′-CLD′, and determine the index (dx, dy) of the projection point at the second direction angle;

[0035]

[0036] Among them, CLUx represents the X-axis coordinate of the CLU point, CLUy represents the Y-axis coordinate of the CLU point, CLUz represents the Z-axis coordinate of the CLU point, CLDx represents the X-axis coordinate of the CLD point, CLDy represents the Y-axis coordinate of the CLD point, CLDz represents the Z-axis coordinate of the CLD point, CRUx represents the X-axis coordinate of the CRU point, CRUy represents the Y-axis coordinate of the CRU point, CRUz represents the Z-axis coordinate of the CRU point, CRDx represents the X-axis coordinate of the CRD point, CRDy represents the Y-axis coordinate of the CRD point, CRDz represents the Z-axis coordinate of the CRD point, CLU′x represents the X-axis coordinate of the CLU′ point, CLU′y represents the Y-axis coordinate of the CLU′ point CLU′z represents the Z-axis coordinate of the CLU′ point, CLD′x represents the X-axis coordinate of the CLD′ point, CLD′y represents the Y-axis coordinate of the CLD′ point, and CLD′z represents the Z-axis coordinate of the CLD′ point. CRU′x represents the X-axis coordinate of the CRU′ point, CRU′y represents the Y-axis coordinate of the CRU′ point, CRU′z represents the Z-axis coordinate of the CRU′ point, CRD′x represents the X-axis coordinate of the CRD′ point, CRD′y represents the Y-axis coordinate of the CRD′ point, and CRD′z represents the Z-axis coordinate of the CRD′ point. dx represents the x-axis coordinate of the projection point on the plane image, dy represents the y-axis coordinate of the projection point on the plane image, and ps represents the pixel of the plane image.

[0037] In some embodiments, optionally, for a point R (Rx, Ry, Rz) to be reconstructed at a new angle of the C-arm, its corresponding projection point RP (dx, dy) on the image can be obtained, so that interpolation reconstruction can be performed according to the 3D reconstruction formula. The specific reconstruction formula is as follows:

[0038]

[0039] The spatial point coordinates R (Rx, Ry, Rz) and the projection point coordinates RP (dx, dy) have been obtained in the above calculations. g (l, z, β) is the filtered projection passing through point R at the detector RP, β is the projection angle, l is the projection path, DSO represents the distance between the focus and the x-axis in the y direction, and DSD represents the distance between the focus and the plane image in the y direction.

[0040] The second aspect of the present invention provides a 3D reconstruction system for a C-arm, the C-arm includes a detector and a tube, and the 3D reconstruction system includes: a coordinate establishment module, used to establish a spatial coordinate system; a data selection module, used to select a three-dimensional point on the spatial coordinate system and obtain the coordinates of the three-dimensional point; a plane data acquisition module, used to determine the plane coordinate expression of the plane image formed by the detector at each working position in the spatial coordinate system and determine the focal coordinates of the tube at each working position; a projection determination module, used to determine the projection of the three-dimensional point on the plane image according to the focal coordinates, and obtain the projection coordinates projected in the spatial coordinate system; a boundary determination module, used to obtain the straight line expression of the boundary of each plane image in the spatial coordinate system; a projection two-dimensional coordinate calculation module, used to obtain the two-dimensional coordinates of the three-dimensional point on the plane image according to the straight line expression and the projection coordinates; a model establishment module, used to obtain the correspondence between the two-dimensional coordinates and the three-dimensional coordinates based on the two-dimensional coordinates of any three-dimensional point on the plane image and the three-dimensional coordinates of any three-dimensional point, and to establish a 3D reconstruction model according to the two-dimensional coordinates on the plane image and the corresponding relationship.

[0041] Optionally, the planar data acquisition module includes a navigation camera. The navigation camera can be fixed on the C-arm, and the navigation camera is used to provide the positions of the tube and the detector tracer, and the transformation matrix Md of the detector and the transformation matrix Ms of the focus are calculated therefrom.

[0042] The third aspect of the present invention provides a 3D reconstruction system, including a memory and a processor, wherein the memory stores programs or instructions that can be executed on the processor, and when the programs or instructions are executed by the processor, the steps of the 3D reconstruction method provided in the first aspect are implemented.

[0043] A fourth aspect of the present invention provides a readable storage medium having programs and / or instructions stored thereon, which, when executed by a processor, implement the steps of the 3D reconstruction method provided in the first aspect.

[0044] A fifth aspect of the present invention provides a C-arm, comprising: a 3D reconstruction system as provided in the second aspect, a 3D reconstruction system as provided in the third aspect, and a readable storage medium as provided in the fourth aspect.

[0045] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention or the embodiments in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0047] Figure 1 is a schematic flow chart of a 3D reconstruction method according to an embodiment of the present invention;

[0048] Figure 2 is one of the block diagrams of a 3D reconstruction system according to an embodiment of the present invention;

[0049] Figure 3 is a second block diagram of a 3D reconstruction system according to an embodiment of the present invention;

[0050] Figure 4 is one of the schematic diagrams of a C-arm, a navigation camera and a spatial coordinate system according to an embodiment of the present invention;

[0051] Figure 5 is a second schematic diagram of a C-arm, a navigation camera and a spatial coordinate system according to an embodiment of the present invention;

[0052] Figure 6 is a schematic diagram of changes in a focus, a plane image, and a projection point during a rotation process according to an embodiment of the present invention;

[0053] Figure 7 It is a schematic diagram of changes in the focus, the plane image and the projection point during the rotation process according to an embodiment of the present invention.

[0054] in, Figure 4 and Figure 5 The corresponding relationship between the reference numerals and component names in the figure is:

[0055] 1 C-arm, 2 navigation cameras, 3 tubes, 4 detectors. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the embodiments 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 in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0057] Refer to the following Figures 1 to 7 The present invention describes a 3D reconstruction method, system, readable storage medium and C-arm according to some embodiments of the present invention.

[0058] The embodiment of the first aspect of the present invention provides a 3D reconstruction method for a C-shaped arm, wherein the C-shaped arm includes a detector and a tube, such as Figure 1 As shown, the 3D reconstruction method includes:

[0059] S101: Establish a spatial coordinate system;

[0060] S102: Select a three-dimensional point on the spatial coordinate system and obtain the coordinates of the three-dimensional point;

[0061] S103: determining a plane coordinate expression of a plane image formed by the detector at each working position in a space coordinate system;

[0062] S104: Determine the focal coordinates of the tube at each working position;

[0063] S105: determining the projection of the three-dimensional point on the plane image according to the focal coordinates, and obtaining the projection coordinates projected in the space coordinate system;

[0064] S106: Obtaining a straight line expression of the boundary of each plane image in the space coordinate system;

[0065] S107: Obtaining the two-dimensional coordinates of the three-dimensional point on the plane image according to the straight line expression and the projection coordinates;

[0066] S108: Obtaining a correspondence between the two-dimensional coordinates and the three-dimensional coordinates based on the two-dimensional coordinates of any three-dimensional point on the plane image and the three-dimensional coordinates of any three-dimensional point;

[0067] S109: Establishing a 3D reconstruction model according to the two-dimensional coordinates and the corresponding relationship on the plane image.

[0068] In this embodiment, optionally, the 3D reconstruction method is used for a C-arm. The 3D reconstruction method first needs to establish a spatial coordinate system, and based on the spatial coordinate system, all subsequent coordinate data are processed to play a role in unifying data standards. Further, a three-dimensional coordinate in the spatial coordinate system is obtained, that is, the required coordinate point. Then, when the C-arm is at a certain position, the plane coordinate expression of the plane image formed by the detector in the spatial coordinate system is determined. The plane coordinate expression can indicate that the plane where the plane image formed by the detector at the current position exists in the spatial coordinate system, and the coordinates of the focus of the tube at the current position in the spatial coordinate system, that is, the focus coordinates. In the actual use process, any working position of the C-arm corresponds to a plane coordinate expression and a focus coordinate. Then, according to the coordinates of the focus, the plane coordinate expression and the required coordinate point, the projection of the coordinate point relative to the focus on the plane coordinate expression can be obtained, and then the projection of the coordinate point on the plane image can be obtained. This process simulates the process of projecting the object at the coordinate point on the plane image, so the projection point of the coordinate point on the plane coordinate expression is the image of the object at the coordinate point on the actual plane image. After that, the boundary of the plane image is determined, and the two-dimensional coordinates of the projection coordinates on the plane image are determined based on the straight line expression of the boundary in the three-dimensional coordinate system, that is, the distance between the projection coordinates and the boundary is determined, so that a correspondence can be formed between the three-dimensional coordinates of the coordinate point and the two-dimensional coordinates on the plane image, and a 3D reconstruction model based on the plane image can be established based on this correspondence. By obtaining a 3D reconstruction model through the scheme in the present application, a conventional 2D C-arm can be used for 3D reconstruction, which will improve the convenience and flexibility of the operation. At the same time, a 3D model can be generated based on the pixel correspondence of the 2D image, which improves the accuracy of the 3D reconstruction model, and it is highly reproducible and has great practical value.

[0069] In some embodiments, optionally, the step of establishing a spatial coordinate system includes: establishing the spatial coordinate system with any point on the axis of the C-arm as the origin, the axis of the C-arm as the X-axis, and the distance from the origin to the initial position of the tube as the Z-axis.

[0070] In this embodiment, if Figure 4 and Figure 5 As shown, a spatial coordinate system is established with any point on the axis of the C-arm as the origin, the axis of the C-arm as the X-axis, and the distance from the origin to the initial position of the tube as the Z-axis. All subsequent coordinate data are processed based on the spatial coordinate system, which plays a role in unifying data standards.

[0071] In some embodiments, optionally, the step of determining the plane coordinate expression of the plane image formed by the detector at each working position in the spatial coordinate system and determining the focal coordinates of the tube at each working position includes: obtaining the first plane coordinate expression of the plane image formed by the detector at the initial position of the detector and the initial position of the focus in the spatial coordinate system, the first coordinates of the focus and the first direction angle of the detector; obtaining the transformation matrix Md of the detector and the transformation matrix Ms of the focus; obtaining the second direction angle of the detector at any working position of the detector and the focus, and determining the second plane coordinate expression of the plane image formed by the detector at any working position and the second coordinates of the focus based on the first direction angle of the detector, the second direction angle of the detector, the transformation matrix Md of the detector and the transformation matrix Ms of the focus.

[0072] In some embodiments, optionally, the projection of the three-dimensional coordinates of any point on the plane coordinate expression is determined based on the focal coordinates, and the step of obtaining the projection coordinates includes: determining a first straight line based on the three-dimensional coordinates and the second coordinates of any point; and obtaining the projection coordinates of any point on the second plane coordinate expression of the plane image formed by the detector based on the first straight line and the second plane coordinate expression.

[0073] In some embodiments, optionally, the step of obtaining a straight line expression of the boundary of the plane image at any working position includes: obtaining the boundary coordinates of the detector at an initial position; and obtaining a straight line expression of the boundary of the plane image at any working position based on the transformation matrix Md of the detector and the boundary coordinates of the detector at the initial position.

[0074] The steps of obtaining the first expression of the detector plane of the detector and the tube in the space coordinate system, the first coordinate of the focus and the first direction angle of the detector provided by the present invention include: using a calibration algorithm to obtain the foot point P of the perpendicular from the focus to the detector platform expressed as (Px, Py, Pz), the first azimuth angle n of the detector expressed as The first coordinate S is represented as (Sx, Sy, Sz), and the first expression of the detector plane is determined based on the perpendicular point P and the first coordinate S:

[0075]

[0076] Among them, x, y, z represent unknowns, Px represents the X-axis coordinate of point P, Py represents the Y-axis coordinate of point P, Pz represents the Z-axis coordinate of point P, α represents the angle between the detector and the X-axis, and β represents the angle between the detector and the Y-axis. represents the angle between the detector and the Z axis, Sx represents the X-axis coordinate of the first coordinate, Sy represents the Y-axis coordinate of the first coordinate, Sz represents the Z-axis coordinate of the first coordinate, and cos represents the cosine function.

[0077] Using Zhang’s camera calibration algorithm, the internal and external parameters of the C-arm can be obtained, including the spatial position of the detector and the tube in the reconstructed space coordinate system: P (Px, Py, Pz) is the foot point of the perpendicular from the focus to the detector plane, n (α, β, φ) is the detector direction angle, and S (Sx, Sy, Sz) is the focus position.

[0078] In some embodiments, optionally, the step of obtaining the second direction angle of the detector and determining the second expression of the detector plane and the second coordinates of the focus at the second direction angle of the detector according to the first direction angle of the detector, the transformation matrix Md of the detector and the transformation matrix Ms of the focus includes: obtaining the second direction angle n′ expressed as The foot point P′ of the detector at the second direction angle is calculated as (P′x, P′y, P′z)=Md×P. The second expression for determining the detector plane is based on the foot point P′ at the second direction angle and the second direction angle n′:

[0079]

[0080] The second coordinate S′ of the focus is expressed as: (S′x, S′y, S′z)=Ms×S;

[0081] Wherein, x, y, z represent unknown numbers, n′α represents the angle between the second direction angle n′ and the X-axis, and n′β represents the angle between the second direction angle n′ and the Y-axis. represents the angle between the second direction angle n′ and the Z axis, P′x represents the X-axis coordinate of point P′, P′y represents the Y-axis coordinate of point P′, P′z represents the Z-axis coordinate of point P′, S′x represents the X-axis coordinate of point S′, S′y represents the Y-axis coordinate of point S′, and S′z represents the Z-axis coordinate of point S′.

[0082] In some embodiments, optionally, obtaining a point R on a spatial coordinate system represented by (Rx, Ry, Rz), and determining a first straight line according to the coordinates of the point R and the second coordinates includes: the first straight line is represented by:

[0083]

[0084] Among them, x, y, z represent unknown numbers, S′x represents the X-axis coordinate of point S′, S′y represents the Y-axis coordinate of point S′, S′z represents the Z-axis coordinate of point S′, Rx represents the X-axis coordinate of point R, Ry represents the Y-axis coordinate of point R, Rz represents the Z-axis coordinate of point R, and t represents the slope of the straight line.

[0085] In some embodiments, optionally, the step of calculating the coordinates of the projection point of point R on the second expression of the detector plane according to the first straight line and the second expression includes: substituting the first straight line into the second expression to obtain the coordinate RP of point R on the detection plane expressed as (RPx, RPy, RPz); the calculation method of the coordinate RP is as follows:

[0086]

[0087] Wherein, RPx represents the X-axis coordinate of the RP point, RPy represents the Y-axis coordinate of the RP point, RPz represents the Z-axis coordinate of the RP point, t represents the slope of the straight line, n′α represents the angle between the second direction angle n′ and the X-axis, n′β represents the angle between the second direction angle n′ and the Y-axis, represents the angle between the second direction angle n′ and the Z axis, S′x represents the X-axis coordinate of point S′, S′y represents the Y-axis coordinate of point S′, S′z represents the Z-axis coordinate of point S′, Rx represents the X-axis coordinate of point R, Ry represents the Y-axis coordinate of point R, and Rz represents the Z-axis coordinate of point R.

[0088] In some embodiments, optionally, Figure 6 As shown, when obtaining the second direction angle, the boundary equation of the detector, according to the projection point coordinates and the boundary equation, the step of determining the index of the projection point at the second direction angle includes: determining the corner point coordinates CLU (CLUx, CLUy, CLUz), CLD (CLDx, CLDy, CLDz), CRU (CRUx, CRUy, CRUz), CRD (CRDx, CRDy, CRDz) of the detector at the first direction angle; based on the second direction angle, determining the detector at the second direction angle The corner point coordinates CLU′(CLU′x, CLU′y, CLU′z)=Md×CLU, CLD′(CLD′x, CLD′y, CLD′z)=Md×CLD, CRU′(CRU′x, CRU′y, CRU′z)=Md×CRU, CRD′(CRD′x, CRD′y, CRD′z)=Md×CRD; The expressions for determining the straight lines CLU′-CRU′ and CLU′-CLD′ based on the corner point coordinates under the second direction angle are:

[0089]

[0090] Calculate the distances from the coordinate RP to the straight lines CLU′-CRU′ and CLU′-CLD′, and determine the index (dx, dy) of the projection point at the second direction angle;

[0091]

[0092] Among them, CLUx represents the X-axis coordinate of the CLU point, CLUy represents the Y-axis coordinate of the CLU point, CLUz represents the Z-axis coordinate of the CLU point, CLDx represents the X-axis coordinate of the CLD point, CLDy represents the Y-axis coordinate of the CLD point, CLDz represents the Z-axis coordinate of the CLD point, CRUx represents the X-axis coordinate of the CRU point, CRUy represents the Y-axis coordinate of the CRU point, CRUz represents the Z-axis coordinate of the CRU point, CRDx represents the X-axis coordinate of the CRD point, CRDy represents the Y-axis coordinate of the CRD point, CRDz represents the Z-axis coordinate of the CRD point, CLU′x represents the X-axis coordinate of the CLU′ point, CLU′y represents the Y-axis coordinate of the CLU′ point CLU′z represents the Z-axis coordinate of the CLU′ point, CLD′x represents the X-axis coordinate of the CLD′ point, CLD′y represents the Y-axis coordinate of the CLD′ point, and CLD′z represents the Z-axis coordinate of the CLD′ point. CRU′x represents the X-axis coordinate of the CRU′ point, CRU′y represents the Y-axis coordinate of the CRU′ point, CRU′z represents the Z-axis coordinate of the CRU′ point, CRD′x represents the X-axis coordinate of the CRD′ point, CRD′y represents the Y-axis coordinate of the CRD′ point, and CRD′z represents the Z-axis coordinate of the CRD′ point. dx represents the x-axis coordinate of the projection point on the plane image, dy represents the y-axis coordinate of the projection point on the plane image, and ps represents the pixel of the plane image.

[0093] In some embodiments, optionally, Figure 7 As shown, for a point R (Rx, Ry, Rz) to be reconstructed at a new angle of the C-arm, its corresponding projection point RP (dx, dy) on the image can be obtained, so that interpolation reconstruction can be performed according to the 3D reconstruction formula. The specific reconstruction formula is as follows:

[0094]

[0095] The spatial point coordinates R (Rx, Ry, Rz) and the projection point coordinates RP (dx, dy) have been obtained in the above calculations. g (l, z, β) is the filtered projection passing through point R at the detector RP, β is the projection angle, l is the projection path, DSO represents the distance between the focus and the x-axis in the y direction, and DSD represents the distance between the focus and the plane image in the y direction.

[0096] A second aspect of the present invention provides a 3D reconstruction system 200 for a C-arm, the C-arm comprising a detector and a tube, such as Figure 2As shown, the 3D reconstruction system 200 includes: a coordinate establishment module 202, which is used to establish a spatial coordinate system; a data selection module 204, which is used to select a three-dimensional point on the spatial coordinate system and obtain the coordinates of the three-dimensional point; a plane data acquisition module 206, which is used to determine the plane coordinate expression of the plane image formed by the detector at each working position in the spatial coordinate system and determine the focal coordinates of the tube at each working position; a projection determination module 208, which is used to determine the projection of the three-dimensional point on the plane image according to the focal point, and obtain the projection coordinates projected in the spatial coordinate system; a boundary determination module 210, which is used to obtain the straight line expression of the boundary of each plane image in the spatial coordinate system; a projection two-dimensional coordinate calculation module 212, which obtains the two-dimensional coordinates of the three-dimensional point on the plane image according to the straight line expression and the projection coordinates; a model establishment module 214, which is used to establish a 3D reconstruction model based on the correspondence between the two-dimensional coordinates of any point on the plane image and the three-dimensional coordinates of any point and according to the two-dimensional coordinates on the plane image and the corresponding relationship.

[0097] Optional, such as Figure 4 and Figure 5 As shown, the planar data acquisition module includes a navigation camera 2. The navigation camera can be fixed on the C-arm 1, and the navigation camera 2 is used to provide the positions of the tube 3 and the detector 4, and thereby the transformation matrix Md of the detector and the transformation matrix Ms of the focus are calculated.

[0098] A third aspect of the present invention provides a 3D reconstruction system 300, such as Figure 3 As shown, it includes a memory 302 and a processor 304. The memory 302 stores programs or instructions that can be run on the processor 304. When the programs or instructions are executed by the processor 304, the steps of the 3D reconstruction method provided in the first aspect are implemented.

[0099] A fourth aspect of the present invention provides a readable storage medium having programs and / or instructions stored thereon, which, when executed by a processor, implement the steps of the 3D reconstruction method provided in the first aspect.

[0100] The fifth aspect of the present invention provides a C-arm 1, comprising: the 3D reconstruction system 200 provided in the second aspect, and / or the 3D reconstruction system 300 provided in the third aspect, and / or the readable storage medium provided in the fourth aspect.

[0101] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0102] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0103] In addition, the embodiments of the present invention may be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in the field. When the combination of the embodiments is contradictory or cannot be implemented, it should be deemed that such combination of embodiments does not exist and is not within the scope of protection required by the present invention.

[0104] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A 3D reconstruction method, characterized in that: For a C-shaped arm, the C-shaped arm includes a detector and a tube, and the 3D reconstruction method includes: Establish a spatial coordinate system; Selecting a three-dimensional point on the spatial coordinate system and obtaining the coordinates of the three-dimensional point; Determine the plane coordinate expression of the plane image formed by the detector at each working position in the space coordinate system; Determining the focal coordinates of the tube at each working position; Determine the projection of the three-dimensional point on the plane image according to the focal coordinates, and obtain the projection coordinates of the projection in the space coordinate system; Obtaining a straight line expression of the boundary of each of the plane images in the space coordinate system; According to the straight line expression and the projection coordinates, obtain the two-dimensional coordinates of the three-dimensional point on the plane image; Obtaining a correspondence between the two-dimensional coordinates and the three-dimensional coordinates based on the two-dimensional coordinates of any of the three-dimensional points on the plane image and the three-dimensional coordinates of any of the three-dimensional points; A 3D reconstruction model is established according to the two-dimensional coordinates on the plane image and the corresponding relationship.

2. The 3D reconstruction method according to claim 1, characterized in that: The steps of establishing a spatial coordinate system include: The spatial coordinate system is established by taking any point on the axis of the C-shaped arm as the origin, the axis of the C-shaped arm as the X-axis, and the distance from the origin to the initial position of the tube as the Z-axis.

3. The 3D reconstruction method according to claim 1, characterized in that: Determining the plane coordinate expression of the plane image formed by the detector at each working position in the space coordinate system; The step of determining the focal coordinates of the tube at each working position comprises: According to the initial position of the detector and the initial position of the focus, obtaining a first plane coordinate expression of the plane image formed by the detector, a first coordinate of the focus, and a first direction angle of the detector in the spatial coordinate system; Obtaining the transformation matrix Md of the detector and the transformation matrix Ms of the focus; Obtain the second direction angle of the detector when the detector and the focus are in any working position, and determine the second plane coordinate expression of the plane image formed by the detector in any working position and the second coordinates of the focus according to the first direction angle of the detector, the second direction angle of the detector, the transformation matrix Md of the detector and the transformation matrix Ms of the focus.

4. The 3D reconstruction method according to claim 3, characterized in that: The step of determining the projection of the three-dimensional point on the plane image according to the focal coordinates to obtain the projection coordinates of the projection in the space coordinate system comprises: Determine a first straight line according to the three-dimensional coordinates of any of the three-dimensional points and the second coordinates; According to the first straight line and the second plane coordinate expression, the projection coordinates of any three-dimensional point on the second plane coordinate expression are obtained.

5. The 3D reconstruction method according to claim 3 or 4, characterized in that: The step of obtaining a straight line expression of the boundary of each of the plane images in the space coordinate system comprises: Obtaining the boundary coordinates of the detector at the initial position; According to the transformation matrix Md of the detector and the boundary coordinates of the detector at the initial position, a straight line expression of the boundary of the plane image at any working position is obtained.

6. A 3D reconstruction system, characterized in that: For a C-shaped arm, the C-shaped arm includes a detector and a tube, and the 3D reconstruction system includes: A coordinate establishment module is used to establish a spatial coordinate system; A data selection module, used for selecting a three-dimensional point on the spatial coordinate system and obtaining the coordinates of the three-dimensional point; A plane data acquisition module, used to determine the plane coordinate expression of the plane image formed by the detector at each working position in the space coordinate system and to determine the focal coordinates of the tube at each working position; A projection determination module, used to determine the projection of the three-dimensional point on the plane image according to the focal coordinates, and obtain the projection coordinates of the projection in the space coordinate system; A boundary determination module, used for obtaining a straight line expression of the boundary of each of the planar images in the space coordinate system; A projection two-dimensional coordinate calculation module, used for obtaining the two-dimensional coordinates of the three-dimensional point on the plane image according to the straight line expression and the projection coordinates; A model building module is used to obtain the correspondence between the two-dimensional coordinates and the three-dimensional coordinates of any three-dimensional point on the plane image and the three-dimensional coordinates of any three-dimensional point, and to build a 3D reconstruction model according to the two-dimensional coordinates on the plane image and the correspondence.

7. The 3D reconstruction system according to claim 6, characterized in that: The plane data acquisition module includes a navigation camera.

8. A 3D reconstruction system, characterized in that: The method comprises a memory and a processor, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the 3D reconstruction method according to any one of claims 1 to 5 are implemented.

9. A readable storage medium, characterized in that: Programs and / or instructions are stored thereon, and when the programs and / or the instructions are executed by a processor, the steps of the 3D reconstruction method according to any one of claims 1 to 5 are implemented.

10. A C-shaped arm, characterized in that: include: The 3D reconstruction system according to claim 6 or 7; and / or The 3D reconstruction system as claimed in claim 8; and / or The readable storage medium as claimed in claim 9.

Citation Information

Cited By

  • 3D reconstruction method, 3D reconstruction systems, and readable storage medium and c-arm

    WO2025246220A1