3D camera-medical imaging equipment coordinate system calibration system and method and application thereof
By setting up calibration tools on the scanning bed of a medical imaging device and using a 3D camera to calculate the calibration matrix, the problems of radiation exposure and inconvenient operation in the prior art are solved, and radiation-free, fast and accurate coordinate system calibration is achieved.
Patent Information
- Application Number
- CN202410835501.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-12
- Publication Date
- 2024-10-11
AI Technical Summary
Current technology requires medical imaging scans for calibration between the coordinate systems of 3D cameras and medical imaging equipment, resulting in radiation exposure, operational inconvenience, and a time-consuming calibration process.
By setting a calibration tool on the scanning bed of a medical imaging device, capturing marked images using a 3D camera and calculating a calibration matrix, radiation-free coordinate system calibration is achieved, including using laser lights for reference positioning and auxiliary lines for calibration.
It enables radiation-free, rapid, and accurate calibration between the coordinate systems of 3D cameras and medical imaging equipment, improving operational safety and efficiency and reducing reliance on operators.
Smart Images

Figure CN118762087A_ABST
Abstract
Description
[0001] Divisional application
[0002] This application is a divisional application of patent application No. CN201910506016.2 filed on June 12, 2019. Technical Field
[0003] The present invention relates to the field of medical imaging, and in particular to a system and method for calibrating between a three-dimensional (3D) camera coordinate system and a medical imaging device coordinate system, as well as a specific application of the above calibration and a computer-readable storage medium that can implement the calibration method and application. Background Art
[0004] In the traditional medical imaging process, the image information of the patient and the part to be scanned is obtained by scanning the imaging device with medical imaging equipment. However, if the user wants to obtain more intuitive, accurate and effective feature information, it is necessary to further introduce a video or image-based camera. For example, by using a 3D camera in computed tomography (CT), CT users can perform many intuitive, accurate and effective operations, such as estimating, displaying and adjusting the scanning range, estimating the patient's body thickness, etc. In addition, it can also provide CT users with safety-related operations, such as patient movement detection, collision prediction before the scanning bed moves, etc.
[0005] However, medical imaging devices and cameras have their own coordinate systems, so it is necessary to achieve conversion between the two coordinate systems, which is usually referred to as calibration in the art. Whether it is conversion or calibration, a large number of data sets are required to obtain a calibration matrix, and then through the calibration matrix, the information obtained by the above camera can be converted to the medical imaging device and play a role in subsequent processing.
[0006] However, the existing conversion or calibration technologies all require the intervention of medical imaging scanning. For example, a set of data is obtained by performing a CT scan on the calibration object on the scanning bed, and another set of data is obtained by imaging the calibration object with a 3D camera, and then the conversion relationship is calculated based on the two sets of data. For another example, the US patent document US9633435B2, which was published on March 30, 2017, discloses a method for calibrating an RGB-D sensor and a medical imaging scanner through a conversion matrix, wherein the medical imaging scanner obtains a first data set through imaging scanning, and the data sensed by the RGB-D sensor is used as a second data set, and then the above conversion matrix is obtained based on the two data sets.
[0007] The involvement of medical imaging scanning means that the above conversion or calibration requires additional radiation, which is definitely undesirable from the perspective of radiation safety, and it will inevitably take up more time and require the operator to go to the operating table outside the scanning room to control the imaging scan, which is very inconvenient. In addition, it is also expected that the introduction of 3D cameras will enable users to perform various operations more intuitively, accurately and effectively.
[0008] Therefore, there is an urgent need for a new technology that can accurately calibrate the coordinate system between the 3D camera and the medical imaging device in a convenient and radiation-free manner. Summary of the invention
[0009] The present invention aims to overcome the above and / or other problems in the prior art. Through the calibration system and method provided by the present invention, the data set required for the calibration matrix can be obtained without medical scanning, thereby accurately and conveniently realizing the calibration between the 3D camera and the coordinate system of the medical imaging device without radiation. The calibration of the present invention can conveniently realize many applications in medical imaging.
[0010] According to a first aspect of the present invention, there is provided a system for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system, comprising: a calibration tool arranged on a scanning bed in the medical imaging device, the calibration tool being provided with a mark and a reference point, the reference point being aligned with the center of the medical imaging device as the origin of the medical imaging device coordinate system, and the position of the mark in the medical imaging device coordinate system being calculated based on the relative position of the mark to the reference point; a 3D camera for capturing an image of the mark and determining the position of the mark in the 3D camera coordinate system based on the captured image; and a calculation device, using the position of the mark in the 3D camera coordinate system as a first data group, using the position of the mark in the medical imaging device coordinate system as a second data group, calculating a calibration matrix between the 3D camera coordinate system and the medical imaging device coordinate system based on the first data group and the second data group, and using the calibration matrix to calibrate between the 3D camera coordinate system and the medical imaging device coordinate system.
[0011] The above system does not require imaging scanning at all during the calculation of the calibration matrix. Instead, the position of the mark on the calibration tool in the coordinate system of the medical imaging device can be obtained through pure calculation. At the same time, the position of the mark on the calibration tool in the 3D camera coordinate system is obtained through the 3D camera. Finally, the calibration matrix between the 3D camera coordinate system and the medical imaging device coordinate system is obtained based on these two sets of position data. The whole process does not involve any radiation, and the radiation safety is very high. It also saves time because imaging scanning is not required, and the operator does not need to leave the scanning room to control the imaging scanning on the control console. In addition, the position of the mark in the coordinate system of the medical imaging device is calculated based on the relative position of the mark to the reference point, which also significantly improves the calibration accuracy between the 3D camera and the coordinate system of the medical imaging device.
[0012] Preferably, the laser beam emitted by the laser lamp in the medical imaging device intersects with the reference point at the center of the medical imaging device.
[0013] Therefore, the coordinate system calibration system of the 3D camera-medical imaging device according to the present invention uses a laser light to complete the reference process of the calibration tool, which can position the calibration tool more intuitively compared with the traditional method of using imaging scanning to obtain the position of the calibration tool.
[0014] More preferably, in the calibration system according to the present invention, the calibration tool is further provided with auxiliary lines intersecting the reference point, the laser beam comprises a first beam and a second beam, and the two auxiliary lines coincide with the first beam and the second beam respectively.
[0015] Therefore, by introducing the above-mentioned auxiliary lines, it is more helpful to align the reference point on the calibration tool with the center of the medical imaging device.
[0016] Preferably, in the above-mentioned system for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system, the calibration matrix includes a rotation matrix, a translation matrix and a scaling matrix.
[0017] Since the size of an object acquired in a 3D camera may be different from the physical size of the object in the real world, the above-mentioned scaling matrix is introduced to further ensure the accuracy of the calibration between the above-mentioned 3D camera-medical imaging device coordinate system.
[0018] Preferably, the above-mentioned system for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system may further include: a verification unit, used to verify the calibration matrix by comparing a third data group with a fourth data group, wherein the third data group is the position of the mark in the medical imaging device coordinate system obtained by passing the position of the mark acquired from the 3D camera through the calibration matrix, and the fourth data group is the actual position of the mark in the medical imaging device coordinate system.
[0019] Specifically, in the inspection unit, a mean absolute error between the third data group and the fourth data group may be calculated, and the mean absolute error may be compared with a threshold.
[0020] The inspection unit helps engineers or users to easily check whether the calibration between the 3D camera and the coordinate system of the medical imaging device has been completed and whether the calibration meets the required accuracy requirements.
[0021] Preferably, in the above-mentioned system for calibrating between the 3D camera coordinate system and the medical imaging device coordinate system, the shape and size of the mark can also be set, and the position of the mark in the medical imaging device coordinate system can be calculated based on the relative position of the mark to the reference point and the set shape and size.
[0022] The size and number of the marks on the calibration tool can be set as needed. The marks can have various shapes, and the shapes of the marks can be designed to be accurately captured by the 3D camera, so as to more accurately generate the mark positions in the 3D camera coordinate system. According to a second aspect of the present invention, a method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system is provided, wherein a calibration tool is provided on a scanning bed in the medical imaging device, and a reference point and a mark are provided on the calibration tool, and the method comprises: aligning the reference point with the center of the medical imaging device as the origin of the medical imaging device coordinate system; calculating the position of the mark in the medical imaging device coordinate system according to the relative position of the mark to the reference point; capturing an image of the mark by a 3D camera and determining the position of the mark in the 3D camera coordinate system based on the captured image; using the position of the mark in the 3D camera coordinate system as a first data group, and using the position of the mark in the medical imaging device coordinate system as a second data group, and calculating a calibration matrix between the 3D camera coordinate system and the medical imaging device coordinate system based on the first data group and the second data group; and calibrating between the 3D camera coordinate system and the medical imaging device coordinate system using the calibration matrix.
[0023] Preferably, in the above method, the laser beam emitted by the laser lamp in the medical imaging device is made to intersect the reference point at the center of the medical imaging device.
[0024] More preferably, the calibration tool is further provided with auxiliary lines intersecting the reference point, and the laser beam includes a first beam and a second beam, so that the two auxiliary lines coincide with the first beam and the second beam respectively.
[0025] Preferably, in the above method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system, the calibration matrix includes a rotation matrix, a translation matrix and a scaling matrix.
[0026] Preferably, the above method may further include: verifying the calibration matrix by comparing a third data group with a fourth data group, wherein the third data group is the position of the mark in the coordinate system of the medical imaging device obtained by passing the position of the mark acquired from the 3D camera through the calibration matrix, and the fourth data group is the actual position of the mark in the coordinate system of the medical imaging device.
[0027] Specifically, in the step of verifying the calibration matrix, a mean absolute error between the third data group and the fourth data group may be calculated, and the mean absolute error may be compared with a threshold.
[0028] Preferably, for the above-mentioned method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system, in the step of calculating the position of the mark in the medical imaging device coordinate system, the shape and size of the mark can be set, and the position of the mark in the medical imaging device coordinate system can be calculated based on the relative position of the mark to the reference point and the set shape and size.
[0029] The above method corresponds to the system for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to the present invention, which can achieve all the technical effects that the system can achieve.
[0030] The medical imaging device according to the present invention may include a CT device, a magnetic resonance (MR) device, a positron emission tomography (PET) device, or a combination of these devices.
[0031] According to a third aspect of the present invention, there is provided a scanning positioning method for a medical imaging device, comprising: acquiring, by a 3D camera, a 3D image of a patient to be scanned, which is located on a scanning bed of the medical imaging device; identifying the acquired 3D image to obtain human anatomical structure information of the patient to be scanned; determining a range to be scanned on the 3D image based on the human anatomical structure information; and calibrating the range to be scanned in the 3D camera coordinate system to the medical imaging device coordinate system by using the method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to the present invention.
[0032] According to a fourth aspect of the present invention, a scanning range display method is provided, comprising: acquiring key points of the scanning range through a 3D camera; calibrating the position of the key points in the 3D camera coordinate system to the position of the key points in the medical imaging device coordinate system through the method for calibrating between the 3D camera coordinate system and the medical imaging device coordinate system according to the present invention; acquiring the positions of the start and end points of the scanning range in the medical imaging device coordinate system according to predetermined start and end distances and the positions of the key points in the medical imaging device coordinate system; and displaying the pixel positions of the start and end points of the scanning range obtained by inverse operation of the calibration matrix in the 3D camera screen.
[0033] According to a fifth aspect of the present invention, a method for predicting a human body collision is provided, comprising: acquiring point cloud data of a human body through a 3D camera; calibrating the point cloud data into a medical imaging device coordinate system through the method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to the present invention; and predicting a possibility of a collision between a human body and a scanning gantry by comparing a position of the point cloud data in the medical imaging device coordinate system with a position of a scanning gantry in the medical imaging device coordinate system.
[0034] The above three aspects are specific applications of the calibration between the 3D camera and medical imaging device coordinate systems according to the present invention in the field of medical imaging. However, those skilled in the art should be aware that the calibration technology according to the present invention can also be widely used in many other occasions.
[0035] According to a sixth aspect of the present invention, there is provided a computer-readable storage medium having encoded instructions recorded thereon, which when executed can implement the above-mentioned method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system and various applications thereof.
[0036] Other features and aspects will become apparent from the following detailed description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The present invention may be better understood by describing exemplary embodiments of the present invention in conjunction with the accompanying drawings, in which:
[0038] Figure 1 is a schematic block diagram of a system for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to an exemplary embodiment of the present invention;
[0039] Figure 2 A schematic diagram of the operation of a system for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to an exemplary embodiment of the present invention is shown;
[0040] Figure 3 for Figure 2 a schematic diagram of a calibration tool in the illustrated system;
[0041] Figure 4 Shows Figure 2 the pixel locations of the markings on the calibration tool in the illustrated system;
[0042] Figure 5 for Figure 1 A schematic block diagram of a variant embodiment of the illustrated system;
[0043] Figure 6 is a flow chart of a method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to an exemplary embodiment of the present invention; and
[0044] Figure 7 for Figure 6 Flowchart of an alternative embodiment of the method shown. DETAILED DESCRIPTION
[0045] The specific embodiments of the present invention will be described below. It should be noted that in the specific description of these embodiments, in order to provide a concise description, it is impossible for this specification to provide a detailed description of all the features of the actual embodiments. It should be understood that in the actual implementation of any embodiment, just as in the process of any engineering project or design project, in order to achieve the specific goals of the developer and to meet system-related or business-related restrictions, various specific decisions are often made, and this will also change from one embodiment to another. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the content disclosed by the present invention, some changes such as design, manufacturing or production based on the technical content disclosed in this disclosure are just conventional technical means, and should not be understood as insufficient content of this disclosure.
[0046] Unless otherwise defined, the technical or scientific terms used in the claims and the specification shall have the usual meaning understood by persons with ordinary skills in the technical field to which the invention belongs. The words "first", "second" and similar words used in the patent application specification and the claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "One" or "one" and other similar words do not indicate a quantitative limitation, but indicate the existence of at least one. "Include" or "comprises" and other similar words mean that the elements or objects appearing before "include" or "comprises" include the elements or objects listed after "include" or "comprises" and their equivalent elements, and do not exclude other elements or objects. "Connected" or "connected" and other similar words are not limited to physical or mechanical connections, nor are they limited to direct or indirect connections.
[0047] According to an embodiment of the present invention, a system for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system is provided.
[0048] refer to Figure 1 , which is a schematic block diagram of a system 100 for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to an exemplary embodiment of the present invention. The system 100 includes a calibration tool 120, a 3D camera 140, and a computing device 160. Figure 2 1 shows an operation diagram of the system 100 , wherein Xc, Yc and Zc represent the coordinate system of the 3D camera 140 , and Xg, Yg and Zg represent the coordinate system of the medical imaging device.
[0049] Combination Figure 2 It can be seen that the calibration tool 120 is set on the scanning bed in the medical imaging device. A mark 125 and a reference point A are set on the calibration tool 120. The reference point A is aligned with the center of the medical imaging device to serve as the origin (0,0,0) of the coordinate system of the medical imaging device (i.e., the intersection of the Xg, Yg and Zg axes). The position of the mark 125 in the coordinate system of the medical imaging device is then calculated based on the relative position of the mark 125 to the reference point A (i.e., the origin of the coordinate system of the medical imaging device).
[0050] Figure 1 and Figure 2 The 3D camera 140 shown in FIG. 1 is used to capture an image of the marker 125 and determine the position of the marker 125 in the coordinate system of the 3D camera 140 based on the captured image.
[0051] Figure 1The computing device 160 shown in the figure performs the following computing functions based on the above two sets of position data: uses the position of the marker 125 in the 3D camera 140 coordinate system as the first data set, uses the position of the marker 125 in the medical imaging device coordinate system as the second data set, calculates the calibration matrix M between the 3D camera 140 coordinate system and the medical imaging device coordinate system based on the first data set and the second data set, and uses the calibration matrix M to perform calibration between the 3D camera 140 coordinate system and the medical imaging device coordinate system.
[0052] The above system does not require imaging scanning at all during the process of calculating the calibration matrix. Instead, the position of the marker 125 on the calibration tool 120 in the coordinate system of the medical imaging device can be obtained by pure calculation through the computing device 160. Combined with the position of the marker 125 in the coordinate system of the 3D camera 140 obtained by the 3D camera 140, the calibration matrix M between the coordinate system of the 3D camera 140 and the coordinate system of the medical imaging device can be obtained based on these two sets of position data. The entire process does not require any radiation, and the radiation safety is very high; it also saves time because imaging scanning is not required, and the operator does not need to leave the scanning room to operate the imaging scanning on the control console. In addition, the position of the marker 125 in the coordinate system of the medical imaging device is calculated based on the relative position of the marker 125 to the reference point A, which also significantly improves the calibration accuracy between the 3D camera 140 and the coordinate system of the medical imaging device.
[0053] Furthermore, the laser beam emitted by the laser lamp in the medical imaging device intersects with the reference point A at the center of the medical imaging device.
[0054] Figure 3 A schematic diagram of the calibration tool 120 in the above system is shown, which is specifically represented in the form of pixels with black and white squares alternating.
[0055] like Figure 3 As shown, auxiliary lines 128A and 128B intersecting at reference point A are also provided on the calibration tool 120. The auxiliary lines 128A and 128B can preferably be as shown in FIG. Figure 3 As shown, they are perpendicular to each other on the plane where the calibration tool 120 is located, that is, they are respectively located Figure 2 The laser beam emitted by the laser lamp may include a first beam and a second beam. The calibration tool 120 may be moved so that the auxiliary lines 128A and 128B coincide with the first beam and the second beam, respectively, thereby making it easier to align the reference point A with the center of the medical imaging device.
[0056] In this way, the reference point A can be intuitively and conveniently determined as the origin (0,0,0) of the coordinate system of the medical imaging device. Figure 3The position of the mark 125 is also shown in the figure. Each intersection point of each black square and each white square in the figure corresponds to a mark 125.
[0057] Although the above describes the use of auxiliary lines 128A and 128B to align reference point A with the center of the medical imaging device, those skilled in the art should be aware that the reference point A can be aligned with the center of the medical imaging device even without the auxiliary lines 128A and 128B.
[0058] Further references Figure 4 , which shows the pixel position of each mark 125 on the calibration tool 120, which is the pixel position of the mark 125 in the 3D camera coordinate system. This will be described in detail below and will not be expanded here for the time being.
[0059] Figure 4 Each intersection of a black square and a white square corresponds to a mark 125, and the numbers marked next to them are the relative distances from the mark to the reference point A. The coordinate position of each mark 125 in the coordinate system of the medical imaging device can be obtained from the relative distances.
[0060] As can be seen from the above, the system 100 for calibrating between the 3D camera coordinate system and the medical imaging device coordinate system of the present invention uses a laser light to benchmark the calibration tool 120. Compared with the traditional method of using imaging scanning to obtain the position of the calibration tool, this can more intuitively position the calibration tool, has higher radiation safety, and saves the operator time to go outside the scanning room to control the imaging scan.
[0061] And as Figure 3 As shown, the further introduction of auxiliary lines 128A and 128B further helps to align the reference point A on the calibration tool 120 with the center of the medical imaging device more quickly.
[0062] It should be noted that although Figure 2 The marks 125 on the calibration tool 120 are shown as 6, but in fact the number can be set to any desired number. Figure 2 The shape of the marker 125 is a rectangle, but in fact the size and shape of the marker 125 can also be set as needed. The marker 125 can have various shapes, so that its shape can be designed to be more easily captured by the 3D camera 140 accurately, thereby more accurately generating the marker position of the marker 125 in the coordinate system of the 3D camera 140. Once the shape and size of the marker 125 are set as needed, when calculating the position of the marker 125 in the coordinate system of the medical imaging device, in addition to considering the relative position of the marker 125 to the reference point A, the set shape and size can also be considered.
[0063] It can be seen that the operation of the calibration tool 120 does not require specialized knowledge, and the mark 125 provided thereon can be in various shapes, which brings great convenience to the user and is also easy to update. The operator only needs to input the position, shape and size of the mark 125, and the calibration can be automatically completed.
[0064] In addition, in the calibration system 100, the 3D camera 140 captures the depth image, infrared image and RGB image of the marker 125, and can process the infrared image and RGB image using, for example, an open-source method in a cross-platform computer vision library (OpenCV), so as to obtain the pixel position of the marker 125 in the 3D camera coordinate system, such as Figure 4 shown.
[0065] Furthermore, the depth information of the marker 125 can be obtained from the depth image of the marker 125. Therefore, based on the depth information and the previously obtained pixel position of the marker 125 in the 3D camera coordinate system, the three-dimensional position (Xc, Yc, Zc) of each marker 125 in the 3D camera coordinate system can be determined.
[0066] In the system 100 for calibrating between the 3D camera coordinate system and the medical imaging device coordinate system according to the present invention, the calibration matrix M first includes a rotation matrix r and a translation matrix t, and these two matrices can realize the calibration between the 3D camera 140 coordinate system and the medical imaging device coordinate system. However, since the size of the object obtained in the 3D camera 140 may be different from the physical size of the object in the real world, according to the present invention, the calibration matrix M also specifically includes a scaling matrix s, thereby excluding objects whose size is inaccurate compared to the real physical size. In this way, the calibration matrix M is undoubtedly strengthened, and better calibration accuracy can be obtained.
[0067] Further, refer to Figure 5 The system 100 for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to the present invention may further include a verification unit 180 .
[0068] The verification unit 180 first calibrates the position of the marker 125 obtained from the 3D camera 140 to a position P' in the coordinate system of the medical imaging device through the calibration matrix M, and then compares the calibrated position P' with the actual position P of the marker 125 in the coordinate system of the medical imaging device. The actual position P of the marker 125 in the coordinate system of the medical imaging device can be determined by, for example, a laser reference. Through the above comparison, the verification unit 180 can verify the calibration matrix M.
[0069] In the above comparison, for example, the mean absolute error between P' and P can be calculated, and the mean absolute error can be compared with a preset threshold to determine whether the calibration accuracy of the calibration matrix M is as expected. The preset threshold can be determined according to factors such as work requirements and environment.
[0070] The inspection unit 180 helps an engineer or a user to easily check whether the calibration between the 3D camera 140 and the coordinate system of the medical imaging device has been completed and whether the calibration meets the required accuracy requirement.
[0071] The medical imaging equipment described in the present invention may include multiple types, such as CT equipment, MR equipment, PET equipment, etc., and may also include various combinations of these equipment.
[0072] According to an embodiment of the present invention, a method 600 for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system is also provided accordingly. Figure 6 The method 600 includes steps S610 to S650. Figure 2 A calibration tool 120 is provided on the scanning bed in the medical imaging device, and a reference point A and a mark 125 are provided on the calibration tool 120 .
[0073] refer to Figure 6 In step S610, the reference point A is aligned with the center of the medical imaging device to serve as the origin of the coordinate system of the medical imaging device.
[0074] For example, the laser beam emitted by the laser lamp in the medical imaging device may intersect the reference point A at the center of the medical imaging device. Thus, in the above step S610, the reference point A is aligned with the center of the medical imaging device.
[0075] Further integration Figure 3 For example, auxiliary lines 128A and 128B intersecting at the reference point A may be set on the calibration tool 120. The laser beam emitted by the laser lamp may include a first beam and a second beam. The calibration tool 120 may be moved so that the auxiliary lines 128A and 128B coincide with the first beam and the second beam, respectively, thereby making it easier to align the reference point A with the center of the medical imaging device.
[0076] Back to Figure 6 In step S620, the position of the marker 125 in the coordinate system of the medical imaging device is calculated based on the relative position of the marker 125 to the reference point A.
[0077] like Figure 4As shown, each intersection of the black square and each white square corresponds to a mark 125, and the numbers marked next to them are the relative distances from the mark to the reference point A. The coordinate position of each mark 125 in the coordinate system of the medical imaging device can be obtained from the relative distance.
[0078] Furthermore, in step S620, the shape and size of the marker 125 are settable. Once the shape and size of the marker 125 are set, the position of the marker 125 in the medical imaging device coordinate system is calculated based on the relative position of the marker 125 to the reference point A and the set shape and size.
[0079] Still back Figure 6 In step S630, by Figure 2 The illustrated 3D camera 140 captures an image of the marker 125 and determines the position of the marker 125 in the 3D camera 140 coordinate system based on the captured image.
[0080] Specifically, the 3D camera 140 captures the depth image, infrared image and RGB image of the marker 125, and can process the infrared image and RGB image of the marker 125 through the open source method in OpenCV to obtain the pixel position of the marker 125 in the 3D camera coordinate system, such as Figure 4 shown.
[0081] The depth image of the marker 125 may be further processed to obtain depth information of the marker 125, which corresponds to the pixel position of the marker 125 in the 3D camera coordinate system. Thus, based on the depth information and the pixel position of the marker 125 in the 3D camera coordinate system, the three-dimensional position (Xc, Yc, Zc) of the marker 125 in the 3D camera coordinate system may be determined.
[0082] It should be noted that, although step S630 is described above using the open source method in OpenCV as an example, those skilled in the art should know that this step can also be implemented using other image processing technologies and is not limited to the open source method in OpenCV.
[0083] Back to Figure 6 In step S640, the position of the marker 125 in the 3D camera 140 coordinate system is used as the first data group, and the position of the marker 125 in the medical imaging device coordinate system is used as the second data group, and the calibration matrix M between the 3D camera 140 coordinate system and the medical imaging device coordinate system is calculated based on the first data group and the second data group.
[0084] Combined with reference Figure 2As the scanning bed moves in the Zg and Yg directions, when the calibration tool 120 enters the field of view (FOV) of the 3D camera 140, the pixel position of the mark 125 on the calibration tool 120 is determined based on the RGB image and the infrared image, and then together with the depth information obtained from the depth image, the coordinates of the mark 125 in the coordinate system of the 3D camera 140 can be determined as the above-mentioned first data group; based on the movement of the scanning bed and the relative position of the mark 125 and the reference point A, the position of the mark 125 in the coordinate system of the medical imaging device can be determined as the above-mentioned second data group.
[0085] According to the present invention, the calibration matrix M may specifically include a rotation matrix r, a translation matrix t and a scaling matrix s. As mentioned above, the introduction of the scaling matrix s can exclude objects whose size is inaccurate compared to the real physical size.
[0086] Back again Figure 6 Finally, in step S650, the calibration matrix M is used to implement calibration between the coordinate system of the 3D camera 140 and the coordinate system of the medical imaging device.
[0087] Further, refer to Figure 7 The calibration method 600 according to the present invention may further include step S660: for verifying the calibration matrix M by comparing the third data set with the fourth data set.
[0088] Specifically, in step S660, the position of the marker 125 obtained from the 3D camera 140 is first calibrated to a position P' (third data set) in the coordinate system of the medical imaging device through the calibration matrix M, and then the calibrated position P' is compared with the actual position P of the marker 125 in the coordinate system of the medical imaging device (fourth data set). The actual position P of the marker 125 in the coordinate system of the medical imaging device can be determined by, for example, a laser reference. Through the above comparison, the calibration matrix M can be verified.
[0089] For the above comparison, for example, the mean absolute error between P' and P can be calculated, and the mean absolute error can be compared with a preset threshold to determine whether the calibration accuracy of the calibration matrix M is as expected. The preset threshold can be determined according to work requirements, environment and other factors.
[0090] As mentioned above, the above-mentioned medical imaging equipment may include multiple types, such as CT equipment, MR equipment, PET equipment, etc., and may also include various combinations of these equipment.
[0091] The above-mentioned method 600 and its various optional embodiments and examples correspond to the system 100 for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to the present invention. Many design details of the system 100 are also applicable to the above-mentioned method 600 and its various optional embodiments, and the above-mentioned method 600 and its various optional embodiments can achieve all the technical effects that the system 100 can achieve.
[0092] The above-mentioned calibration system and method between the 3D camera and the medical imaging device coordinate system of the present invention can be widely used in many occasions in the field of medical imaging.
[0093] For example, according to the present invention, a scanning positioning method for a medical imaging device is also provided, which includes: acquiring a 3D image of a patient to be scanned located on a scanning bed of the medical imaging device through a 3D camera; identifying the acquired 3D image to obtain human anatomical structure information of the patient to be scanned; determining a range to be scanned on the 3D image based on the human anatomical structure information; and calibrating the range to be scanned in the 3D camera coordinate system to the medical imaging device coordinate system through the method for calibrating between the 3D camera coordinate system and the medical imaging device coordinate system according to the present invention.
[0094] For another example, according to the present invention, a scanning range display method is also provided, comprising: acquiring key points of the scanning range through a 3D camera; calibrating the position of the key points in the 3D camera coordinate system to the position of the key points in the medical imaging device coordinate system through the method for calibrating between the 3D camera coordinate system and the medical imaging device coordinate system according to the present invention; acquiring the positions of the start and end points of the scanning range in the medical imaging device coordinate system according to predetermined start and end distances and the positions of the key points in the medical imaging device coordinate system; and displaying the pixel positions of the start and end points of the scanning range obtained by inverse operation of the calibration matrix in the 3D camera screen.
[0095] For example, according to the present invention, a method for predicting human body collision is provided, comprising: acquiring point cloud data of a human body through a 3D camera; calibrating the point cloud data into a medical imaging device coordinate system through the method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to the present invention; and predicting the possibility of a collision between a human body and a scanning gantry by comparing a position of the point cloud data in the medical imaging device coordinate system with a position of a scanning gantry in the medical imaging device coordinate system.
[0096] The above three examples are only some of the applications of the calibration between the 3D camera and the medical imaging device coordinate system according to the present invention in the field of medical imaging. It should be clear to those skilled in the art that the calibration technology according to the present invention can also be widely used in many other occasions. Because the calibration between the 3D camera and the medical imaging device coordinate system according to the present invention is used in these specific applications, better results can be obtained more conveniently and quickly based on more accurate data.
[0097] According to an embodiment of the present invention, a computer-readable storage medium is also provided, on which encoded instructions are recorded. When the instructions are executed, the above-mentioned method 600 for calibrating between a 3D camera coordinate system and a CT system coordinate system and various variations and extensions thereof can be implemented, and the above-mentioned various applications implemented by the calibration between the 3D camera and the medical imaging device coordinate system of the present invention can also be implemented. The computer-readable storage medium may include a hard disk drive, a floppy disk drive, a compact disk read / write (CD-R / W) drive, a digital versatile disk (DVD) drive, a flash drive and / or a solid-state storage device, etc. The computer-readable storage medium may be installed in a medical imaging device, or may be installed in a separate control device or computer for remotely controlling the medical imaging device.
[0098] So far, the system and method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system according to the present invention, as well as the specific application of the calibration and the computer-readable storage medium that can implement the calibration method and application are described.
[0099] The system and method for calibrating between the 3D camera coordinate system and the medical imaging device coordinate system according to the present invention do not require imaging scanning at all. Instead, the position of the mark on the calibration tool in the medical imaging device coordinate system can be obtained through pure calculation, and the position of the mark on the calibration tool in the 3D camera coordinate system is obtained through the 3D camera at the same time. Finally, the calibration matrix between the 3D camera coordinate system and the medical imaging device coordinate system is obtained based on these two sets of position data. The whole process does not have any radiation, and the radiation safety is very high; it also saves time because imaging scanning is not required, and the operator does not need to leave the scanning room to control the imaging scanning on the control console. In addition, the position of the mark in the medical imaging device coordinate system is calculated based on the relative position of the mark to the reference point, which also significantly improves the calibration accuracy between the 3D camera and the medical imaging device coordinate system.
[0100] The present invention provides a convenient and radiation-free method and system for calibration of camera-medical imaging equipment. Compared with most existing camera-medical imaging equipment calibration methods, the present invention does not require imaging scanning for the calibration tool, but uses the laser light in the scanning rack to perform the benchmark work. This allows all processes to be completed at the scanning bedside without radiation scanning, greatly improving convenience.
[0101] Moreover, the present invention enables ordinary users to easily complete recalibration, which can greatly save technical personnel resources compared to other existing technologies that require professional engineers to perform calibration. Through the present invention, a variety of applications that integrate 3D cameras into medical imaging devices can be realized, wherein the 3D camera performs all calculations in the 3D camera coordinate system or with image pixels. According to the present invention, a calibration matrix is generated to calibrate the data from the 3D camera to the data in the medical imaging device coordinate system, which makes it possible to directly guide the operation of the medical imaging device based on the 3D camera.
[0102] In addition, the present invention enables the introduction of imaging devices, especially 3D cameras, in medical imaging equipment to provide more intuitive feature display. Compared with the use of limited depth cameras, various intuitive and effective operations can be provided to users more accurately, thereby making the workflow more efficient and providing users with safer operations, greatly improving the user experience. Moreover, the present invention provides a strong guarantee for the technology of configuring 3D cameras in the scanning room to increase interaction with users. Not only that, if you want to introduce a 3D camera into a machine, the present invention also helps to obtain an important data source for machine digitization.
[0103] Some exemplary embodiments have been described above. However, it should be understood that various modifications may be made to the exemplary embodiments described above without departing from the spirit and scope of the present invention. For example, if the described techniques are performed in a different order and / or if the components in the described systems, architectures, devices, or circuits are combined in different ways and / or replaced or supplemented by other components or their equivalents, suitable results may be achieved, and accordingly, these modified other implementations also fall within the scope of protection of the claims.
Claims
1. A system for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system, comprising: a laser lamp for emitting a laser beam in the medical imaging device, the laser beam intersecting with the center of the medical imaging device; a calibration tool, the calibration tool being provided with a mark, a reference point and two auxiliary lines compared to the reference point, wherein the auxiliary lines intersect the laser beam, and the reference point is aligned with the center of the medical imaging device to serve as the origin of the coordinate system of the medical imaging device; a 3D camera for capturing an image of the marker and determining a position of the marker in the 3D camera coordinate system based on the captured image; as well as A computing device performs calibration between the 3D camera coordinate system and the medical imaging device coordinate system using the position of the marker in the 3D camera coordinate system and the position of the marker in the medical imaging device coordinate system.
2. The system according to claim 1, characterized in that The computing device computes a calibration matrix between the 3D camera coordinate system and the medical imaging device coordinate system.
3. The system according to claim 2, characterized in that The calibration matrix includes a rotation matrix, a translation matrix and a scaling matrix.
4. The system according to claim 2, characterized in that The system further comprises: A verification unit is used to verify the calibration matrix by using the position of the mark obtained from the 3D camera through the calibration matrix to obtain the position of the mark in the coordinate system of the medical imaging device and the actual position of the mark point in the coordinate system of the medical imaging device.
5. The system according to claim 4, characterized in that The verification unit calculates a mean absolute error between the obtained position of the mark in the coordinate system of the medical imaging device and the actual position of the mark point in the coordinate system of the medical imaging device, and compares the mean absolute error with a threshold.
6. The system according to claim 1, wherein: The shape and size of the mark are set, and the position of the mark in the coordinate system of the medical imaging device is calculated according to the relative position of the mark to the reference point and the set shape and size.
7. A method for calibrating between a 3D camera coordinate system and a medical imaging device coordinate system, the method comprising: Aligning a laser beam emitted by the laser lamp with an auxiliary line of the calibration tool, wherein the laser beam intersects at a center of the medical imaging device, and the auxiliary line intersects at a reference point of the calibration tool, wherein the laser beam is aligned with the auxiliary line so that the reference point is aligned with a center of the medical imaging device, and the center of the medical imaging device serves as an origin of a coordinate system of the medical imaging device; calculating a position of a marker of the calibration tool in a coordinate system of the medical imaging device, the calculation being based on a relative position of the marker to the reference point; capturing an image of the marker by a 3D camera, and determining a position of the marker in the 3D camera coordinate system based on the captured image; The 3D camera coordinate system and the medical imaging device coordinate system are calibrated using the position of the marker in the 3D camera coordinate system and the position of the marker in the medical imaging device coordinate system.
8. The method according to claim 7, characterized in that Compute the calibration matrix between the 3D camera coordinate system and the medical imaging device coordinate system.
9. The method according to claim 8, characterized in that The calibration matrix includes a rotation matrix, a translation matrix and a scaling matrix.
10. The method of claim 8, further comprising: The calibration matrix is checked by comparing the position of the marker obtained from the 3D camera through the calibration matrix to the position of the marker in the medical imaging device coordinate system and the actual position of the marker in the medical imaging device coordinate system.
11. The method according to claim 10, characterized in that Verifying the calibration matrix includes calculating a mean absolute error between the obtained position of the marker in the medical imaging device coordinate system and the actual position of the marker in the medical imaging device coordinate system, and comparing the mean absolute error with a threshold.
12. The method according to claim 7, characterized in that In the step of calculating the position of the mark in the coordinate system of the medical imaging device, the shape and size of the mark are set, and the position of the mark in the coordinate system of the medical imaging device is calculated based on the relative position of the mark to the reference point and the set shape and size.
13. A scanning positioning method for a medical imaging device, comprising: Acquiring a 3D image of a patient to be scanned located on a scanning bed of the medical imaging device by a 3D camera; Recognizing the acquired 3D image to obtain human anatomical structure information of the patient to be scanned; Determine a range to be scanned on the 3D image based on the human anatomical structure information; as well as The range to be scanned in the 3D camera coordinate system is calibrated to the medical imaging device coordinate system by the method described in any one of claims 7 to 12.
14. A scanning range display method, comprising: Acquire key points of the scanning range by using a 3D camera; Calibrate the position of the key point in the 3D camera coordinate system to the position of the key point in the medical imaging device coordinate system by the method according to any one of claims 7 to 12; Acquire the positions of the start and end points of the scanning range in the coordinate system of the medical imaging device according to the predetermined start and end distances and the positions of the key points in the coordinate system of the medical imaging device; as well as The pixel positions of the start and end points of the scanning range obtained by the inverse operation of the calibration matrix in the 3D camera image are displayed.
15. A method for predicting human body collision, comprising: Obtain point cloud data of the human body through a 3D camera; Calibrate the point cloud data into a medical imaging device coordinate system by the method of any one of claims 7 to 12; as well as By comparing the position of the point cloud data in the medical imaging device coordinate system with the position of the scanning gantry in the medical imaging device coordinate system, the possibility of a collision between the human body and the scanning gantry is predicted.
16. A computer-readable storage medium having encoded instructions recorded thereon, which implement the method according to any one of claims 7 to 12 when the instructions are executed.
Citation Information
Patent Citations
Calibrating RGB-D sensors to medical image scanners
US9633435B2
