Disclosure of Invention
In view of the above, one of the technical problems to be solved by the embodiments of the present application is to provide an image fusion method and apparatus, which can accurately obtain the actual spatial position of each internal organ of a human body when the human body breathes.
In a first aspect, an embodiment of the present application provides an image fusion method, including:
establishing a conversion relation between an ultrasonic coordinate system and a three-dimensional coordinate system by using an electromagnetic tracking device, an electromagnetic identifier and a marker;
and unifying the ultrasonic image and the three-dimensional image to the same coordinate system according to the conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system to obtain the image formed by fusing the ultrasonic image and the three-dimensional image in real time.
Optionally, the step of establishing a transformation relationship between the ultrasound coordinate system and the three-dimensional coordinate system by using the electromagnetic tracking device, the electromagnetic marker, and the marker includes:
according to the position relation between a marker arranged on the body surface of a human body and an electromagnetic marker corresponding to the marker, real-time tracking of the electromagnetic marker by an electromagnetic tracking device and the position of the marker in a three-dimensional image are carried out, and a conversion relation between a three-dimensional coordinate system and an electromagnetic coordinate system is established;
establishing a conversion relation between an ultrasonic coordinate system and an electromagnetic coordinate system according to the position relation between an electromagnetic identifier arranged on an ultrasonic probe and the real-time tracking of the electromagnetic identifier by an electromagnetic tracking device;
and establishing a conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system according to the conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system and the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system.
Optionally, the establishing, by the electromagnetic tracking device, a conversion relationship between the three-dimensional coordinate system and the electromagnetic coordinate system according to a position relationship between a marker disposed on a body surface of a human body and an electromagnetic marker corresponding to the marker, the real-time tracking of the electromagnetic marker by the electromagnetic tracking device, and a position of the marker in the three-dimensional image includes:
obtaining the coordinates of the marker in a marker coordinate system owned by the electromagnetic marker arranged on the body surface of the human body according to the position relation between the marker arranged on the body surface of the human body and the electromagnetic marker;
according to the real-time tracking of the electromagnetic identification by the electromagnetic tracking equipment, the conversion relation between an identification coordinate system and an electromagnetic coordinate system is obtained;
obtaining the coordinates of the marker in the electromagnetic coordinate system according to the coordinates of the marker in the identification coordinate system and the conversion relation between the identification coordinate system and the electromagnetic coordinate system;
and establishing a conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system according to the coordinates of the marker in the three-dimensional coordinate system and the coordinates of the marker in the electromagnetic coordinate system, which are obtained according to the position of the marker in the three-dimensional image.
Optionally, the step of establishing a conversion relationship between an ultrasonic coordinate system and an electromagnetic coordinate system according to a position relationship between an electromagnetic identifier arranged on the ultrasonic probe and a real-time tracking of the electromagnetic identifier by an electromagnetic tracking device specifically includes:
obtaining a conversion relation between an ultrasonic coordinate system and an identification coordinate system owned by an electromagnetic identification fixed on the ultrasonic probe according to the position relation between the ultrasonic probe and the electromagnetic identification fixed on the ultrasonic probe;
according to the real-time tracking of the electromagnetic identification by the electromagnetic tracking equipment, the conversion relation between an identification coordinate system and an electromagnetic coordinate system is obtained;
and obtaining the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system according to the conversion relation between the ultrasonic coordinate system and the identification coordinate system and the conversion relation between the identification coordinate system and the electromagnetic coordinate system.
Optionally, the position relationship between the marker and the electromagnetic marker disposed on the body surface of the human body is specifically:
at least one of the at least two electromagnetic markers fixed on the body surface of the human body is fixed in position relation with at least three non-collinear markers, each marker has a fixed position relation with at most one electromagnetic marker, and each electromagnetic marker has a fixed position relation with at least one marker.
Optionally, the position relationship between the marker and the electromagnetic marker disposed on the body surface of the human body is specifically: in at least two electromagnetic marks fixed on the body surface of the human body, the position relation between each electromagnetic mark and at least three non-collinear markers is fixed, and each marker has a fixed position relation with at most one electromagnetic mark.
Optionally, the unifying the ultrasound image and the three-dimensional image into the same coordinate system according to the conversion relationship between the ultrasound coordinate system and the three-dimensional coordinate system to obtain the image after the ultrasound image and the three-dimensional image are fused in real time specifically includes:
unifying each pixel in the ultrasonic image and each pixel in the three-dimensional image to the same coordinate system according to the coordinate of each pixel in the ultrasonic image in the ultrasonic coordinate system, the coordinate of each pixel in the three-dimensional image in the three-dimensional coordinate system and the conversion relationship between the ultrasonic coordinate system and the three-dimensional coordinate system to obtain the real-time position relationship between the ultrasonic image and the three-dimensional image, and carrying out image fusion according to the real-time position relationship between the ultrasonic image and the three-dimensional image to obtain an image after the real-time fusion of the ultrasonic image and the three-dimensional image.
In a second aspect, an embodiment of the present application further provides an image fusion apparatus, which includes a three-dimensional ultrasound transformation relation module, and a three-dimensional ultrasound image fusion module, wherein,
the three-dimensional ultrasonic conversion relation module is connected with the three-dimensional ultrasonic image fusion module and is used for: establishing a conversion relation between an ultrasonic coordinate system and a three-dimensional coordinate system by using an electromagnetic tracking device, an electromagnetic identifier and a marker, and sending the conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system to a three-dimensional ultrasonic image fusion module;
the three-dimensional ultrasonic image fusion module is connected with the three-dimensional ultrasonic conversion relation module and is used for:
and unifying the ultrasonic image and the three-dimensional image to the same coordinate system according to the conversion relation between the received ultrasonic coordinate system and the three-dimensional coordinate system to obtain the image formed by fusing the ultrasonic image and the three-dimensional image in real time.
Optionally, the three-dimensional ultrasonic conversion relation module comprises a three-dimensional electromagnetic conversion relation module, an ultrasonic electromagnetic conversion relation module and a three-dimensional ultrasonic conversion relation module, wherein,
the three-dimensional electromagnetic conversion relation module is connected with the three-dimensional ultrasonic conversion relation module and is used for: according to the position relation between a marker arranged on the body surface of a human body and an electromagnetic marker corresponding to the marker, real-time tracking of the electromagnetic marker by an electromagnetic tracking device and the position of the marker in a three-dimensional image, establishing a conversion relation between a three-dimensional coordinate system and an electromagnetic coordinate system, and sending the conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system to a three-dimensional ultrasonic conversion relation module;
the ultrasonic electromagnetic conversion relation module is connected with the three-dimensional ultrasonic conversion relation module and is used for: establishing a conversion relation between an ultrasonic coordinate system and an electromagnetic coordinate system according to the position relation between an electromagnetic identifier arranged on the ultrasonic probe and the real-time tracking of the electromagnetic identifier by an electromagnetic tracking device, and sending the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system to a three-dimensional ultrasonic conversion relation module;
the three-dimensional ultrasonic conversion relation module is connected with the three-dimensional electromagnetic conversion relation module and the ultrasonic electromagnetic conversion relation module and is used for:
and establishing a conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system according to the received conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system and the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system.
Optionally, the three-dimensional electromagnetic conversion relationship module further includes an identification coordinate unit, an identification electromagnetic conversion relationship unit, an electromagnetic coordinate unit, and a three-dimensional electromagnetic conversion relationship unit, wherein:
the identification coordinate unit is connected with the electromagnetic coordinate unit and used for obtaining the coordinates of the marker in an identification coordinate system owned by the electromagnetic marker arranged on the body surface of the human body according to the position relation between the marker and the electromagnetic marker arranged on the body surface of the human body and sending the coordinates of the marker in the identification coordinate system to the electromagnetic coordinate unit;
the identification electromagnetic conversion relation unit is connected with the electromagnetic coordinate unit and used for obtaining the conversion relation between an identification coordinate system and an electromagnetic coordinate system according to the real-time tracking of the electromagnetic identification by the electromagnetic tracking equipment and sending the conversion relation between the identification coordinate system and the electromagnetic coordinate system to the electromagnetic coordinate unit;
the electromagnetic coordinate unit is connected with the identification coordinate unit and the identification electromagnetic conversion relation unit and is used for obtaining the coordinates of the marker in the electromagnetic coordinate system according to the received coordinates of the marker in the identification coordinate system and the conversion relation between the identification coordinate system and the electromagnetic coordinate system and sending the coordinates of the marker in the electromagnetic coordinate system to the three-dimensional electromagnetic conversion relation unit;
the three-dimensional electromagnetic conversion relation unit is connected with the electromagnetic coordinate unit and used for establishing the conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system according to the coordinates of the marker in the three-dimensional coordinate system obtained by the position of the marker in the three-dimensional image and the received coordinates of the marker in the electromagnetic coordinate system.
Optionally, the ultrasonic-electromagnetic conversion relation module includes: the ultrasonic identification conversion relation unit, the identification electromagnetic conversion relation unit and the ultrasonic electromagnetic conversion relation unit, wherein:
the ultrasonic identification conversion relation unit is connected with the ultrasonic electromagnetic conversion relation unit and is used for: according to the position relation between the ultrasonic probe and the electromagnetic mark fixed on the ultrasonic probe, obtaining the conversion relation between an ultrasonic coordinate system and a mark coordinate system owned by the electromagnetic mark fixed on the ultrasonic probe, and sending the conversion relation between the ultrasonic coordinate system and the mark coordinate system to an ultrasonic electromagnetic conversion relation unit;
the identification electromagnetic conversion relation unit is connected with the ultrasonic electromagnetic conversion relation unit and is used for: according to the real-time tracking of the electromagnetic tracking equipment on the electromagnetic identification, the conversion relation between the identification coordinate system and the electromagnetic coordinate system is obtained, and the conversion relation between the identification coordinate system and the electromagnetic coordinate system is sent to an ultrasonic electromagnetic conversion relation unit;
the ultrasonic electromagnetic conversion relation unit is connected with the ultrasonic identification conversion relation unit and the identification electromagnetic conversion relation unit, and is used for:
and obtaining the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system according to the conversion relation between the received ultrasonic coordinate system and the identification coordinate system and the conversion relation between the identification coordinate system and the electromagnetic coordinate system.
Optionally, in the image fusion apparatus, the position relationship between the marker and the electromagnetic marker disposed on the body surface of the human body is specifically:
at least one of the at least two electromagnetic markers fixed on the body surface of the human body is fixed in position relation with at least three non-collinear markers, each marker has a fixed position relation with at most one electromagnetic marker, and each electromagnetic marker has a fixed position relation with at least one marker.
Optionally, in the image fusion apparatus, the position relationship between the marker and the electromagnetic marker disposed on the body surface of the human body is specifically:
in at least two electromagnetic marks fixed on the body surface of the human body, the position relation between each electromagnetic mark and at least three non-collinear markers is fixed, and each marker has a fixed position relation with at most one electromagnetic mark.
Optionally, the three-dimensional ultrasound image fusion module is specifically configured to:
unifying each pixel in the ultrasonic image and each pixel in the three-dimensional image to the same coordinate system according to the coordinate of each pixel in the ultrasonic image in the ultrasonic coordinate system, the coordinate of each pixel in the three-dimensional image in the three-dimensional coordinate system and the conversion relationship between the ultrasonic coordinate system and the three-dimensional coordinate system to obtain the real-time position relationship between the ultrasonic image and the three-dimensional image, and carrying out image fusion according to the real-time position relationship between the ultrasonic image and the three-dimensional image to obtain an image after the real-time fusion of the ultrasonic image and the three-dimensional image.
According to the technical scheme, the real-time conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system can be established according to the movement of the body surface of the human body and the movement of the ultrasonic probe by utilizing the electromagnetic tracking equipment, the electromagnetic marks and the markers, and then the ultrasonic image and the three-dimensional image are fused in real time on the basis of the real-time conversion relation, so that the actual space positions of all internal organs of the human body can be accurately obtained when the human body breathes.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application shall fall within the scope of the protection of the embodiments in the present application.
In practical operation, the three-dimensional image shown in fig. 3 generated by scanning a human body with a CT (Computer Tomography) device or an MRI (Magnetic Resonance Imaging) Imaging device or a nuclear Magnetic device can show various physiological structures in the human body as a whole, but cannot provide a real-time image, and the ultrasound image shown in fig. 4 can obtain a real-time image, but can only display an image under one plane, so that various physiological structures in the human body cannot be shown as a whole; in addition, both the two modes are difficult to help medical staff to judge the actual spatial positions of blood vessels, focus and organs in the human body; the inventor finds that the two modes are combined, so that medical staff can be effectively helped to judge the actual spatial positions of blood vessels, focus and organs in a human body in real time, and the method is widely applied to medicine; therefore, the embodiment of the application provides a method for fusing an ultrasonic image and a three-dimensional image, so that the accurate actual spatial position of each physiological structure can be obtained through the fused image.
Referring to fig. 1, an embodiment of the present application provides an image fusion method, including steps S100-S200, specifically:
s100: and establishing a conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system by using the electromagnetic tracking equipment, the electromagnetic marker and the marker.
It should be noted that, in this application embodiment, the electromagnetic marking is two kinds including the electromagnetic marking that sets up on ultrasonic probe and the electromagnetic marking that sets up at human body surface, no matter set up the electromagnetic marking on ultrasonic probe, still set up the electromagnetic marking on human body surface, all can be traced and discerned in real time by electromagnetic tracking equipment, the difference is the position difference that sets up, for the convenience of explanation, this application embodiment will set up the electromagnetic marking on ultrasonic probe as probe electromagnetic marking, will set up the electromagnetic marking on human body surface as body surface electromagnetic marking.
In the implementation process, in order to finally obtain the conversion relationship between the three-dimensional coordinate system and the ultrasonic coordinate system, a body surface electromagnetic marker and a marker are fixedly arranged on the body surface, and a fixed position relationship is established between the body surface electromagnetic marker and the marker, so that the relationship between the marker and the electromagnetic tracking device can be established by real-time tracking of the body surface electromagnetic marker by the electromagnetic tracking device, and the relationship between the three-dimensional image and the electromagnetic tracking device can be established by combining the relationship between the marker and the electromagnetic tracking device after the relationship between the marker and the three-dimensional image is established because the marker and the human body can be scanned by a CT (Computer Tomography) device or a MRI (Magnetic Resonance Imaging) device and imaged in the three-dimensional image.
In addition, because a fixed position relation also exists between the probe electromagnetic mark and the ultrasonic probe, the relation between the ultrasonic probe and the electromagnetic tracking equipment can be established by tracking the probe electromagnetic mark in real time through the electromagnetic tracking equipment.
In summary, the relationship between the ultrasound probe and the three-dimensional image can be established by the intermediary of an electromagnetic tracking device.
Optionally, the step of establishing a transformation relationship between the ultrasound coordinate system and the three-dimensional coordinate system using the electromagnetic tracking device, the electromagnetic marker, and the marker includes:
according to the position relation between a marker arranged on the body surface of a human body and an electromagnetic marker corresponding to the marker, real-time tracking of the electromagnetic marker by an electromagnetic tracking device and the position of the marker in a three-dimensional image are carried out, and a conversion relation between a three-dimensional coordinate system and an electromagnetic coordinate system is established;
establishing a conversion relation between an ultrasonic coordinate system and an electromagnetic coordinate system according to the position relation between an electromagnetic identifier arranged on an ultrasonic probe and the real-time tracking of the electromagnetic identifier by an electromagnetic tracking device;
and establishing a conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system according to the conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system and the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system.
As can be seen from the above, in the embodiment of the present application, the electromagnetic markers are divided into two types, i.e. an ultrasound electromagnetic marker and a body surface electromagnetic marker, according to the different set positions, and each electromagnetic marker has a marker coordinate system, and for the sake of clearer description, the marker coordinate system is divided into two types, i.e. an ultrasound marker coordinate system owned by the ultrasound electromagnetic marker and a body surface marker coordinate system owned by the body surface electromagnetic marker, and the electromagnetic tracking device has an electromagnetic coordinate system, so that the transformation relationship between the electromagnetic coordinate system and the body surface marker coordinate system can be obtained by real-time tracking of the body surface electromagnetic marker by the electromagnetic tracking device, and the coordinates of the marker in the body surface marker coordinate system can be obtained according to the fixed position relationship between the marker set on the body surface of the human body and the body surface electromagnetic marker, and the transformation relationship between the electromagnetic coordinate system and the body surface marker coordinate system can be combined, the coordinates of the marker in the electromagnetic coordinate system can be further obtained, the marker and the human body can be scanned through CT equipment or nuclear magnetic equipment together to generate a three-dimensional image, and the coordinates of the marker in the three-dimensional coordinate system owned by the three-dimensional image can be obtained according to the position of the marker in the three-dimensional image, so that the conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system can be obtained by combining the coordinates of the marker in the electromagnetic coordinate system.
Further, according to the position relationship between the marker arranged on the body surface of the human body and the electromagnetic marker corresponding to the marker, the electromagnetic tracking device tracks the electromagnetic marker in real time, and the position of the marker in the three-dimensional image, and the establishment of the conversion relationship between the three-dimensional coordinate system and the electromagnetic coordinate system comprises the following steps:
obtaining the coordinates of the marker in a marker coordinate system owned by the electromagnetic marker arranged on the body surface of the human body according to the position relation between the marker arranged on the body surface of the human body and the electromagnetic marker;
according to the real-time tracking of the electromagnetic identification by the electromagnetic tracking equipment, the conversion relation between an identification coordinate system and an electromagnetic coordinate system is obtained;
obtaining the coordinates of the marker in the electromagnetic coordinate system according to the coordinates of the marker in the identification coordinate system and the conversion relation between the identification coordinate system and the electromagnetic coordinate system;
and establishing a conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system according to the coordinates of the marker in the three-dimensional coordinate system and the coordinates of the marker in the electromagnetic coordinate system, which are obtained according to the position of the marker in the three-dimensional image.
More specifically, in the embodiment of the present application, each body surface electromagnetic identifier has a coordinate system belonging to its own, if there are N individual table electromagnetic identifiers (N is an integer greater than or equal to 2), there are N individual table identifier coordinate systems, and in addition, there is a fixed position relationship between the marker and the body surface electromagnetic identifier, and the coordinates of the center point of the marker in the body surface identifier coordinate system owned by the body surface electromagnetic identifier having a fixed position relationship with the marker can be obtained by a processing drawing calculation or actual measurement method. Meanwhile, the electromagnetic tracking equipment can track and recognize each body surface electromagnetic mark in real time, so that the conversion relation between each body surface mark coordinate system and the electromagnetic coordinate system owned by the electromagnetic tracking equipment can be obtained by tracking the body surface electromagnetic marks in real time through the electromagnetic tracking equipment.
And obtaining the conversion relation between each body surface identification coordinate system and the electromagnetic coordinate system, and obtaining the coordinates of the central point of the marker in the body surface identification coordinate system owned by the body surface electromagnetic identification which has a fixed position relation with the central point of the marker, so as to obtain the coordinates of the central point of the marker in the electromagnetic coordinate system. And because the electromagnetic tracking equipment tracks and identifies each body surface electromagnetic mark in real time, the real-time coordinate of the central point of the marker in the electromagnetic coordinate system can be obtained, and the pose of the electromagnetic tracking equipment is fixed, so that the marker can be represented in a form that the coordinate is continuously changed along with the movement of the body surface in the electromagnetic coordinate system.
Because the CT equipment or the nuclear magnetic equipment scans the human body to obtain the three-dimensional image of the human body, the markers arranged on the body surface of the human body can be presented in the three-dimensional image, and the coordinates of the central point of each marker in the three-dimensional coordinate system of the three-dimensional image are further obtained. The coordinate of the marker center point in the three-dimensional coordinate system and the coordinate of the marker center point in the electromagnetic coordinate system are obtained according to the position of the marker in the three-dimensional image, and the conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system can be further obtained according to the coordinates of the same point in the two coordinate systems.
It should be noted that, because the coordinates of the center point of the marker in the electromagnetic coordinate system are obtained in real time, the transformation relationship between the three-dimensional coordinate system and the electromagnetic coordinate system, which is established according to the coordinates of the center point of the marker in the electromagnetic coordinate system obtained in real time, also changes in real time, that is, when the coordinates of the center point of the marker in the electromagnetic coordinate system change, the transformation relationship between the three-dimensional coordinate system and the electromagnetic coordinate system changes accordingly.
In order to obtain a more accurate conversion relation in real time in a breathing process, the embodiment of the application provides a configuration scheme of body surface electromagnetic markers and markers, wherein at least two body surface electromagnetic markers and at least four markers are required in the configuration scheme, in the at least two electromagnetic markers fixed on the body surface of a human body, the position relation between at least one electromagnetic marker and at least three non-collinear markers is fixed, each marker has a fixed position relation with at most one electromagnetic marker, and each electromagnetic marker has a fixed position relation with at least one marker.
On the basis of the above scheme, in order to make the conversion relationship change with breathing more stably, at least two body surface electromagnetic markers and at least six markers need to be fixedly arranged on the body surface, wherein, in the at least two electromagnetic markers fixed on the body surface, the position relationship between each electromagnetic marker and at least three non-collinear markers is fixed, and each marker has a fixed position relationship with at most one electromagnetic marker.
There are various ways to establish the fixed position relationship between the body surface electromagnetic identifier and the marker, for example, the body surface electromagnetic identifier and the marker can be installed on an object and the object can be stuck on the body surface; or sticking the body surface electromagnetic mark on the body surface and fixing the marker on the body surface electromagnetic mark, etc.
Optionally, at least two body surface electromagnetic markers fixed on the body surface are adhered to the body surface, and the markers are fixedly arranged on the surfaces of the at least two body surface electromagnetic markers.
Specifically, can paste two at least body surface electromagnetic marking on the body surface with medical sticky tape, then will have the marker setting of fixed position relation with every body surface electromagnetic marking and be in two at least body surface electromagnetic marking's surface, also can be on the basis of establishing the fixed position relation between body surface electromagnetic marking and the marker like this for body surface electromagnetic marking and marker move along with the body surface.
Optionally, the body surface electromagnetic markers and markers fixed to the body surface are mounted on an electromagnetic tracking base arranged on the body surface of the human body.
The electromagnetic tracking base can be respectively provided with at least one electromagnetic tracking identification position and at least three marker positions so as to respectively fix the body surface electromagnetic identification and the markers, and a fixed position relation is established between the body surface electromagnetic identification and the markers, so that the body surface electromagnetic identification and the markers can move along with the body surface on the basis of not influencing the tracking and identification of the electromagnetic tracking equipment on the body surface electromagnetic identification.
In the actual operation process, also can set up the sucking disc on the body surface for the electromagnetism is tracked the base and is fixed with the body surface, and this application embodiment does not do specifically to the mode of establishing fixed position relation between body surface electromagnetic marking and marker and does not injectd, as long as can satisfy body surface electromagnetic marking and marker can be fixed with the body surface, and do not influence the real-time tracking of electromagnetic tracking equipment to body surface electromagnetic marking discern can.
Having described the procedure of obtaining the conversion relationship between the three-dimensional coordinate system and the electromagnetic coordinate system in the foregoing, in order to finally obtain the conversion relationship between the ultrasonic coordinate system and the three-dimensional coordinate system, it is also necessary to determine the conversion relationship between the ultrasonic coordinate system and the electromagnetic coordinate system.
Optionally, the step of establishing a conversion relationship between an ultrasonic coordinate system and an electromagnetic coordinate system according to a position relationship between an electromagnetic identifier arranged on the ultrasonic probe and a real-time tracking of the electromagnetic identifier by an electromagnetic tracking device specifically includes:
obtaining a conversion relation between an ultrasonic coordinate system and an identification coordinate system owned by an electromagnetic identification fixed on the ultrasonic probe according to the position relation between the ultrasonic probe and the electromagnetic identification fixed on the ultrasonic probe;
according to the real-time tracking of the electromagnetic identification by the electromagnetic tracking equipment, the conversion relation between an identification coordinate system and an electromagnetic coordinate system is obtained;
and obtaining the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system according to the conversion relation between the ultrasonic coordinate system and the identification coordinate system and the conversion relation between the identification coordinate system and the electromagnetic coordinate system.
Because the probe electromagnetic mark is fixedly arranged on the ultrasonic probe, the conversion relation between the probe mark coordinate system and the ultrasonic coordinate system can be obtained through the fixed position relation between the probe electromagnetic mark and the ultrasonic probe, and further, the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system can be obtained by combining the conversion relation between the electromagnetic coordinate system and the probe mark coordinate system obtained by the real-time tracking of the probe electromagnetic mark by the electromagnetic tracking equipment.
In summary, the electromagnetic coordinate system is used as a conversion medium, and a conversion relation can be established between the ultrasonic coordinate system and the three-dimensional coordinate system according to the conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system and the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system.
S200: and unifying the ultrasonic image and the three-dimensional image to the same coordinate system according to the conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system to obtain the image formed by fusing the ultrasonic image and the three-dimensional image in real time.
In the implementation process, the ultrasound image and the three-dimensional image may be unified into an ultrasound coordinate system, may also be unified into a three-dimensional coordinate system, or may be unified into an electromagnetic coordinate system … … in this embodiment of the present application, which coordinate system the ultrasound image and the three-dimensional image are unified into is not specifically limited, as long as the ultrasound image and the three-dimensional image are unified into the same coordinate system, and an image obtained by fusing the ultrasound image and the three-dimensional image in real time as shown in fig. 5 can be obtained.
Further, according to the conversion relationship between the ultrasound coordinate system and the three-dimensional coordinate system, unifying the ultrasound image and the three-dimensional image in the same coordinate system, and obtaining the real-time fused image of the ultrasound image and the three-dimensional image specifically comprises:
unifying each pixel in the ultrasonic image and each pixel in the three-dimensional image to the same coordinate system according to the coordinate of each pixel in the ultrasonic image in the ultrasonic coordinate system, the coordinate of each pixel in the three-dimensional image in the three-dimensional coordinate system and the conversion relationship between the ultrasonic coordinate system and the three-dimensional coordinate system to obtain the real-time position relationship between the ultrasonic image and the three-dimensional image, and carrying out image fusion according to the real-time position relationship between the ultrasonic image and the three-dimensional image to obtain an image after the real-time fusion of the ultrasonic image and the three-dimensional image.
Optionally, each pixel in the ultrasound image has a corresponding coordinate in the ultrasound coordinate system, and in addition, the transformation relationship between the ultrasound coordinate system and the three-dimensional coordinate system is already obtained, so according to the transformation relationship between the ultrasound coordinate system and the three-dimensional coordinate system and the coordinate of each pixel in the ultrasound image in the ultrasound coordinate system, the coordinate of each pixel in the ultrasound image in the three-dimensional image can be obtained, and after the coordinate of each pixel in the ultrasound image in the three-dimensional image is obtained, an image obtained by fusing the ultrasound image and the three-dimensional image can be obtained, and further, the ultrasound image and the three-dimensional image can be displayed in a combined manner.
Similarly, each pixel in the three-dimensional image has a corresponding coordinate in the three-dimensional coordinate system, and the conversion relationship between the ultrasound coordinate system and the three-dimensional coordinate system is obtained, so that the coordinate of each pixel in the three-dimensional image in the ultrasound image can be obtained according to the conversion relationship between the ultrasound coordinate system and the three-dimensional coordinate system and the coordinate of each pixel in the three-dimensional image in the three-dimensional coordinate system, and after the coordinate of each pixel in the three-dimensional image in the ultrasound image is obtained, the image obtained by fusing the ultrasound image and the three-dimensional image can be obtained, and the ultrasound image and the three-dimensional image can be displayed in a combined manner.
It should be noted that the transformation relationship between the ultrasound coordinate system and the electromagnetic coordinate system and the transformation relationship between the three-dimensional coordinate system and the electromagnetic coordinate system are changed along with the movement of the body surface and the movement of the ultrasound probe, and therefore the transformation relationship between the ultrasound coordinate system and the three-dimensional coordinate system is also changed along with the movement of the body surface and the movement of the ultrasound probe. Furthermore, the fusion of the ultrasonic image and the three-dimensional image performed on the basis of the conversion relationship between the ultrasonic coordinate system and the three-dimensional coordinate system is also changed along with the movement of the body surface and the movement of the ultrasonic probe, so that the actual spatial position of each organ in the human body can be accurately obtained even when the human body breathes.
As shown in fig. 2, based on the same inventive concept, an embodiment of the present application further provides an image fusion apparatus, which includes a three-dimensional ultrasound transformation relation module 201, and a three-dimensional ultrasound image fusion module 202, wherein,
the three-dimensional ultrasound conversion relation module 201 is connected to the three-dimensional ultrasound image fusion module 202, and is configured to: establishing a conversion relation between an ultrasonic coordinate system and a three-dimensional coordinate system by using an electromagnetic tracking device, an electromagnetic identifier and a marker, and sending the conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system to the three-dimensional ultrasonic image fusion module 202;
the three-dimensional ultrasonic image fusion module 202 is connected to the three-dimensional ultrasonic transformation relation module 201, and is configured to: and unifying the ultrasonic image and the three-dimensional image to the same coordinate system according to the conversion relation between the received ultrasonic coordinate system and the three-dimensional coordinate system to obtain the image formed by fusing the ultrasonic image and the three-dimensional image in real time.
Optionally, the three-dimensional ultrasonic conversion relation module 201 includes a three-dimensional electromagnetic conversion relation module, an ultrasonic electromagnetic conversion relation module and a three-dimensional ultrasonic conversion relation module, wherein;
the three-dimensional electromagnetic conversion relation module is connected with the three-dimensional ultrasonic conversion relation module and is used for:
according to the position relation between a marker arranged on the body surface of a human body and an electromagnetic marker corresponding to the marker, real-time tracking of the electromagnetic marker by an electromagnetic tracking device and the position of the marker in a three-dimensional image, establishing a conversion relation between a three-dimensional coordinate system and an electromagnetic coordinate system, and sending the conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system to a three-dimensional ultrasonic conversion relation module;
the ultrasonic electromagnetic conversion relation module is connected with the three-dimensional ultrasonic conversion relation module and is used for:
establishing a conversion relation between an ultrasonic coordinate system and an electromagnetic coordinate system according to the position relation between an electromagnetic identifier arranged on the ultrasonic probe and the real-time tracking of the electromagnetic identifier by an electromagnetic tracking device, and sending the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system to a three-dimensional ultrasonic conversion relation module;
the three-dimensional ultrasonic conversion relation module is connected with the three-dimensional electromagnetic conversion relation module and the ultrasonic electromagnetic conversion relation module and is used for:
and establishing a conversion relation between the ultrasonic coordinate system and the three-dimensional coordinate system according to the received conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system and the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system.
Optionally, the three-dimensional electromagnetic conversion relationship module further includes an identification coordinate unit, an identification electromagnetic conversion relationship unit, an electromagnetic coordinate unit, and a three-dimensional electromagnetic conversion relationship unit, wherein:
the identification coordinate unit is connected with the electromagnetic coordinate unit and used for obtaining the coordinates of the marker in an identification coordinate system owned by the electromagnetic marker arranged on the body surface of the human body according to the position relation between the marker and the electromagnetic marker arranged on the body surface of the human body and sending the coordinates of the marker in the identification coordinate system to the electromagnetic coordinate unit;
the identification electromagnetic conversion relation unit is connected with the electromagnetic coordinate unit and used for obtaining the conversion relation between an identification coordinate system and an electromagnetic coordinate system according to the real-time tracking of the electromagnetic identification by the electromagnetic tracking equipment and sending the conversion relation between the identification coordinate system and the electromagnetic coordinate system to the electromagnetic coordinate unit;
the electromagnetic coordinate unit is connected with the identification coordinate unit and the identification electromagnetic conversion relation unit and is used for obtaining the coordinates of the marker in the electromagnetic coordinate system according to the received coordinates of the marker in the identification coordinate system and the conversion relation between the identification coordinate system and the electromagnetic coordinate system and sending the coordinates of the marker in the electromagnetic coordinate system to the three-dimensional electromagnetic conversion relation unit;
the three-dimensional electromagnetic conversion relation unit is connected with the electromagnetic coordinate unit and used for establishing the conversion relation between the three-dimensional coordinate system and the electromagnetic coordinate system according to the coordinates of the marker in the three-dimensional coordinate system obtained by the position of the marker in the three-dimensional image and the received coordinates of the marker in the electromagnetic coordinate system.
Optionally, the ultrasonic-electromagnetic conversion relation module includes: the ultrasonic identification conversion relation unit, the identification electromagnetic conversion relation unit and the ultrasonic electromagnetic conversion relation unit, wherein:
the ultrasonic identification conversion relation unit is connected with the ultrasonic electromagnetic conversion relation unit and is used for:
according to the position relation between the ultrasonic probe and the electromagnetic mark fixed on the ultrasonic probe, obtaining the conversion relation between an ultrasonic coordinate system and a mark coordinate system owned by the electromagnetic mark fixed on the ultrasonic probe, and sending the conversion relation between the ultrasonic coordinate system and the mark coordinate system to an ultrasonic electromagnetic conversion relation unit;
the identification electromagnetic conversion relation unit is connected with the ultrasonic electromagnetic conversion relation unit and is used for:
according to the real-time tracking of the electromagnetic tracking equipment on the electromagnetic identification, the conversion relation between the identification coordinate system and the electromagnetic coordinate system is obtained, and the conversion relation between the identification coordinate system and the electromagnetic coordinate system is sent to an ultrasonic electromagnetic conversion relation unit;
the ultrasonic electromagnetic conversion relation unit is connected with the ultrasonic identification conversion relation unit and the identification electromagnetic conversion relation unit, and is used for:
and obtaining the conversion relation between the ultrasonic coordinate system and the electromagnetic coordinate system according to the conversion relation between the received ultrasonic coordinate system and the identification coordinate system and the conversion relation between the identification coordinate system and the electromagnetic coordinate system.
Optionally, in the image fusion apparatus, the position relationship between the marker and the electromagnetic marker disposed on the body surface of the human body is specifically:
at least one of the at least two electromagnetic markers fixed on the body surface of the human body is fixed in position relation with at least three non-collinear markers, each marker has a fixed position relation with at most one electromagnetic marker, and each electromagnetic marker has a fixed position relation with at least one marker.
Optionally, in the image fusion apparatus, the position relationship between the marker and the electromagnetic marker disposed on the body surface of the human body is specifically:
in at least two electromagnetic marks fixed on the body surface of the human body, the position relation between each electromagnetic mark and at least three non-collinear markers is fixed, and each marker has a fixed position relation with at most one electromagnetic mark.
Optionally, the three-dimensional ultrasound image fusion module 202 is specifically configured to:
unifying each pixel in the ultrasonic image and each pixel in the three-dimensional image to the same coordinate system according to the coordinate of each pixel in the ultrasonic image in the ultrasonic coordinate system, the coordinate of each pixel in the three-dimensional image in the three-dimensional coordinate system and the conversion relationship between the ultrasonic coordinate system and the three-dimensional coordinate system to obtain the real-time position relationship between the ultrasonic image and the three-dimensional image, and carrying out image fusion according to the real-time position relationship between the ultrasonic image and the three-dimensional image to obtain an image after the real-time fusion of the ultrasonic image and the three-dimensional image.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative functional modules and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the above-described modules or units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and can implement the steps of the embodiments of the method when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable storage medium may contain content that is subject to appropriate increase or decrease according to the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable storage media does not include electrical carrier signals and telecommunication signals according to legislation and patent practice.
The above embodiments are only for illustrating the technical solutions of the present invention, and not for limiting the same. While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application. It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalents, the embodiments of the present application are intended to include such modifications and variations as well.