C-shaped arm positioning method and device, equipment and storage medium
By deploying a tracker on the C-arm and obtaining its spatial posture information, the problem of obstructions affecting the C-arm posture determination is solved, surgical accuracy and imaging flexibility are improved, and the re-transillumination process is reduced.
Patent Information
- Application Number
- CN202410693318.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-27
AI Technical Summary
In robot-assisted surgery, there may be obstructions within the C-arm's imaging field of view, causing the developed steel ball of the registration mark plate to be blocked, affecting the accuracy of the C-arm's spatial posture determination, and thus affecting the surgical accuracy.
Deploy a tracker on the C-arm, obtain the spatial attitude information of the tracker through the optical tracking system, and pre-calibrate the conversion parameters from the C-arm coordinate system to the tracker coordinate system to ensure that the tracker can be directly used during surgery. The position determines the spatial posture of the C-arm to avoid the influence of occlusion.
It improves the imaging accuracy and surgical precision of the C-arm, reduces the re-transmission process caused by low image quality, and enhances the flexibility and robustness of imaging.
Smart Images

Figure CN118697479A
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical equipment technology, and in particular to a C-arm positioning method, device, equipment and storage medium. Background Art
[0002] Robotic-Assisted Surgery is an advanced medical technology that uses robotic technology to assist surgeons in performing surgery. Robotic-assisted surgery uses mature robotic systems to provide more precise and stable operations, thereby reducing surgical risks and the possibility of complications, and enabling smaller incisions and faster recovery times.
[0003] In a related technology, when using a C-arm for robot-assisted surgery, in order to confirm the patient's spatial position, it is necessary to use a registration marker plate with several developing steel balls to estimate the posture of the C-arm during the operation, so that the subsequent registration process can be carried out to better perform the operation.
[0004] However, during the operation, other surgical tools may exist within the imaging field of view of the C-arm, or the developing steel ball of the registration marker plate may be blocked due to the influence of the patient's bone structure, resulting in inaccurate determination of the spatial posture of the C-arm, which in turn affects the subsequent registration accuracy and also affects the accuracy of the operation. Summary of the invention
[0005] The present application provides a C-arm positioning method, device, equipment and storage medium to solve the problem of how to quickly and relatively accurately position the C-arm during surgery.
[0006] In a first aspect, the present application provides a C-arm positioning method, wherein a tracker is deployed on the C-arm, and the tracker can be identified by an optical tracking system, and the method comprises:
[0007] When the C-arm images the lesion area of the target object, the spatial posture information of the tracker is obtained through the optical tracking system; wherein the spatial posture information of the tracker represents the posture of the tracker in the coordinate system of the optical tracking system;
[0008] The spatial posture information of the C-arm is determined according to the spatial posture information and target conversion parameters of the tracker; wherein the target conversion parameters represent the conversion parameters from the C-arm coordinate system to the tracker coordinate system, and the target conversion parameters are pre-calibrated before the C-arm images the lesion area of the target object, and the spatial posture information of the C-arm represents the posture of the C-arm in the optical tracking system coordinate system, and the spatial posture information of the C-arm is used for image registration.
[0009] Optionally, the spatial posture information of the C-arm includes the position of the light source point and the position of the imaging plane on the C-arm.
[0010] Optionally, before the C-arm images the lesion area of the target object, the method further includes:
[0011] Acquire a first conversion parameter from the tracker coordinate system to the optical tracking system coordinate system, and acquire a second conversion parameter from the C-arm coordinate system to the optical tracking system coordinate system;
[0012] A target conversion parameter is determined according to the first conversion parameter and the second conversion parameter.
[0013] Optionally, obtaining a second conversion parameter from the C-arm coordinate system to the optical tracking system coordinate system includes:
[0014] Performing imaging processing on the registration mark plate through a C-arm; wherein m non-coplanar developing steel balls are arranged on the registration mark plate, and m is an integer ≥ 7;
[0015] Obtaining the first spatial coordinate of each developing steel ball in the coordinate system of the optical tracking system through the optical tracking system;
[0016] Establishing a C-arm coordinate system, and obtaining the second spatial coordinate of each developing steel ball in the C-arm coordinate system;
[0017] According to the first spatial coordinates and the second spatial coordinates of each developing steel ball, a second conversion parameter from the C-arm coordinate system to the optical tracking system coordinate system is determined.
[0018] Optionally, when the registration marker plate is imaged by the C-arm, the imaging field of view of the C-arm does not include objects that may block the registration marker plate.
[0019] Optionally, the target conversion parameters include target rotation parameters and target translation parameters, the first conversion parameters include spatial rotation parameters and spatial translation parameters from the tracker coordinate system to the optical tracking system coordinate system, and the second conversion parameters include spatial rotation parameters and spatial translation parameters from the C-arm coordinate system to the optical tracking system coordinate system; determining the target conversion parameters according to the first conversion parameters and the second conversion parameters includes:
[0020] Determine a target rotation parameter according to the spatial rotation parameter in the first conversion parameter and the spatial rotation parameter in the second conversion parameter;
[0021] The target translation parameter is determined according to the spatial rotation parameter and the spatial translation parameter in the first conversion parameter and the spatial rotation parameter and the spatial translation parameter in the second conversion parameter.
[0022] In a second aspect, the present application provides a C-arm positioning device, wherein a tracker is deployed on the C-arm, and the tracker can be identified by an optical tracking system, and the device comprises:
[0023] An acquisition unit is used to acquire spatial posture information of the tracker through the optical tracking system when the C-arm images the lesion area of the target object; wherein the spatial posture information of the tracker represents the position of the tracker in the coordinate system of the optical tracking system;
[0024] A processing unit is used to determine the spatial posture information of the C-arm according to the spatial posture information of the tracker and the target conversion parameters; wherein the target conversion parameters represent the conversion parameters from the C-arm coordinate system to the tracker coordinate system, and the target conversion parameters are pre-calibrated before the C-arm images the lesion area of the target object, and the spatial posture information of the C-arm represents the position of the C-arm in the optical tracking system coordinate system, and the spatial posture information of the C-arm is used for image registration.
[0025] In a third aspect, the present application provides an electronic device, the electronic device comprising: a processor, and a memory communicatively connected to the processor;
[0026] The memory stores computer-executable instructions;
[0027] The processor executes the computer-executable instructions stored in the memory to implement the above-mentioned method.
[0028] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the method as described above when executed by a processor.
[0029] In a fifth aspect, the present application provides a computer program product, including a computer program, which is used to implement the method as described above when executed by a processor.
[0030] In the C-arm positioning method, device, equipment and storage medium provided by the present application, a tracker is deployed on the C-arm, and the tracker can be identified by an optical tracking system. The method includes: when the C-arm images the lesion area of the target object, obtaining the spatial posture information of the tracker through the optical tracking system; wherein the spatial posture information of the tracker represents the posture of the tracker in the coordinate system of the optical tracking system; determining the spatial posture information of the C-arm according to the spatial posture information of the tracker and the target conversion parameters; wherein the target conversion parameters represent the conversion parameters from the C-arm coordinate system to the tracker coordinate system, and the target conversion parameters are pre-calibrated before the C-arm images the lesion area of the target object, and the spatial posture information of the C-arm represents the posture of the C-arm in the coordinate system of the optical tracking system, and the spatial posture information of the C-arm is used for image registration. The method of the present application obtains the conversion parameters from the C-arm coordinate system to the tracker coordinate system in advance. Therefore, during the operation, the optical tracking system only needs to output the position of the tracker to determine the spatial posture information of the C-arm, thereby avoiding the situation where the spatial posture information of the C-arm is inaccurate due to the presence of obstructions in the imaging field of the C-arm. Based on this, accurate spatial posture information of the C-arm can be quickly obtained, thereby improving the accuracy of subsequent operations. In addition, the spatial posture information of the C-arm obtained in this way is highly robust, thereby improving the flexibility of imaging, reducing the transmission process that has to be performed due to the inability to confirm the spatial posture of the C-arm due to low image quality, and can also effectively reduce the situation of re-transmission imaging caused by the instability of image algorithm processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0032] Figure 1 A schematic diagram of the structure of a C-arm device provided in an embodiment of the present application;
[0033] Figure 2 A schematic diagram of a flow chart of a C-arm positioning method provided in an embodiment of the present application;
[0034] Figure 3 A schematic diagram of the relationship between various coordinate systems and C-arm imaging planes provided in an embodiment of the present application;
[0035] Figure 4 A flowchart of a method for obtaining target conversion parameters from a C-arm coordinate system to a tracker coordinate system provided in an embodiment of the present application;
[0036] Figure 5 A schematic diagram of the structure of a C-arm positioning device provided in an embodiment of the present application;
[0037] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0038] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0040] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the invention described herein, for example, can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0041] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0042] C-arm equipment is one of the commonly used X-ray imaging devices in medical equipment, mainly used for radiological diagnosis and interventional surgery. C-arm equipment plays an important role in medical imaging and interventional surgery. It can provide doctors with high-quality real-time images to help improve diagnostic accuracy and surgical success rate.
[0043] When a C-arm device is used in robot-assisted surgery, in order to confirm the patient's spatial position during the operation, it is necessary to use a registration marker plate with several developing steel balls to estimate the posture of the C-arm during the operation, so that the subsequent registration process can be carried out to better perform the operation. However, during the operation, there may be other surgical tools within the imaging field of view of the C-arm, or the developing steel balls of the registration marker plate may be blocked due to the influence of the patient's bone structure, etc. When the developing steel balls of the registration marker plate are blocked, the spatial posture of the C-arm will be inaccurately determined, which will in turn affect the subsequent registration accuracy, and the patient's exact position cannot be determined, thereby affecting the accuracy of the operation.
[0044] In order to solve the above problems, the present application provides a C-arm positioning method, in which a tracker is installed on the C-arm, and the tracker will not be blocked during the operation. Before the operation, the relative relationship between the spatial posture of the C-arm and the posture of the tracker is first determined, and the conversion parameters from the C-arm coordinate system to the tracker coordinate system are obtained, so that the spatial posture of the C-arm can be directly determined by the position of the tracker during the operation. This solution is not affected by the blocking of the developing steel ball of the registration mark plate within the imaging range, can improve the effectiveness of C-arm imaging, avoid re-imaging due to blocking problems, and can reduce the patient's radiation.
[0045] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0046] Figure 1 This is a schematic diagram of the structure of a C-arm device provided in an embodiment of the present application. Figure 1 As shown, the C-arm device includes a C-arm 10 and a base 20. In addition, the C-arm device also includes components not shown in the figure, such as an image intensifier (or flat panel detector), an X-ray generator, a console, and a display. The C-arm can move and rotate in the horizontal and vertical directions to obtain X-ray images of the patient's body at different angles. The imaging of the C-arm can be abstracted as a model in which a light source point (X-ray generator) emits rays and receives rays on an imaging plane (image intensifier or flat panel detector). The position of the light source point and the position of the imaging plane are shown in FIG. Figure 1 As shown, when the positions of the light source point and the four corner points of the imaging plane are determined, the spatial position of the C-arm is also uniquely determined.
[0047] In this application, a tracker is also deployed on the C-arm. In order to enable the optical tracking system to accurately obtain the spatial posture information of the tracker, the tracker includes at least three non-collinear reflective balls. In this application, there is no restriction on the deployment position of the tracker. For example, the tracker can be located at Figure 1 During the operation, the tracker will not be blocked in any corner of the area where the imaging plane is located, and the tracker can be recognized by the optical tracking system. The optical tracking system is a technical system that uses optical equipment to track the position, movement and behavior of the target. For the target to be tracked, it can output the spatial position, angle and other spatial posture information of the target.
[0048] Figure 2 A flow chart of a C-arm positioning method provided in an embodiment of the present application. The execution subject of the embodiment of the present application may be a C-arm positioning device, which may be located on an electronic device for controlling robot-assisted surgery, and the electronic device may be a mobile terminal such as a computer, etc., which is not limited in the present application. The embodiment of the present application is described in detail by taking the execution subject as a C-arm positioning device as an example.
[0049] like Figure 2 As shown, the C-arm positioning method provided in this embodiment includes:
[0050] S201. When the C-arm images the lesion area of the target object, the spatial posture information of the tracker is obtained through the optical tracking system; wherein the spatial posture information of the tracker represents the posture of the tracker in the coordinate system of the optical tracking system.
[0051] For example, the target object is a patient. During the operation, when the C-arm images the lesion area of the target object, the relative position of the patient and the C-arm is fixed. After the relative position of the patient and the C-arm is fixed, the C-arm positioning device can obtain the spatial posture information of the tracker through the optical tracking system. The spatial posture information of the tracker can be expressed as F .
[0052] Optionally, the optical tracking system can obtain the spatial posture information of the tracker in any feasible manner, which is not limited in this application. According to actual needs, the optical tracking system can output the position coordinates of the tracker in three-dimensional space, the rotation matrix and other information used to indicate the spatial posture of the tracker.
[0053] S202. Determine the spatial posture information of the C-arm according to the spatial posture information of the tracker and the target conversion parameters; wherein the target conversion parameters represent the conversion parameters from the C-arm coordinate system to the tracker coordinate system, and the target conversion parameters are pre-calibrated before the C-arm images the lesion area of the target object, and the spatial posture information of the C-arm represents the posture of the C-arm in the optical tracking system coordinate system, and the spatial posture information of the C-arm is used for image registration.
[0054] For example, in the embodiment of the present application, the tracker is deployed on the C-arm, and the position of the tracker relative to the C-arm does not change. Therefore, after determining the spatial posture information of the tracker, the C-arm positioning device can determine the spatial posture information of the C-arm according to the spatial posture information of the tracker and the conversion parameters from the C-arm coordinate system to the tracker coordinate system. The spatial posture information of the C-arm can be expressed as c The spatial posture information of the C-arm is used for image registration. Based on the accurate spatial posture information of the C-arm, more accurate spatial posture information of the patient can be obtained, so that subsequent surgical procedures can be performed more accurately and the surgical accuracy can be improved.
[0055] Optionally, the target transformation parameters may include a target rotation parameter R x and the target translation parameter T x How to pre-calibrate and obtain the target conversion parameters before the C-arm images the lesion area of the target object will be introduced in the next embodiment and will not be described in detail here.
[0056] In the embodiment of the present application, the conversion relationship between the C-arm coordinate system and the tracker coordinate system satisfies formula (1):
[0057] O F =R x O c +T x (1)
[0058] Therefore, when determining the spatial posture information O of the tracker F Then, by substituting it into formula (1), we can get the spatial posture information O of the C-arm: c .
[0059] Optionally, the spatial posture information of the C-arm includes the position of the light source point on the C-arm and the position of the imaging plane. The relative position of the light source point on the C-arm and the position of the imaging plane will not change. When any one of the positions is determined, the other position can also be determined accordingly, and this application does not limit this.
[0060] In the C-arm positioning method provided in the embodiment of the present application, a tracker is deployed on the C-arm, and the tracker can be identified by the optical tracking system. The method includes: when the C-arm images the lesion area of the target object, obtaining the spatial posture information of the tracker through the optical tracking system; wherein the spatial posture information of the tracker represents the position of the tracker in the coordinate system of the optical tracking system; determining the spatial posture information of the C-arm according to the spatial posture information of the tracker and the target conversion parameters; wherein the target conversion parameters represent the conversion parameters from the C-arm coordinate system to the tracker coordinate system, and the target conversion parameters are pre-calibrated before the C-arm images the lesion area of the target object, and the spatial posture information of the C-arm represents the position of the C-arm in the coordinate system of the optical tracking system, and the spatial posture information of the C-arm is used for image registration. According to the method of the embodiment of the present application, since the conversion parameters from the C-arm coordinate system to the tracker coordinate system are acquired in advance, during the operation, only the optical tracking system needs to output the position of the tracker to determine the spatial posture information of the C-arm, thereby avoiding the situation where the spatial posture information of the C-arm is inaccurately determined due to the presence of obstructions in the imaging field of view of the C-arm. Based on this, accurate spatial posture information of the C-arm can be quickly obtained, thereby improving the accuracy of subsequent operations. In addition, the spatial posture information of the C-arm acquired in this way is highly robust, thereby improving the flexibility of imaging, reducing the transmission process that has to be performed due to the inability to confirm the spatial posture of the C-arm due to low image quality, and can also effectively reduce the situation of re-transmission imaging caused by the instability of image algorithm processing.
[0061] Next, a process of pre-calibrating and obtaining target conversion parameters before the C-arm images the lesion area of the target object is introduced in detail.
[0062] For example, when the imaging of the C-arm is abstracted as a model in which a light source point emits rays and receives rays on an imaging plane, the C-arm coordinate system can be constructed with the normal of the imaging plane as the Z axis, the horizontal axis of the image as the X axis, the vertical axis of the image as the Y axis, and the position of the light source point as the origin. c If the coordinate system of the optical tracking system adopts O w It means that when O is found w With O c The relative position relationship of the C-arm can uniquely determine the spatial posture of the C-arm.
[0063] In order to determine the spatial posture of the C-arm, a new coordinate system, the tracker coordinate system, is introduced in this application. F , through O w -O F -O c The connection between the C-arm coordinate system and the optical tracking system coordinate system can be established. F -O cThe calculation process (calibration process) is only completed before surgery. w -O F The process can be directly output by the optical tracking system during calibration and surgery without additional calculation. The tracker coordinate system O can be constructed with any reflective ball on the tracker as the coordinate origin. F , the optical tracking system coordinate system O is constructed with the optical device as the coordinate origin w , this application does not impose any restrictions on this. Tracker coordinate system O F , optical tracking system coordinate system O w And the C-arm coordinate system O c The relationship with the imaging plane can be referred to Figure 3 shown. Figure 3 A schematic diagram of the relationship between various coordinate systems and the C-arm imaging plane provided in an embodiment of the present application.
[0064] Optionally, target transformation parameters from the C-arm coordinate system to the tracker coordinate system may be acquired during the calibration phase.
[0065] Figure 4 A flow chart of a method for obtaining target conversion parameters from a C-arm coordinate system to a tracker coordinate system provided in an embodiment of the present application. Figure 4 As shown, the process of obtaining the target transformation parameters from the C-arm coordinate system to the tracker coordinate system may include:
[0066] S401, obtaining a first conversion parameter from a tracker coordinate system to an optical tracking system coordinate system, and obtaining a second conversion parameter from a C-arm coordinate system to an optical tracking system coordinate system.
[0067] Optionally, the tracker includes n non-collinear reflective balls, where n is an integer ≥ 3. When obtaining the first conversion parameter from the tracker coordinate system to the optical tracking system coordinate system, specifically, since the present application fixes a tracker on the C-arm, and the tracker includes at least three non-collinear reflective balls, the first conversion parameter can be calculated by the output of the optical tracking system during the calibration phase. The tracker coordinate system can be O F The coordinate system of the optical tracking system can be expressed as w It means that the transformation relationship from the tracker coordinate system to the optical tracking system coordinate system satisfies formula (2):
[0068] O w =R F O F +T F (2)
[0069] Among them, R F is the spatial rotation parameter from the tracker coordinate system to the optical tracking system coordinate system, which can be expressed as a 3×3 matrix; TF is the spatial translation parameter from the tracker coordinate system to the optical tracking system coordinate system, which can be expressed as a 3×1 vector. In the first transformation parameter, R F and T F The value of can be obtained through the output of the optical tracking system.
[0070] Among them, based on the output of the optical tracking system to R F and T F The conversion principle is as follows:
[0071] The optical tracking system will establish a global coordinate system during operation. The tracked device (in this application, the tracked device is the tracker on the C-arm) needs to establish a local coordinate system to input into the optical tracking system. The output of the optical tracking system is actually the conversion relationship between the global coordinate system and the local coordinate system. In actual operation, the optical tracking system will output 7 numbers, namely q0, q1, q2, q3, t1, t2, t3, where t1, t2, t3 are T F q0, q1, q2, q3 are the rotation information represented by quaternions, and the calculation method for converting them into rotation matrices is:
[0072]
[0073] Based on this, the first conversion parameter R from the tracker coordinate system to the optical tracking system coordinate system can be obtained: F and T F .
[0074] Optionally, obtaining a second conversion parameter from the C-arm coordinate system to the optical tracking system coordinate system may include:
[0075] S10, performing imaging processing on the registration mark plate through a C-arm; wherein m non-coplanar developing steel balls are arranged on the registration mark plate, and m is an integer ≥7.
[0076] S20. Obtain the first spatial coordinates of each developing steel ball in the optical tracking system coordinate system through the optical tracking system.
[0077] It can be understood that the conversion relationship from the registration mark plate coordinate system to the optical tracking system coordinate system can be obtained through the output of the optical tracking system, and then the first spatial coordinate P of each developing steel ball can be calculated based on the position of each developing steel ball on the registration mark plate. w (X w ,Y w ,Z w). Optionally, in order for the optical tracking system to accurately obtain the first spatial coordinate of each developing steel ball in the optical tracking system coordinate system, when the registration mark plate is imaged by the C-arm, the imaging field of the C-arm does not include objects that may block the registration mark plate.
[0078] S30, establishing a C-arm coordinate system, and obtaining the second spatial coordinates of each developing steel ball in the C-arm coordinate system.
[0079] S40, determining a second conversion parameter from the C-arm coordinate system to the optical tracking system coordinate system according to the first spatial coordinates and the second spatial coordinates of each developing steel ball.
[0080] Exemplarily, a C-arm can be used to image the registration marker plate and obtain the spatial posture information of the registration marker plate in the optical tracking system. The registration marker plate can include at least three non-collinear reflective balls and no less than 7 non-coplanar developing steel balls. In order to eliminate the influence of distortion during imaging, the developing steel balls should occupy as wide an imaging area as possible during imaging. Through the spatial posture information of the registration marker plate, as well as the imaging parameters when imaging the registration marker plate, the conversion relationship from the C-arm coordinate system to the optical tracking system coordinate system can be determined, thereby obtaining the second conversion parameter.
[0081] Specifically, the imaging principle of the C-arm can be simplified to a pinhole imaging model. For a spatial point P w (X w ,Y w ,Z w ), which can be expressed in the camera coordinate system (i.e., the C-arm coordinate system) as (X c ,Y c ,Z c ), the relationship between the two coordinates can be expressed as formula (3):
[0082]
[0083] Among them, R c is a 3×3 matrix, T c is a 3×1 vector, R c With T c Together they can be used to represent the positional relationship between the optical tracking system coordinate system and the C-arm coordinate system.
[0084] In the embodiment of the present application, the first spatial coordinate P of each developing steel ball in the optical tracking system coordinate system can be w (X w ,Y w ,Z w ), and the second spatial coordinate (X c ,Y c,Z c ) is substituted into equation (3) to construct a system of equations to obtain the transformation parameter R from the optical tracking system coordinate system to the C-arm coordinate system c and T c Among them, R c is the spatial rotation parameter from the optical tracking system coordinate system to the C-arm coordinate system, T c It is the spatial translation parameter from the optical tracking system coordinate system to the C-arm coordinate system.
[0085] For example, due to various uncontrollable factors, the developing steel ball will be distorted when projected onto the imaging plane. Therefore, in the embodiment of the present application, the second spatial coordinate in the C-arm coordinate system can also be converted by the actual position information of the developing steel ball on the imaging plane.
[0086] Specifically, the position coordinates of the spatial point (in this application, corresponding to the developing steel ball) projected onto the imaging plane can be expressed as p(x c ,y c ), due to distortion, the point imaged on the image is actually p d (x′ c ,y′ c ), the pixel coordinates of this point are (u d ,v d ). According to the pinhole imaging model, projecting the spatial point onto the imaging plane, we can have:
[0087]
[0088] x′ c =x c +6 X (5)
[0089] y′ c =y c +6 y (6)
[0090]
[0091] Among them, δ x represents the amount of distortion in the x direction, δ y represents the distortion in the y direction, f is the distance from the C-arm light source to the imaging plane, d x and d y They represent the x- and y-direction resolutions of the image of the spatial point on the imaging plane, respectively. u0 and v0 represent the pixel coordinates of the center point of the optical axis, respectively. u0 and v0 can be represented by taking half of the image size. If no distortion is considered, then x′ c =x c , y′ c =y c.like Figure 3 According to the geometric relationship between the imaging points, P0P w With p0p d Parallel, so it satisfies formula (8):
[0092] x′ c Y c -y′ c X c =0 (8)
[0093] Based on formulas (3), (4), (7), and (8), we can obtain formula (9):
[0094]
[0095] In formula (9) By reorganizing equation (9) into a matrix form of Ax=B, we can obtain:
[0096]
[0097] When there are m developing steel balls (marking points), m equations can be constructed and solved by the least squares method:
[0098] x=(A T A) -1 A T B
[0099] At this point, the value of each element in x can be determined.
[0100] Then, if you remember Considering is the rotation matrix, which is the unit orthogonal matrix. The constraint condition is satisfied, so formula (10) is satisfied:
[0101]
[0102] You can get: Then, determine T y The symbol. Figure 3 It can be found that when observing a spatial point in the C-arm coordinate system, its X-axis and Y-axis coordinate values should have the same signs as the X-axis and Y-axis coordinate values projected onto the imaging plane, that is, Y c With y c The signs are the same. Therefore, we can first assume that T y The sign is positive, select the point on the image farthest from the center of the image, and calculate Y c =r 21 X w +r 22 Y w +r23 Z w +T y ,calculate At this time (although d y The value of is unknown, but due to its physical meaning, it must be positive, and we only need to compare Y c With y c The symbol of d y =1, this will not affect the sign judgment, compare Y c With y c Are the signs the same? If they are the same, the assumption is established. y The sign is positive, otherwise, T y The sign is negative.
[0103] Then, we can get: 21 =T y x1,r 22 =T y x2,r 23 =T y x3.
[0104] Calculate α: Since R c is a unit orthogonal matrix, so it also satisfies equation (11):
[0105]
[0106] You can get: From the physical meaning, we know The value is positive, so you can directly get a positive value when taking the square root. Calculate r using x4, x5, x6, x7 and the known value 11 ,r 12 ,r 13 ,T x Value: r 11 =T y x4 / α,r 12 =T y x5 / α,r 13 =T y x6 / α,T x =T y x7 / α.
[0107] Considering R c is a unit orthogonal matrix, the vector [r 31 ,r 32 ,r 33 ] can be achieved through [r 11 ,r 12 ,r 13 ] and [r 21 ,r 22 ,r 23] is obtained by performing vector cross multiplication.
[0108] So far, there is still T in the internal and external references. z ,d x ,d y Unsolved, but d x ,d y The proportional relationship has been obtained, so we only need to calculate T z and d x ,d y Just one of them.
[0109] According to the projection relationship, so:
[0110]
[0111] Where, f is the projection distance, which can be obtained from the technical indicators of the C-arm. Let k x =fd x , after rearranging the above formula (12), we have:
[0112]
[0113] Bring in all points to construct a system of equations, and use the least squares method to get the parameter k x and T z The solution.
[0114] At this point, R can be considered without considering the distortion c and T c All parameters in are determined to obtain the spatial rotation parameter R from the optical tracking system coordinate system to the C-arm coordinate system c and the spatial translation parameter T c At this time, the transformation relationship between the optical tracking system coordinate system and the C-arm coordinate system can be obtained by R c and T c It can be expressed as formula (14):
[0115] O c =R c O w +T c (14)
[0116] The transformation relationship from the C-arm coordinate system to the optical tracking system coordinate system can be expressed as formula (15):
[0117]
[0118] Based on this, the transformation relationship from the C-arm coordinate system to the optical tracking system coordinate system can be obtained without considering the distortion, and the second transformation parameter from the C-arm coordinate system to the optical tracking system coordinate system can be obtained. as well as
[0119] If distortion is considered, the distortion can be expressed as:
[0120]
[0121] in: k1, k2 are radial distortion coefficients, p1, p2 are tangential distortion coefficients, s1, s2, s3, s4 are prism distortion coefficients. The objective function is constructed by adding distortion after spatial point projection and the distance from the corresponding point on the image:
[0122]
[0123] Using nonlinear optimization methods, we can obtain the parameters that minimize J, which is the estimated distortion coefficient.
[0124] Then, the distortion is introduced and the above calculation process is repeated to obtain the internal parameter (k x ,k y ,u0,v0), external reference (r 11 ,r 12 ,r 13 ,r 21 ,r 22 ,r 23 ,r 31 ,r 32 ,r 33 ,T x ,T y ,T z ), the distortion coefficients (k1, k2, p1, p2, s1, s2, s3, s4) are iteratively optimized until the preset number of iterations is reached, or the J value stops due to the preset value. Among them, the initial values of the internal parameter matrix and the external parameter matrix are calculated using the values obtained by the previous linear method, and the initial values of the distortion coefficients are all zero.
[0125] Among them, after the distortion amount is substituted into the calculation process of the above formula (4) to formula (15), the transformation relationship of the C-arm coordinate system to the optical tracking system coordinate system after considering the distortion can be obtained as shown in formula (15), thereby obtaining the second transformation parameter of the C-arm coordinate system to the optical tracking system coordinate system when considering the distortion. The transformation relationship of the C-arm coordinate system to the optical tracking system coordinate system considering the distortion is more in line with the actual situation, and the subsequent parameters determined based on this are more accurate. Generally, the distortion needs to be considered in the calculation.
[0126] S402: Determine a target conversion parameter according to the first conversion parameter and the second conversion parameter.
[0127] For example, based on equations (2) and (15), the relative spatial posture of the C-arm and the tracker can be calculated. Specifically, the coordinate origin of the optical tracking system is taken, and the C-arm coordinate system and the tracker coordinate system are used to represent the same point, and we have:
[0128]
[0129] After transformation, the equation is:
[0130]
[0131] If you Then there is O F =R x O c +T x represents the relative position relationship between the tracker coordinate system and the C-arm coordinate system. That is, the conversion relationship between the C-arm coordinate system and the tracker coordinate system can be obtained—Formula (1), R x It is the spatial rotation parameter from the C-arm coordinate system to the tracker coordinate system, T x That is, the spatial translation parameter from the C-arm coordinate system to the tracker coordinate system.
[0132] That is, when obtaining the first conversion parameter R from the tracker coordinate system to the optical tracking system coordinate system F and T F , and obtain the second transformation parameters from the C-arm coordinate system to the optical tracking system coordinate system as well as Afterwards, the spatial rotation parameter R in the first transformation parameter can be used F and the spatial rotation parameters in the second transformation parameters Determine the target rotation parameter R x ; and according to the spatial rotation parameter R in the first transformation parameter F and the spatial translation parameter T F , and the second conversion parameter and spatial translation parameters Determine the target translation parameter T x .
[0133] In the embodiment of the present application, the relative position relationship between the tracker coordinate system and the C-arm coordinate system has nothing to do with the angle, position and other information of the C-arm imaging. Therefore, during the calibration phase, the C-arm imaging field of view can be controlled to exclude any influential objects, and only the registration marker plate can be imaged, so as to accurately obtain the conversion relationship between the C-arm coordinate system and the tracker coordinate system. Furthermore, during the operation, it can be achieved Figure 2 The C-arm positioning method shown accurately determines the spatial posture information of the C-arm based on the spatial posture information of the tracker to facilitate subsequent configuration and surgery.
[0134] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0135] Figure 5 Schematic diagram of the structure of a C-arm positioning device provided in an embodiment of the present application. In the C-arm positioning device 50 provided in an embodiment of the present application, a tracker is deployed on the C-arm, and the tracker can be identified by the optical tracking system, such as Figure 5 As shown, the device 50 includes an acquisition unit 501 and a processing unit 502 .
[0136] The acquisition unit 501 is used to acquire the spatial posture information of the tracker through the optical tracking system when the C-arm images the lesion area of the target object; wherein the spatial posture information of the tracker represents the position of the tracker in the coordinate system of the optical tracking system.
[0137] The processing unit 502 is used to determine the spatial posture information of the C-arm according to the spatial posture information of the tracker and the target conversion parameters; wherein the target conversion parameters represent the conversion parameters from the C-arm coordinate system to the tracker coordinate system, and the target conversion parameters are pre-calibrated before the C-arm images the lesion area of the target object, and the spatial posture information of the C-arm represents the position of the C-arm in the optical tracking system coordinate system, and the spatial posture information of the C-arm is used for image registration.
[0138] In a possible implementation, the spatial posture information of the C-arm includes the position of the light source point on the C-arm and the position of the imaging plane.
[0139] In a possible implementation, before the C-arm images the lesion area of the target object, the processing unit 502 is further configured to:
[0140] Acquire a first conversion parameter from the tracker coordinate system to the optical tracking system coordinate system, and acquire a second conversion parameter from the C-arm coordinate system to the optical tracking system coordinate system;
[0141] A target conversion parameter is determined according to the first conversion parameter and the second conversion parameter.
[0142] In a possible implementation, the processing unit 502 is further specifically configured to:
[0143] The registration marker plate is imaged by a C-arm; wherein m non-coplanar developing steel balls are arranged on the registration marker plate, and m is an integer ≥7;
[0144] Obtaining the first spatial coordinate of each developing steel ball in the coordinate system of the optical tracking system through the optical tracking system;
[0145] Establishing a C-arm coordinate system, and obtaining the second spatial coordinate of each developing steel ball in the C-arm coordinate system;
[0146] According to the first spatial coordinates and the second spatial coordinates of each developing steel ball, a second conversion parameter from the C-arm coordinate system to the optical tracking system coordinate system is determined.
[0147] In a possible implementation, when the registration marker plate is imaged by a C-arm, the imaging field of view of the C-arm does not include objects that may block the registration marker plate.
[0148] In a possible implementation, the target conversion parameter includes a target rotation parameter and a target translation parameter, the first conversion parameter includes a spatial rotation parameter and a spatial translation parameter from a tracker coordinate system to an optical tracking system coordinate system, and the second conversion parameter includes a spatial rotation parameter and a spatial translation parameter from a C-arm coordinate system to an optical tracking system coordinate system; the processing unit 502 is further specifically configured to:
[0149] Determine a target rotation parameter according to the spatial rotation parameter in the first conversion parameter and the spatial rotation parameter in the second conversion parameter;
[0150] The target translation parameter is determined according to the spatial rotation parameter and the spatial translation parameter in the first conversion parameter and the spatial rotation parameter and the spatial translation parameter in the second conversion parameter.
[0151] The device provided in this embodiment can be used to execute the method of the above embodiment. Its implementation principle and technical effect are similar and will not be described in detail here.
[0152] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. In addition, it can also be stored in the memory of the above device in the form of program code, and the functions of the above data processing modules can be called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0153] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6As shown, the electronic device 60 includes: a processor 601, and a memory 602 communicatively connected to the processor.
[0154] The memory 602 stores computer-executable instructions; the processor 601 executes the computer-executable instructions stored in the memory 602 to implement any of the aforementioned methods.
[0155] In the specific implementation of the above electronic device, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The method disclosed in the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution.
[0156] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement any of the methods described above.
[0157] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to computer instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0158] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement any of the aforementioned methods when executed by a processor.
[0159] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0160] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A C-arm positioning method, characterized in that: A tracker is deployed on the C-arm, and the tracker can be identified by an optical tracking system. The method includes: When the C-arm images the lesion area of the target object, the spatial posture information of the tracker is obtained through the optical tracking system; wherein the spatial posture information of the tracker represents the posture of the tracker in the coordinate system of the optical tracking system; The spatial posture information of the C-arm is determined according to the spatial posture information and target conversion parameters of the tracker; wherein the target conversion parameters represent the conversion parameters from the C-arm coordinate system to the tracker coordinate system, and the target conversion parameters are pre-calibrated before the C-arm images the lesion area of the target object, and the spatial posture information of the C-arm represents the posture of the C-arm in the optical tracking system coordinate system, and the spatial posture information of the C-arm is used for image registration.
2. The method according to claim 1, characterized in that The spatial posture information of the C-arm includes the position of the light source point on the C-arm and the position of the imaging plane.
3. The method according to claim 1, characterized in that Before the C-arm images the lesion area of the target object, the method further includes: Acquire a first conversion parameter from the tracker coordinate system to the optical tracking system coordinate system, and acquire a second conversion parameter from the C-arm coordinate system to the optical tracking system coordinate system; A target conversion parameter is determined according to the first conversion parameter and the second conversion parameter.
4. The method according to claim 3, characterized in that Obtain the second transformation parameters from the C-arm coordinate system to the optical tracking system coordinate system, including: Performing imaging processing on the registration mark plate through a C-arm; wherein m non-coplanar developing steel balls are arranged on the registration mark plate, and m is an integer ≥ 7; Obtaining the first spatial coordinate of each developing steel ball in the coordinate system of the optical tracking system through the optical tracking system; Establishing a C-arm coordinate system, and obtaining the second spatial coordinate of each developing steel ball in the C-arm coordinate system; According to the first spatial coordinates and the second spatial coordinates of each developing steel ball, a second conversion parameter from the C-arm coordinate system to the optical tracking system coordinate system is determined.
5. The method according to claim 4, characterized in that When the registration marker plate is imaged by the C-arm, the imaging field of the C-arm does not include objects that would block the registration marker plate.
6. The method according to any one of claims 3 to 5, characterized in that: The target conversion parameters include target rotation parameters and target translation parameters, the first conversion parameters include spatial rotation parameters and spatial translation parameters from the tracker coordinate system to the optical tracking system coordinate system, and the second conversion parameters include spatial rotation parameters and spatial translation parameters from the C-arm coordinate system to the optical tracking system coordinate system; Determining a target conversion parameter according to the first conversion parameter and the second conversion parameter includes: Determine a target rotation parameter according to the spatial rotation parameter in the first conversion parameter and the spatial rotation parameter in the second conversion parameter; The target translation parameter is determined according to the spatial rotation parameter and the spatial translation parameter in the first conversion parameter and the spatial rotation parameter and the spatial translation parameter in the second conversion parameter.
7. A C-arm positioning device, characterized in that: A tracker is deployed on the C-arm, and the tracker can be identified by an optical tracking system. The device includes: An acquisition unit is used to acquire spatial posture information of the tracker through the optical tracking system when the C-arm images the lesion area of the target object; wherein the spatial posture information of the tracker represents the position of the tracker in the coordinate system of the optical tracking system; A processing unit is used to determine the spatial posture information of the C-arm according to the spatial posture information of the tracker and the target conversion parameters; wherein the target conversion parameters represent the conversion parameters from the C-arm coordinate system to the tracker coordinate system, and the target conversion parameters are pre-calibrated before the C-arm images the lesion area of the target object, and the spatial posture information of the C-arm represents the position of the C-arm in the optical tracking system coordinate system, and the spatial posture information of the C-arm is used for image registration.
8. An electronic device, characterized in that: The electronic device comprises: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.
Citation Information
Cited By
Navigation method, system and device of C-shaped arm, surgical navigation equipment, readable storage medium and program product
CN121587839A
