Positioning and navigation method, positioning and navigation device, electronic equipment and readable storage medium
Through the conversion relationship between camera data and medical equipment and target object models, the re-registration problem of the optical positioning and navigation system is eliminated, providing multiple viewing angles, simplifying operations and improving efficiency, and is suitable for a variety of patients, including autistic patients.
Patent Information
- Application Number
- CN202310367591.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-04-07
AI Technical Summary
The existing optical positioning and navigation system is cumbersome in the operation process and can easily lead to re-registration due to misoperation. It is especially unsuitable for patients with autism and other diseases.
By determining the mutual conversion data between the camera's RGB data and the visual medical device model and target object model, the necessity of the registration process is eliminated. Marking pattern and depth data matching algorithms are used to reduce manual registration steps and provide multiple visualization perspectives to simplify operate.
It achieves more accurate and convenient navigation guidance, reduces the difficulty of operation, expands the scope of application, avoids re-registration problems caused by misoperation, and improves processing efficiency and effect.
Smart Images

Figure CN118806434A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical equipment, and in particular to a positioning and navigation method, a positioning and navigation device, an electronic device and a readable storage medium. Background Art
[0002] With the rapid development of medical imaging technology and medical image processing technology, image-guided operating systems have emerged. With the help of the three-dimensional reconstruction model of medical images, the operator can intuitively and accurately analyze the structure of the subject and its surrounding tissues, which helps the operator to perform corresponding operations.
[0003] In the above operation process, optical assisted navigation is an effective medical navigation system. It is a robot operating system composed of an optical tracking device and, for example, a six-axis robot. The system uses a robot to clamp the medical device, and the optical tracking device is fixed by a bracket. A marker is fixed on the target object (for example, a subject, specifically, the subject's head, etc.) for the optical tracking device to locate the coordinates of, for example, the head.
[0004] The use of an optical positioning and navigation system can realize the visualization of the transcranial magnetic stimulation treatment process and improve the accuracy of medical device positioning to a certain extent. However, the current navigation is relatively cumbersome in operation. For example, a registration process is required before starting the operation, including registering the medical device and registering the target object (such as the subject). During the registration process, if the camera is accidentally touched, it will cause re-registration problems. This makes the relevant positioning and navigation methods unsuitable for patients with autism, etc. Summary of the invention
[0005] In order to solve at least one aspect of the above-mentioned problems and defects existing in the prior art, the embodiments of the present invention provide a positioning and navigation method, a positioning and navigation device, an electronic device and a readable storage medium to solve the problem of needing to re-register due to misoperation, and at least to a certain extent eliminate the necessity of registration during the positioning and navigation process.
[0006] An object of the present invention is to provide a positioning and navigation method.
[0007] Another object of the present invention is to provide an electronic device.
[0008] Another object of the present invention is to provide a readable storage medium.
[0009] Another object of the present invention is to provide a positioning and navigation device.
[0010] According to one aspect of the present invention, a positioning and navigation method is provided, comprising:
[0011] Determine first conversion data for mutual conversion between RGB data of the camera and spatial data of the visualized medical device model;
[0012] Determine second conversion data for mutual conversion between depth data of the camera and spatial data of the visualized target object model;
[0013] Determine third conversion data for mutual conversion between RGB data and depth data of the camera;
[0014] The relative positional relationship between the visualized medical device model and the visualized target object model is determined based on the first conversion data, the second conversion data, and the third conversion data, and a desired visualization viewing angle is displayed.
[0015] In some embodiments, determining first conversion data for converting between RGB data of the camera and spatial data of the visualized medical device model comprises:
[0016] Setting a marking pattern on the medical device and determining a positional relationship between the medical device and the marking pattern;
[0017] Determine spatial data of the marking pattern in the RGB coordinate system of the camera through the RGB data obtained by the camera;
[0018] Determine spatial data of the visualized medical device model in the RGB coordinate system based on the positional relationship between the medical device and the marking pattern and spatial data of the marking pattern in the RGB coordinate system;
[0019] The first conversion data is determined based on the spatial data of the visualized medical device model in an RGB coordinate system.
[0020] In some embodiments, the marking pattern includes at least one of a checkerboard pattern, a dot pattern, a chAruco pattern, and a deep learning training pattern.
[0021] In some embodiments, determining second conversion data for converting between depth data of the camera and spatial data of the visualized object model comprises:
[0022] Obtain first data of a target part of a visual target object model through RGB data and depth data obtained by a camera;
[0023] After matching the first data with the second data of the target object, the second conversion data is determined.
[0024] In some embodiments, obtaining first data of a target portion of a visual target object model through RGB data and depth data obtained by a camera includes:
[0025] Extracting third data of a target portion from the RGB data;
[0026] Convert the depth data into a plane where the intrinsic reference of the RGB data is located and obtain fourth data;
[0027] After removing fifth data of a non-target portion from the fourth data based on the third data of the target portion, first data of the target portion is obtained.
[0028] In some embodiments, after matching the first data with the second data of the target object, determining the second converted data includes:
[0029] Roughly matching the first data of the target portion with the second data of the target object;
[0030] After the roughly matched data is accurately matched, the second converted data is determined.
[0031] In some embodiments, the depth data includes environmental point cloud data;
[0032] The first data of the target part includes point cloud data of the target part;
[0033] The second data includes target object point cloud data.
[0034] In some embodiments, the desired visualization perspective includes at least one of a visualization perspective of a medical device moving relative to a target object, a visualization perspective of a target object moving relative to a medical device, and a visualization perspective of both the medical device and the target object moving relative to a camera.
[0035] In some embodiments, the visualization perspective showing the movement of the medical device relative to the target object includes:
[0036] Based on the first conversion data, convert the data of the visualized medical device model in the coordinate system of the visualized medical device model into the RGB coordinate system of the camera;
[0037] Based on the third conversion data, convert the data of the visualized medical device model in the RGB coordinate system to the depth coordinate system of the camera;
[0038] The data of the visualized medical device model in the depth coordinate system is converted to the coordinate system of the visualized target object model based on the second conversion data to display the visualized viewing angle of the medical device moving relative to the target object.
[0039] In some embodiments, the first transformation data includes a first transformation matrix;
[0040] The second transformation data includes a second transformation matrix;
[0041] The third conversion data includes a third conversion matrix,
[0042] Visualization perspectives showing the motion of a medical device relative to a target include:
[0043] The data of the visualized medical device model in the coordinate system of the visualized medical device model is converted to the RGB coordinate system of the camera by multiplying the data of the visualized medical device model in the coordinate system of the visualized medical device model by the inverse matrix of the first conversion matrix;
[0044] The data of the visualized medical device model in the RGB coordinate system is converted to the depth coordinate system of the camera by multiplying the data of the visualized medical device model in the RGB coordinate system by a third conversion matrix;
[0045] By multiplying the data of the visualized medical device model in the depth coordinate system by the second transformation matrix, the data of the visualized medical device model in the depth coordinate system is transformed to the coordinate system of the visualized target object model to display the visualized perspective of the medical device moving relative to the target object.
[0046] In some embodiments, the visualization perspective showing the movement of the target object relative to the medical device includes:
[0047] Converting data of the visualized object model in the coordinate system of the visualized object model to the depth coordinate system of the camera based on the second conversion data;
[0048] Converting the data of the visualized target object model in the depth coordinate system to the RGB coordinate system of the camera based on the third conversion data;
[0049] The data of the visualized target object model in the RGB coordinate system is converted to the coordinate system of the visualized medical device model based on the first conversion data to display the visualized viewing angle of the target object moving relative to the medical device.
[0050] In some embodiments, the first transformation data includes a first transformation matrix;
[0051] The second transformation data includes a second transformation matrix;
[0052] The third conversion data includes a third conversion matrix,
[0053] Visualizations that show the motion of an object relative to a medical device include:
[0054] The data of the visualized target object model in the coordinate system of the visualized target object model is converted to the depth coordinate system of the camera by multiplying the data of the visualized target object model in the coordinate system of the visualized target object model by the inverse matrix of the second conversion matrix;
[0055] The data of the visualized target object model in the depth coordinate system is converted to the RGB coordinate system of the camera by multiplying the data of the visualized target object model in the depth coordinate system by the inverse matrix of the third conversion matrix;
[0056] By multiplying the data of the visualized target object model in the RGB coordinate system by the first transformation matrix, the data of the visualized target object model in the RGB coordinate system is transformed into the coordinate system of the visualized medical device model to display the visualized viewing angle of the target object moving relative to the medical device.
[0057] In some embodiments, the visualization perspective showing the movement of both the medical device and the target object relative to the camera includes:
[0058] Based on the first conversion data, convert the data of the visualized medical device model in the coordinate system of the visualized medical device model into the RGB coordinate system of the camera;
[0059] Based on the third conversion data, convert the data of the visualized medical device model in the RGB coordinate system to the depth coordinate system of the camera;
[0060] The data of the visualized target object model in the coordinate system of the visualized target object model is converted to the depth coordinate system of the camera based on the second conversion data to show the visualized viewing angle of the medical device and the target object moving relative to the camera.
[0061] In some embodiments, the first transformation data includes a first transformation matrix;
[0062] The second transformation data includes a second transformation matrix;
[0063] The third conversion data includes a third conversion matrix,
[0064] Visualizations showing the motion of both the medical device and the target relative to the camera include:
[0065] The data of the visualized medical device model in the coordinate system of the visualized medical device model is converted to the RGB coordinate system of the camera by multiplying the data of the visualized medical device model in the coordinate system of the visualized medical device model by the inverse matrix of the first conversion matrix;
[0066] The data of the visualized medical device model in the RGB coordinate system is converted to the depth coordinate system of the camera by multiplying the data of the visualized medical device model in the RGB coordinate system by a third conversion matrix;
[0067] By multiplying the data of the visualized target model in the coordinate system of the visualized target model by the inverse matrix of the second transformation matrix, the data of the visualized target model in the coordinate system of the visualized target model is converted to the depth coordinate system of the camera to display the visualized perspective of the medical device and the target object moving relative to the camera.
[0068] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0069] A memory and a processor, wherein the memory stores a program, wherein the processor implements the positioning and navigation method according to any of the aforementioned embodiments when executing the program on the memory.
[0070] According to another aspect of the present invention, a readable storage medium is provided, in which a computer-readable program or instruction is stored. When the computer-readable program or instruction is executed by a processor, the positioning and navigation method according to any of the aforementioned embodiments is implemented.
[0071] According to another aspect of the present invention, a positioning and navigation device is provided, the positioning and navigation device comprising:
[0072] A first determining module, the first determining module being configured to determine first conversion data for mutual conversion between RGB data of the camera and spatial data of a visualized medical device model;
[0073] A second determination module, the second determination module is configured to determine second conversion data for mutual conversion between the depth data of the camera and the spatial data of the visualized target object model;
[0074] a third determination module, the third determination module being configured to determine third conversion data for mutual conversion between the RGB data and the depth data of the camera;
[0075] A control module is respectively connected to the first determination module, the second determination module and the third determination module in communication, and the control module is configured to determine the relative position relationship between the visualized medical device model and the visualized target object model based on the first conversion data, the second conversion data and the third conversion data, and to display a desired visualization viewing angle.
[0076] The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium according to the present invention have at least one of the following advantages:
[0077] (1) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention can obtain and determine the relative position relationship between the visualized coil model and the visualized target object model based on the corresponding conversion data, thereby eliminating the necessity of the registration process;
[0078] (2) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention solve the problem of needing to re-register due to misoperation;
[0079] (3) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention simplify the operation process and improve the processing efficiency and processing effect;
[0080] (4) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention can provide more accurate and convenient navigation guidance;
[0081] (5) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention eliminate the need for the target object (such as a subject) to wear a rigid body model, thereby expanding the scope of application of the positioning and navigation method. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] These and / or other aspects and advantages of the present invention will become apparent and readily understood from the following description of the preferred embodiments in conjunction with the accompanying drawings, in which:
[0083] Figure 1 A positioning and navigation method according to an embodiment of the present invention is shown;
[0084] Figure 2 A flowchart of determining first conversion data according to an embodiment of the present invention is shown;
[0085] Figure 3 A flowchart of determining second conversion data according to an embodiment of the present invention is shown;
[0086] Figure 4 A positioning and navigation device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0087] The technical solution of the present invention is further specifically described below by examples and in conjunction with the accompanying drawings. In the specification, the same or similar reference numerals indicate the same or similar components. The following description of the embodiments of the present invention with reference to the accompanying drawings is intended to explain the overall inventive concept of the present invention and should not be construed as a limitation of the present invention.
[0088] In an embodiment of the present invention, a positioning and navigation method is provided, which can determine the relative position relationship between a medical device and a target object (or a visual medical device model and a visual target object model) through a corresponding conversion relationship, and display the desired visualization perspective to achieve positioning navigation.
[0089] Medical equipment includes equipment that operates on a target object, such as magnetic stimulation equipment, electrical stimulation equipment, light stimulation equipment, mechanical wave stimulation equipment, etc.
[0090] The target object includes an object that is expected to be processed, such as a body part of a subject. For example, the body part of the subject may be the head, the foot, etc. The target point includes a point on the target object that is expected to be processed, such as a target point.
[0091] like Figure 1 As shown, the positioning and navigation method includes:
[0092] Determine first conversion data for mutual conversion between RGB data of the camera and spatial data of the visualized medical device model;
[0093] Determine second conversion data for mutual conversion between depth data of the camera and spatial data of the visualized target object model;
[0094] Determine third conversion data for mutual conversion between RGB data and depth data of the camera;
[0095] The relative positional relationship between the visualized medical device model and the visualized target object model is determined based on the first conversion data, the second conversion data, and the third conversion data, and a desired visualization viewing angle is displayed.
[0096] The embodiment of the present invention determines the relative position relationship between the visualized medical device model and the visualized target object model based on the first conversion data, the second conversion data and the third conversion data, thereby eliminating the necessity of registering the medical device and the target object and solving the problem of re-registration caused by misoperation.
[0097] Furthermore, the embodiments of the present invention eliminate the registration process, thereby simplifying the operation process and improving processing efficiency and processing effect.
[0098] The camera in the embodiment of the present invention refers to a camera that can provide both depth data and color data (RGB data), and the mutual conversion relationship between the depth data and color data collected by the camera is known. For example, the camera may be an RGBD camera. In one example, the camera may be a camera that integrates an RGB camera and a depth camera. Alternatively, the camera may be composed of a separate RGB camera and a separate depth camera.
[0099] By determining the first conversion data, the steps for registering a medical device can be reduced. Figure 2 As shown, the first conversion data for converting between the RGB data of the camera and the spatial data of the visualized medical device model includes:
[0100] A marking pattern is set on the medical device, and the positional relationship between the medical device and the marking pattern is determined. The marking pattern includes at least one of a checkerboard pattern, a dot pattern, a chAruco pattern, and a deep learning training map. The marking pattern can be fixed to the medical device by pasting, stamping, or binding. The embodiments of the present disclosure do not limit the size and position of the marking pattern, as long as it can be captured by the camera. The positional relationship can be a transformation matrix.
[0101] The spatial data of the marking pattern in the RGB coordinate system of the camera is determined by the RGB data obtained by the camera. In this process, the medical device needs to enter the field of view of the camera. Determining the spatial data of the marking pattern in the RGB coordinate system of the camera realizes the posture recognition of the marking pattern.
[0102] The spatial data of the visualized medical device model in the RGB coordinate system is determined based on the positional relationship between the medical device and the marking pattern and the spatial data of the marking pattern in the RGB coordinate system. The positional relationship between the medical device and the marking pattern is rigid, so the positional relationship between the medical device and the marking pattern is the positional relationship between the visualized medical device model and the marking pattern in the RGB coordinate system. The spatial data of the visualized medical device model in the RGB coordinate system is determined based on the positional relationship and the spatial data of the marking pattern in the RGB coordinate system, that is, the posture of the visualized medical device model in the RGB coordinate system is determined.
[0103] The first conversion data is determined based on the spatial data of the visualized medical device model in the RGB coordinate system. The first conversion data may be a first conversion matrix.
[0104] The camera's RGB data cannot identify the posture of the medical device, so an embodiment of the present invention indirectly obtains the posture of the medical device by setting a marking pattern on the medical device and identifying the posture of the marking pattern, thereby reducing the steps of manual registration of the medical device (such as a magnetic stimulation device, specifically a magnetic stimulation coil) and reducing the difficulty of operation.
[0105] By determining the second transformation data, the process of registering the target object (e.g., the head of the subject) can be reduced. Figure 3 As shown, determining the second conversion data for mutual conversion between the depth data of the camera and the spatial data of the visualized target model includes:
[0106] The first data of the target part of the visualized target object model is obtained through the RGB data and depth data obtained by the camera. In this process, the target object needs to enter the field of view of the camera. The RGB data obtained by the camera is the RGB data of the real environment, and the depth data obtained by the camera is the environmental point cloud data, which includes the point cloud data of the target object and the objects around the target object. The target part is the area of interest in navigation. For example, in the case where the target object is the head of the subject, the target part can be the face.
[0107] Further, obtaining first data of a target part of a visualized target object model through RGB data and depth data obtained by a camera includes:
[0108] The third data of the target part is extracted from the RGB data. The target part can be extracted using an existing method to form the third data. For example, when the target part is a face, a face recognition algorithm can be used to extract the face.
[0109] The depth data is converted into the plane where the internal reference of the RGB data is located and the fourth data is obtained. The collected environmental point cloud data can be converted into the plane where the internal reference of the RGB data is located and the fourth data is obtained. For example, the fourth data can be obtained by a D2C algorithm.
[0110] After removing the fifth data of the non-target part in the fourth data based on the third data of the target part, the first data of the target part is obtained. The depth data includes the target part and the non-target part, so after converting the depth data to the plane where the intrinsic parameter of the RGB data is located, the non-target part needs to be removed, and the remaining part constitutes the first data of the target part.
[0111] After matching the first data with the second data of the target object, the second conversion data is determined. The second conversion data may be a second conversion matrix.
[0112] Further, after matching the first data with the second data of the target object, determining the second conversion data includes: roughly matching the first data of the target part with the second data of the target object; and accurately matching the roughly matched data to determine the second conversion data.
[0113] The second data of the target object includes point cloud data of the target object. For example, in the case where the target object is a head, the head MRI (Magnetic Resonance Imaging) data can be converted into MRI point cloud data, and the MRI point cloud data constitutes the point cloud data of the target object. Point cloud data refers to the set of points obtained after obtaining the spatial coordinates of each sampling point on the surface of the object. The point cloud data of the target part can be roughly matched with the point cloud data of the target object through the RANSAC (Random Sample Consensus) algorithm. Rough matching refers to a relatively rough alignment when the transformation between the two point clouds is completely unknown, and the main purpose is to provide a better initial value of the transformation for precise alignment.
[0114] The ICP (Iterative Closest Point) algorithm can be used to accurately match the roughly matched data. Accurate matching means that given an initial transformation, further optimization is performed to obtain a more accurate transformation.
[0115] The embodiments of the present invention obtain the relationship between the visualized head model and the depth data of the camera through a point cloud matching algorithm, reduce the steps of the target object (such as the subject) wearing the rigid body model and registering, expand the scope of application of the positioning and navigation method, and reduce the difficulty of operation.
[0116] The first conversion data determines the conversion relationship between the visualized medical device model and the RGB data of the camera, and the second conversion data determines the conversion relationship between the visualized target model and the depth data of the camera. In order to obtain the conversion relationship between the visualized medical device model and the visualized target model, it is also necessary to determine the conversion relationship between the RGB data and the depth data of the camera. That is, determine the third conversion data for the mutual conversion between the RGB data and the depth data of the camera. The third conversion data can be a third conversion matrix. The third conversion matrix can be determined by a camera calibration algorithm (e.g., Zhang's calibration method).
[0117] After the first conversion data, the second conversion data, and the third conversion data are determined, the relative position relationship between the visualized medical device model and the visualized target object model can be determined, and the desired visualization perspective can be displayed. For example, multiple perspective navigation can be implemented to guide the operator to find the most desired action position (such as a target point) under the desired perspective.
[0118] The desired visualization perspective includes at least one of a visualization perspective of a medical device moving relative to a target object, a visualization perspective of a target object moving relative to a medical device, and a visualization perspective of both the medical device and the target object moving relative to a camera.
[0119] In one example, a visualization perspective showing the movement of a medical device relative to a target object includes:
[0120] Based on the first conversion data, convert the data of the visualized medical device model in the coordinate system of the visualized medical device model into the RGB coordinate system of the camera;
[0121] Based on the third conversion data, convert the data of the visualized medical device model in the RGB coordinate system to the depth coordinate system of the camera;
[0122] The data of the visualized medical device model in the depth coordinate system is converted to the coordinate system of the visualized target object model based on the second conversion data to display the visualized viewing angle of the medical device moving relative to the target object.
[0123] For example, the first conversion data includes a first conversion matrix M rgb ; The second conversion data includes a second conversion matrix M d2b The third conversion data includes a third conversion matrix M r2d Visualization perspectives showing the motion of a medical device relative to a target include:
[0124] The data of the visualized medical device model in the coordinate system of the visualized medical device model is multiplied by the inverse matrix M of the first transformation matrix rgb -1 , converting the data of the visualized medical device model in the visualized medical device model coordinate system into the RGB coordinate system of the camera;
[0125] The data of the visualized medical device model in the RGB coordinate system is multiplied by the third transformation matrix M r2d , converting the data of the visualized medical device model in the RGB coordinate system into the depth coordinate system of the camera;
[0126] The data of the visualized medical device model in the depth coordinate system is multiplied by the second transformation matrix M d2b , converting the data of the visualized medical device model in the depth coordinate system into the coordinate system of the visualized target object model to display the visualized perspective of the movement of the medical device relative to the target object.
[0127] In one example, a visualization perspective showing the motion of an object relative to a medical device includes:
[0128] Converting the data of the visualized object model in the coordinate system of the visualized object model to the depth coordinate system of the camera based on the second conversion data;
[0129] Converting the data of the visualized target object model in the depth coordinate system to the RGB coordinate system of the camera based on the third conversion data;
[0130] The data of the visualized target object model in the RGB coordinate system is converted to the coordinate system of the visualized medical device model based on the first conversion data to display the visualized viewing angle of the target object moving relative to the medical device.
[0131] For example, the first conversion data includes a first conversion matrix M rgb ; The second conversion data includes a second conversion matrix M d2b The third conversion data includes a third conversion matrix M r2d Visualizations that show the motion of an object relative to a medical device include:
[0132] The data of the visualized target model in the coordinate system of the visualized target model is multiplied by the inverse matrix M of the second transformation matrix. d2b -1 , converting the data of the visualized target object model in the coordinate system of the visualized target object model into the depth coordinate system of the camera;
[0133] The data of the visualized target model in the depth coordinate system is multiplied by the inverse matrix M of the third transformation matrix. r2d -1 , converting the data of the visualized target object model in the depth coordinate system into the RGB coordinate system of the camera;
[0134] The data of the visualized target model in the RGB coordinate system is multiplied by the first transformation matrix M rgb , converting the data of the visualized target object model in the RGB coordinate system into the coordinate system of the visualized medical device model to display the visualized viewing angle of the target object moving relative to the medical device.
[0135] In one example, a visualization perspective showing the movement of both a medical device and an object relative to the camera includes:
[0136] Based on the first conversion data, convert the data of the visualized medical device model in the coordinate system of the visualized medical device model into the RGB coordinate system of the camera;
[0137] Based on the third conversion data, convert the data of the visualized medical device model in the RGB coordinate system to the depth coordinate system of the camera;
[0138] The data of the visualized target object model in the coordinate system of the visualized target object model is converted to the depth coordinate system of the camera based on the second conversion data to show the visualized viewing angle of the medical device and the target object moving relative to the camera.
[0139] For example, the first conversion data includes a first conversion matrix M rgb ; The second conversion data includes a second conversion matrix M d2bThe third conversion data includes a third conversion matrix M r2d Visualizations that show the motion of both the medical device and the target relative to the camera include:
[0140] The data of the visualized medical device model in the coordinate system of the visualized medical device model is multiplied by the inverse matrix M of the first transformation matrix rgb -1 , converting the data of the visualized medical device model in the coordinate system of the visualized medical device model into the RGB coordinate system of the camera;
[0141] The data of the visualized medical device model in the RGB coordinate system is multiplied by the third transformation matrix M r2d , converting the data of the visualized medical device model in the RGB coordinate system into the depth coordinate system of the camera;
[0142] The data of the visualized target model in the coordinate system of the visualized target model is multiplied by the inverse matrix M of the second transformation matrix. d2b -1 , converting the data of the visualized target object model in the coordinate system of the visualized target object model into the depth coordinate system of the camera to display the visualized perspective of the movement of the medical device and the target object relative to the camera.
[0143] The embodiments of the present invention can display multiple navigation perspectives through the above three conversion data, so as to allow the operator to select the navigation perspective as needed during the processing, so as to track the target point (such as the target point) more effectively. This method avoids the inconvenience caused by a single perspective and increases ease of use. The embodiments of the present disclosure are not limited to the above three navigation perspectives, and other required navigation perspectives can also be provided according to the above three conversion data.
[0144] It should be noted that the embodiments of the present invention are not limited to the navigation process described above. For example, one step is to multiply the data of the visualized medical device model in the RGB coordinate system by the third transformation matrix M r2d , converting the data of the visualized medical device model in the RGB coordinate system into the depth coordinate system of the camera; this step can be adjusted accordingly by changing the third transformation matrix.
[0145] The embodiment of the present invention is based on a 1:1 relationship between the model and the real object, for example, a 1:1 relationship between the visualized medical device model and the medical device. However, it is clear to those skilled in the art that the embodiment of the present invention does not limit the specific ratio between the model and the real object, and can also be set to other ratios, such as 1:2, 1:4, etc. As long as the relationship of other ratios is converted into a 1:1 relationship during the navigation process, the positioning navigation method of the embodiment of the present invention can be obtained.
[0146] In an embodiment of the present invention, a positioning and navigation device is also provided. Figure 4 As shown, the positioning and navigation device 100 includes a first determination module 10 , a second determination module 20 , a third determination module 30 and a control module 40 .
[0147] The first determination module 10 is configured to determine first conversion data for mutual conversion between the RGB data of the camera and the spatial data of the visualized medical device model. The first determination module 10 may determine the first conversion data using the method described in any of the above embodiments.
[0148] The second determination module 20 is configured to determine second conversion data for mutual conversion between the depth data of the camera and the spatial data of the visualized object model. The second determination module 20 may determine the second conversion data using the method described in any of the above embodiments.
[0149] The third determination module 30 is configured to determine third conversion data for mutual conversion between the RGB data and the depth data of the camera. The third determination module 30 may determine the third conversion data using the method described in any of the above embodiments.
[0150] The control module 40 is respectively connected to the first determination module 10, the second determination module 20 and the third determination module 30. The control module 40 is configured to determine the relative position relationship between the visualized medical device model and the visualized target object model based on the first conversion data, the second conversion data and the third conversion data, and to display the desired visualization viewing angle. The control module 40 can determine the relative position relationship using the method described in any of the above embodiments to control the navigation process.
[0151] In an embodiment of the present invention, a readable storage medium is provided, wherein the readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the positioning and navigation method described in any one of the above embodiments is implemented.
[0152] The "readable storage medium" of an embodiment of the present invention refers to any medium that participates in providing a program or instruction to a processor for execution. The medium can take a variety of forms, including but not limited to non-volatile media, volatile media and transmission media. Non-volatile media include, for example, optical disks or disks, such as storage devices. Volatile media include dynamic memory, such as main memory. Transmission media include coaxial cables, copper wires and optical fibers, including wires containing buses. Transmission media can also take the form of sound waves or light waves, such as sound waves or light waves generated during radio frequency (RF) and infrared (IR) data communications. Common forms of readable storage media include, for example, floppy disks, flexible disks, hard disks, magnetic tapes, any other magnetic media, CD-ROMs, DVDs, any other optical media, punch cards, paper tapes, any other physical media with hole patterns, RAMs, PROMs and EPROMs, FLASH-EPROMs, any other memory chips or boxes, carriers as described below, or any other media from which a computer can read.
[0153] In an embodiment of the present invention, an electronic device is also provided. The electronic device (not shown) includes a processor (not shown) and a memory (not shown). The memory stores a program, and when the program is executed by the processor, any of the above-mentioned positioning and navigation methods can be implemented.
[0154] In one example, the processor may be a microprocessor, such as a general-purpose processor such as a graphics processing unit (GPU), a central processing unit (CPU), a digital signal processor (DSP), etc. In one example, the processor may also be a microprocessor core implemented by a hardware circuit, such as a microprocessor core implemented in a hardware logic component by a reconfigurable logic, and the hardware logic component includes a field programmable gate array (FPGA), a complex programmable logic device (CPLD), an application-specific integrated circuit (ASIC), an application-specific standard product (ASSP), a system on a chip (SOC), etc.
[0155] In one example, the processor may also be a virtual processor, which may be a virtual processor with the characteristics of an Intel x86 processor, or a virtual processor with the characteristics of a PowerPC processor. Preferably, the processor is a graphics processor. In one example, the processor may be a single-core processor or a multi-core processor.
[0156] In one example, the memory includes a volatile memory (i.e., a random access memory) and a non-volatile memory. The volatile memory includes a main memory, a cache, etc., and the non-volatile memory includes an auxiliary memory, etc. In one example, the memory can be set as a remote memory, and the remote memory can be connected to the processor via a network (wired network or wireless network). The network includes, but is not limited to, a wide area network, a local area network, a metropolitan area network, a personal area network, the Internet, a satellite communication network, and any combination thereof.
[0157] In one example, the processor executes a program based on the program obtained from the memory to create a corresponding task thread and execute the thread. In one example, the processor obtains a program from the external memory based on the read instruction in the memory to create a corresponding task thread and execute the thread. The above program is used to implement the positioning navigation method.
[0158] Although the subject matter described herein is provided in the general context of being executed in conjunction with the execution of an operating system and an application program on a computer system, it will be appreciated by those skilled in the art that it can also be implemented in conjunction with other types of program modules. Generally speaking, program modules include routines, programs, components, data structures, and other types of structures that perform specific tasks or implement specific abstract data types. It will be appreciated by those skilled in the art that the method steps described in conjunction with any one of the examples herein can all be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether to perform in hardware or software mode depends mainly on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0159] When the method steps are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Therefore, the technical solution of the present invention, or the part that contributes to the original technology, or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each example of the present invention.
[0160] The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium according to the present invention have at least one of the following advantages:
[0161] (1) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention can obtain and determine the relative position relationship between the visualized coil model and the visualized target object model based on the corresponding conversion data, thereby eliminating the necessity of the registration process;
[0162] (2) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention solve the problem of needing to re-register due to misoperation;
[0163] (3) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention simplify the operation process and improve the processing efficiency and processing effect;
[0164] (4) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention can provide more accurate and convenient navigation guidance;
[0165] (5) The positioning and navigation method, positioning and navigation device, electronic device and readable storage medium of the present invention eliminate the need for the target object (such as a subject) to wear a rigid body model, thereby expanding the scope of application of the positioning and navigation method.
[0166] Although some embodiments of the present general inventive concept have been shown and described, it will be appreciated by those skilled in the art that changes may be made to these embodiments without departing from the principles and spirit of the present general inventive concept, the scope of which is defined by the claims and their equivalents.
Claims
1. A positioning and navigation method, comprising: Determine first conversion data for mutual conversion between RGB data of the camera and spatial data of the visualized medical device model; Determine second conversion data for mutual conversion between depth data of the camera and spatial data of the visualized target object model; Determine third conversion data for mutual conversion between RGB data and depth data of the camera; The relative positional relationship between the visualized medical device model and the visualized target object model is determined based on the first conversion data, the second conversion data, and the third conversion data, and a desired visualization viewing angle is displayed.
2. The positioning and navigation method according to claim 1, wherein: The first conversion data for converting between the RGB data of the camera and the spatial data of the visualized medical device model includes: Setting a marking pattern on the medical device and determining a positional relationship between the medical device and the marking pattern; Determine spatial data of the marking pattern in the RGB coordinate system of the camera through the RGB data obtained by the camera; Determine spatial data of the visualized medical device model in the RGB coordinate system based on the positional relationship between the medical device and the marking pattern and spatial data of the marking pattern in the RGB coordinate system; The first conversion data is determined based on the spatial data of the visualized medical device model in an RGB coordinate system.
3. The positioning and navigation method according to claim 2, wherein: The marking pattern includes at least one of a checkerboard pattern, a dot pattern, a chAruco pattern, and a deep learning training pattern.
4. The positioning and navigation method according to claim 3, wherein: Determining the second conversion data for mutual conversion between the depth data of the camera and the spatial data of the visualized target model includes: Obtain first data of a target part of a visual target object model through RGB data and depth data obtained by a camera; After matching the first data with the second data of the target object, the second conversion data is determined.
5. The positioning and navigation method according to claim 4, wherein: Obtaining first data of a target part of a visual target object model through RGB data and depth data obtained by a camera includes: Extracting third data of a target portion from the RGB data; Convert the depth data into a plane where the intrinsic reference of the RGB data is located and obtain fourth data; After removing fifth data of a non-target portion from the fourth data based on the third data of the target portion, first data of the target portion is obtained.
6. The positioning and navigation method according to claim 5, wherein: After matching the first data with the second data of the target object, determining the second converted data includes: Roughly matching the first data of the target portion with the second data of the target object; After the roughly matched data is accurately matched, the second converted data is determined.
7. The positioning and navigation method according to claim 6, wherein: The depth data includes environmental point cloud data; The first data of the target part includes point cloud data of the target part; The second data includes target object point cloud data.
8. The positioning and navigation method according to any one of claims 1 to 7, wherein: The desired visualization perspective includes at least one of a visualization perspective of a medical device moving relative to a target object, a visualization perspective of a target object moving relative to a medical device, and a visualization perspective of both the medical device and the target object moving relative to a camera.
9. The positioning and navigation method according to claim 8, wherein: Visualization perspectives showing the motion of a medical device relative to a target include: Based on the first conversion data, convert the data of the visualized medical device model in the coordinate system of the visualized medical device model into the RGB coordinate system of the camera; Based on the third conversion data, convert the data of the visualized medical device model in the RGB coordinate system to the depth coordinate system of the camera; The data of the visualized medical device model in the depth coordinate system is converted to the coordinate system of the visualized target object model based on the second conversion data to display the visualized viewing angle of the medical device moving relative to the target object.
10. The positioning and navigation method according to claim 9, wherein: The first conversion data includes a first conversion matrix; The second transformation data includes a second transformation matrix; The third conversion data includes a third conversion matrix, Visualization perspectives showing the motion of a medical device relative to a target include: The data of the visualized medical device model in the coordinate system of the visualized medical device model is converted to the RGB coordinate system of the camera by multiplying the data of the visualized medical device model in the coordinate system of the visualized medical device model by the inverse matrix of the first conversion matrix; The data of the visualized medical device model in the RGB coordinate system is converted to the depth coordinate system of the camera by multiplying the data of the visualized medical device model in the RGB coordinate system by a third conversion matrix; By multiplying the data of the visualized medical device model in the depth coordinate system by the second transformation matrix, the data of the visualized medical device model in the depth coordinate system is transformed to the coordinate system of the visualized target object model to display the visualized perspective of the medical device moving relative to the target object.
11. The positioning and navigation method according to claim 8, wherein: Visualizations that show the motion of an object relative to a medical device include: Converting data of the visualized object model in the coordinate system of the visualized object model to the depth coordinate system of the camera based on the second conversion data; Converting the data of the visualized target object model in the depth coordinate system to the RGB coordinate system of the camera based on the third conversion data; The data of the visualized target object model in the RGB coordinate system is converted to the coordinate system of the visualized medical device model based on the first conversion data to display the visualized viewing angle of the target object moving relative to the medical device.
12. The positioning and navigation method according to claim 11, wherein: The first conversion data includes a first conversion matrix; The second transformation data includes a second transformation matrix; The third conversion data includes a third conversion matrix, Visualizations that show the motion of an object relative to a medical device include: The data of the visualized target object model in the coordinate system of the visualized target object model is converted to the depth coordinate system of the camera by multiplying the data of the visualized target object model in the coordinate system of the visualized target object model by the inverse matrix of the second conversion matrix; The data of the visualized target object model in the depth coordinate system is converted to the RGB coordinate system of the camera by multiplying the data of the visualized target object model in the depth coordinate system by the inverse matrix of the third conversion matrix; By multiplying the data of the visualized target object model in the RGB coordinate system by the first transformation matrix, the data of the visualized target object model in the RGB coordinate system is transformed into the coordinate system of the visualized medical device model to display the visualized viewing angle of the target object moving relative to the medical device.
13. The positioning medical navigation method according to claim 8, wherein: Visualizations showing the motion of both the medical device and the target relative to the camera include: Based on the first conversion data, convert the data of the visualized medical device model in the coordinate system of the visualized medical device model into the RGB coordinate system of the camera; Based on the third conversion data, convert the data of the visualized medical device model in the RGB coordinate system to the depth coordinate system of the camera; The data of the visualized target object model in the coordinate system of the visualized target object model is converted to the depth coordinate system of the camera based on the second conversion data to show the visualized viewing angle of the medical device and the target object moving relative to the camera.
14. The positioning and navigation method according to claim 13, wherein: The first conversion data includes a first conversion matrix; The second transformation data includes a second transformation matrix; The third conversion data includes a third conversion matrix, Visualizations showing the motion of both the medical device and the target relative to the camera include: The data of the visualized medical device model in the coordinate system of the visualized medical device model is converted to the RGB coordinate system of the camera by multiplying the data of the visualized medical device model in the coordinate system of the visualized medical device model by the inverse matrix of the first conversion matrix; The data of the visualized medical device model in the RGB coordinate system is converted to the depth coordinate system of the camera by multiplying the data of the visualized medical device model in the RGB coordinate system by a third conversion matrix; By multiplying the data of the visualized target model in the coordinate system of the visualized target model by the inverse matrix of the second transformation matrix, the data of the visualized target model in the coordinate system of the visualized target model is converted to the depth coordinate system of the camera to display the visualized perspective of the medical device and the target object moving relative to the camera.
15. An electronic device, characterized in that: The electronic device comprises: A memory and a processor, wherein the memory stores a program, wherein the processor implements the positioning and navigation method according to any one of claims 1-14 when executing the program on the memory.
16. A readable storage medium, characterized in that: The readable storage medium stores a computer-readable program or instruction, and when the computer-readable program or instruction is executed by a processor, the positioning and navigation method according to any one of claims 1 to 14 is implemented.
17. A positioning navigation device, characterized in that: The positioning and navigation device comprises: A first determining module, the first determining module being configured to determine first conversion data for mutual conversion between RGB data of the camera and spatial data of a visualized medical device model; A second determination module, the second determination module is configured to determine second conversion data for mutual conversion between the depth data of the camera and the spatial data of the visualized target object model; a third determination module, the third determination module being configured to determine third conversion data for mutual conversion between the RGB data and the depth data of the camera; A control module is respectively connected to the first determination module, the second determination module and the third determination module in communication, and the control module is configured to determine the relative position relationship between the visualized medical device model and the visualized target object model based on the first conversion data, the second conversion data and the third conversion data, and to display a desired visualization viewing angle.
Citation Information
Patent Citations
Positioning navigation method and readable storage medium
CN114279435A
Navigation positioning method for hip replacement surgery based on flexible flange
CN114305688A
Method and system for guiding bone registration, storage medium and computer product
CN115607276A
Technique for Calibrating A Registration of An Augmented Reality Device
US20210005020A1
Device for providing 3D image registration and method therefor
US20210304423A1
Cited By
Magnetic resonance scanning plane tracking processing method and system based on RGB-D camera, medium and product
CN120471959A
