CN114171186A - X-ray machine simulation method, device, equipment and computer readable storage medium - Google Patents
X-ray machine simulation method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN114171186A CN114171186A CN202111476382.1A CN202111476382A CN114171186A CN 114171186 A CN114171186 A CN 114171186A CN 202111476382 A CN202111476382 A CN 202111476382A CN 114171186 A CN114171186 A CN 114171186A
- Authority
- CN
- China
- Prior art keywords
- ray machine
- optical
- rigid body
- ray
- machine model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/20—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for computer-aided diagnosis, e.g. based on medical expert systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- Public Health (AREA)
- Medical Informatics (AREA)
- Physics & Mathematics (AREA)
- Biomedical Technology (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Geometry (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- Pathology (AREA)
- Computer Hardware Design (AREA)
- Epidemiology (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Analysing Materials By The Use Of Radiation (AREA)
- Apparatus For Radiation Diagnosis (AREA)
Abstract
The present disclosure relates to an x-ray machine simulation method, apparatus, device and computer readable storage medium, the method comprising: acquiring the field angle information of an x-ray machine; optically positioning the first optical rigid body, and determining the pose information of the internal structure x-ray model; carrying out optical positioning on the second optical rigid body, and determining the optical center position of an x-ray machine model and the posture of the x-ray machine model; establishing an x-ray machine model based on the optical center position of the x-ray machine model and the posture of the x-ray machine model; and rendering the internal structure x-ray model shot by the x-ray machine model based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model in response to the shooting operation for triggering the x-ray machine model, so that the purposes of experiment, teaching and demonstration are achieved.
Description
Technical Field
The present disclosure relates to the field of simulation technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for simulating an x-ray machine.
Background
The x-ray machine is indispensable equipment in modern medical treatment, and powerful. Since x-rays can penetrate substances which cannot be penetrated by visible light, the density of each tissue part of a human body is different, and images formed after the x-rays penetrate are different. Therefore, the effect of distinguishing skeletal muscle or fat and the like can be achieved, and the function of accurate auxiliary diagnosis is achieved. Meanwhile, the ionization effect of the x-ray enables the x-ray machine to be applied to injury repair treatment.
With the rapid development of computer and microelectronic technologies, global digitization technologies, computer networks and communication technologies have had a wide and profound impact on the imaging field. A whole new array of imaging technologies enters the medical field, such as ultrasound, Computer Radiography (CR), Digital Radiography (DR), and so forth. The technologies not only change the traditional appearance of the X-ray film imaging, greatly enrich the field and the level of morphological diagnosis information, improve the morphological diagnosis level, but also realize the digitization of the diagnosis information.
The X-ray can assist medical diagnosis and treatment, but is a physical ray with radiation property which has great harm to human body, and the risk of experiment, teaching, demonstration and the like by using an X-ray machine is higher.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides an x-ray machine simulation method, apparatus, device, and computer-readable storage medium, in which an optical center position photographed by a virtual x-ray machine is used to render an internal structure x-ray model photographed by an x-ray machine model, so as to achieve the purposes of experiment, teaching, and demonstration.
In a first aspect, an embodiment of the present disclosure provides an x-ray machine simulation method, where a first optical rigid body is installed on a first real object in advance; pre-establishing an internal structure x-ray model corresponding to the first real object; mounting a second optical rigid body on a second real object in advance; the method comprises the following steps:
acquiring the field angle information of an x-ray machine;
optically positioning the first optical rigid body, and determining the pose information of the internal structure x-ray model;
carrying out optical positioning on the second optical rigid body, and determining the optical center position of an x-ray machine model and the posture of the x-ray machine model;
establishing an x-ray machine model based on the optical center position of the x-ray machine model and the posture of the x-ray machine model;
and in response to triggering the shooting operation of the x-ray machine model, rendering the internal structure x-ray model shot by the x-ray machine model based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model.
In a second aspect, an embodiment of the present disclosure provides an x-ray machine simulation apparatus, including:
the acquisition module is used for acquiring the field angle information of the x-ray machine;
the determining module is used for optically positioning the first optical rigid body and determining the pose information of the internal structure x-ray model;
the determination module is further to: carrying out optical positioning on the second optical rigid body, and determining the optical center position of an x-ray machine model and the posture of the x-ray machine model;
the establishing module is used for establishing an x-ray machine model based on the optical center position of the x-ray machine model and the posture of the x-ray machine model;
and the rendering module is used for responding to the shooting operation of triggering the x-ray machine model, and rendering the internal structure x-ray model shot by the x-ray machine model based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the first aspect.
In a fourth aspect, the disclosed embodiments provide a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method according to the first aspect.
In a fifth aspect, the disclosed embodiments also provide a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the x-ray machine simulation method as described above is implemented.
The x-ray machine simulation method, the x-ray machine simulation device, the x-ray machine simulation equipment and the computer readable storage medium provided by the embodiment of the disclosure perform optical positioning on the first optical rigid body by acquiring the field angle information of the x-ray machine, so as to obtain the pose information of the first optical rigid body. Further, based on a preset position relationship between the first optical rigid body and the internal structure of the first real object, based on the pose information of the first optical rigid body, the pose information of the internal structure x-ray model is determined, the second optical rigid body is optically positioned, and the position of the optical center of the x-ray machine model and the posture of the x-ray machine model are determined. Then, an x-ray machine model is established based on the optical center position of the x-ray machine model and the posture of the x-ray machine model, a shooting operation of the x-ray machine model is triggered in response, and the internal structure x-ray model shot by the x-ray machine model is rendered based on the field angle information, the posture information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model. Because an x-ray machine model is established, the optical center position shot by the x-ray machine can be virtualized, and the internal structure x-ray model shot by the x-ray machine model can also be rendered, so that the purposes of experiment, teaching and demonstration are achieved. In addition, the position and posture information of the internal structure x-ray model is determined based on the preset position and posture information of the first optical rigid body, the position and posture information is predetermined, so that the position and posture information is more accurate, and the purposes of experiment, teaching and demonstration can be better achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of an x-ray machine simulation method according to an embodiment of the disclosure;
fig. 2 is a flowchart of an x-ray machine simulation method according to another embodiment of the disclosure;
FIG. 3 is a flow chart of an x-ray machine simulation method according to another embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an x-ray machine simulation apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
The x-ray machine is indispensable equipment in modern medical treatment, and powerful. Since x-rays can penetrate substances which cannot be penetrated by visible light, the density of each tissue part of a human body is different, and images formed after the x-rays penetrate are different. Therefore, the effect of distinguishing skeletal muscle or fat and the like can be achieved, and the function of accurate auxiliary diagnosis is achieved. Meanwhile, the ionization effect of the x-ray enables the x-ray machine to be applied to injury repair treatment.
With the rapid development of computer and microelectronic technologies, global digitization technologies, computer networks and communication technologies have had a wide and profound impact on the imaging field. A number of entirely new imaging techniques are entering the medical field, such as ultrasound, digital radiography (CR), direct digital radiography (direrct radiogrpahy, DR), and so on. The technologies not only change the traditional appearance of the X-ray screen/film imaging, greatly enrich the field and the level of morphological diagnosis information, improve the morphological diagnosis level, and realize the digitization of the diagnosis information.
The X-ray can assist medical diagnosis and treatment, but is a physical ray with radiation property which has great harm to human body, and the risk of experiment, teaching, demonstration and the like by using an X-ray machine is higher. To solve this problem, embodiments of the present disclosure provide an x-ray machine simulation method, which is described below with reference to specific embodiments.
Fig. 1 is a flowchart of an x-ray machine simulation method according to an embodiment of the disclosure. As shown in fig. 1, the method comprises the following steps:
s101, acquiring the field angle information of the x-ray machine.
A user installs a first optical rigid body on a first real object in advance, the first optical rigid body comprises at least three optical reflection points, and an internal structure x-ray model corresponding to the first real object is established in advance. The first optical rigid body is rigidly connected with the internal structure of the first real object, so that deformation does not occur, and the relative position relationship between the first optical rigid body and the internal structure is fixed and unchanged. The user installs a second optical rigid body on a second real object in advance, wherein the second optical rigid body comprises at least three optical reflection points. The first real object is an object of prop, the second real object can be an x-ray machine, can also be a common camera (note that the camera is not an optical camera), and can also be other types of real objects. Then, the terminal acquires Field angle information (FoV) of the x-ray machine.
S102, optically positioning the first optical rigid body, and determining the pose information of the internal structure x-ray model.
The positions of the at least three optical reflection points of the first optical rigid body are acquired through a binocular camera, and the binocular camera sends the acquired positions of the at least three optical reflection points of the first optical rigid body to a terminal. And the terminal receives the positions of the at least three optical reflection points of the first optical rigid body, and further determines the pose information of the internal structure x-ray model based on the positions of the at least three optical reflection points of the first optical rigid body. The at least three optical reflection points can determine unique pose information, and the pose comprises position and posture, namely 6-degree-of-freedom information (x-axis, y-axis, z-axis, included angle with the x-axis, included angle with the y-axis, and included angle with the z-axis).
S103, optically positioning the second optical rigid body, and determining the optical center position and the posture of the x-ray machine model.
And acquiring the positions of the at least three optical reflection points of the second optical rigid body through a binocular camera, and transmitting the acquired positions of the at least three optical reflection points of the second optical rigid body to a terminal through the binocular camera. And the terminal receives the positions of the at least three optical reflection points of the second optical rigid body, and further determines the optical center position of the x-ray machine model and the posture of the x-ray machine model based on the positions of the at least three optical reflection points of the second optical rigid body.
S104, establishing the x-ray machine model based on the optical center position of the x-ray machine model and the posture of the x-ray machine model.
After the terminal determines the optical center position of the x-ray machine model and the posture of the x-ray machine model, the x-ray machine model is established based on the optical center position of the x-ray machine model and the posture of the x-ray machine model.
S105, responding to the shooting operation of triggering the x-ray machine model, and rendering the internal structure x-ray model shot by the x-ray machine model based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model.
For example, configuring a shooting control (shooting button) on the user interface or setting a shooting control on the x-ray machine model, and clicking the shooting control by the user is equivalent to triggering the shooting operation of the x-ray machine model. And the terminal responds to the operation of clicking the shooting control by the user, and renders the internal structure x-ray model shot by the x-ray machine model on a user interface based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the pose of the x-ray machine model.
According to the embodiment of the disclosure, the first optical rigid body is optically positioned by acquiring the field angle information of the x-ray machine, the pose information of the internal structure x-ray model is determined, the second optical rigid body is optically positioned, and the optical center position of the x-ray machine model and the posture of the x-ray machine model are determined. Further, an x-ray machine model is established based on the optical center position of the x-ray machine model and the posture of the x-ray machine model, a shooting operation of the x-ray machine model is triggered in response, and the internal structure x-ray model shot by the x-ray machine model is rendered based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model. Because an x-ray machine model is established, the optical center position shot by the x-ray machine can be virtualized, and the internal structure x-ray model shot by the x-ray machine model can also be rendered, so that the purposes of experiment, teaching and demonstration are achieved.
On the basis of the foregoing embodiment, optically positioning the first optical rigid body, and determining the pose information of the internal structure x-ray model includes: optically positioning the first optical rigid body to obtain pose information of the first optical rigid body; and determining the position and posture information of the internal structure x-ray model based on the position and posture information of the first optical rigid body and the preset position relationship between the first optical rigid body and the internal structure of the first real object.
The positions of the at least three optical reflection points of the first optical rigid body are acquired through a binocular camera, and the binocular camera sends the acquired positions of the at least three optical reflection points of the first optical rigid body to a terminal. And the terminal receives the positions of the at least three optical reflection points of the first optical rigid body, and further determines the pose information of the first optical rigid body based on the positions of the at least three optical reflection points of the first optical rigid body. Then, the terminal determines the position and posture information of the internal structure x-ray model based on the preset position relationship between the first optical rigid body and the internal structure of the first real object and the position and posture information of the first optical rigid body. Wherein the positional relationship is predetermined.
According to the embodiment of the disclosure, the first optical rigid body is optically positioned by acquiring the field angle information of the x-ray machine, so as to obtain the pose information of the first optical rigid body. Further, based on a preset position relationship between the first optical rigid body and the internal structure of the first real object, based on the pose information of the first optical rigid body, the pose information of the internal structure x-ray model is determined, the second optical rigid body is optically positioned, and the position of the optical center of the x-ray machine model and the posture of the x-ray machine model are determined. Then, an x-ray machine model is established based on the optical center position of the x-ray machine model and the posture of the x-ray machine model, a shooting operation of the x-ray machine model is triggered in response, and the internal structure x-ray model shot by the x-ray machine model is rendered based on the field angle information, the posture information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model. Because an x-ray machine model is established, the optical center position shot by the x-ray machine can be virtualized, and the internal structure x-ray model shot by the x-ray machine model can also be rendered, so that the purposes of experiment, teaching and demonstration are achieved. In addition, the position and posture information of the internal structure x-ray model is determined based on the preset position and posture information of the first optical rigid body, the position and posture information is predetermined, so that the position and posture information is more accurate, and the purposes of experiment, teaching and demonstration can be better achieved.
Fig. 2 is a flowchart of an x-ray machine simulation method according to another embodiment of the present disclosure, where the second entity is an x-ray machine, and as shown in fig. 2, the method includes the following steps:
s201, acquiring the field angle information of the x-ray machine.
Specifically, the implementation process and principle of S201 and S101 are consistent, and are not described herein again.
S202, optically positioning the first optical rigid body, and determining pose information of the internal structure x-ray model.
Specifically, the implementation process and principle of S202 and S102 are consistent, and are not described herein again.
And S203, carrying out optical positioning on the second optical rigid body to obtain the position and the posture of the second optical rigid body.
And acquiring the positions of the at least three optical reflection points of the second optical rigid body through a binocular camera, and transmitting the acquired positions of the at least three optical reflection points of the second optical rigid body to a terminal through the binocular camera. The terminal receives the positions of the at least three optical reflection points of the second optical rigid body, and further determines the position and the posture of the second optical rigid body based on the positions of the at least three optical reflection points of the second optical rigid body.
S204, shooting two x-ray images from different angles based on the x-ray machine, wherein the two x-ray images comprise the positioner.
The internal structure of the first real object comprises the positioner, the x-ray machine shoots the first real object from different angles, two x-ray images are shot, and the two x-ray images obtained through shooting comprise the positioner. The locator may be a two-sided locator.
S205, determining the position conversion relation between the second optical rigid body and the optical center of the X-ray machine based on the positions of the locators in the two X-ray graphs.
And determining the position conversion relationship by the positions of the positioners in the two x-ray images and the positions of the positioners included in the internal structure of the first real object. The first optical rigid body is mounted on the first real object, and the position of the first optical rigid body can be regarded as the position of the positioner included in the internal structure of the first real object. The positions of the at least three optical reflection points of the first optical rigid body are acquired through a binocular camera, and the binocular camera sends the acquired positions of the at least three optical reflection points of the first optical rigid body to a terminal. The terminal receives the positions of the at least three optical reflection points of the first optical rigid body, and further determines the position and the posture of the first optical rigid body based on the positions of the at least three optical reflection points of the first optical rigid body. Based on the position of the first optical rigid body and the positions of the locators in the two x-ray diagrams, a position conversion relationship between the positions of the locators in the two x-ray diagrams and the positions of the locators included in the internal structure of the first real object can be determined, and because the first real object and the x-ray machine are in the same three-dimensional coordinate system, a position conversion relationship between the optical centers of the second optical rigid body and the x-ray machine is determined. The position conversion relation is also a conversion matrix.
S206, based on a preset position conversion relation between the second optical rigid body and the optical center of the x-ray machine, converting the position of the second optical rigid body into the optical center position of the x-ray machine model.
And after the terminal determines the position conversion relation between the second optical rigid body and the optical center of the x-ray machine, the position of the second optical rigid body is used as an input point, and thus the optical center position of the x-ray machine model is calculated.
And S207, taking the posture of the second optical rigid body as the posture of the x-ray machine model.
And a second optical rigid body is arranged on the second real object, so that the posture of the second optical rigid body is taken as the posture of the x-ray machine model.
S208, establishing the x-ray machine model based on the optical center position of the x-ray machine model and the posture of the x-ray machine model.
Specifically, the implementation process and principle of S208 and S104 are consistent, and are not described herein again.
S209, responding to the shooting operation of triggering the x-ray machine model, and rendering the internal structure x-ray model shot by the x-ray machine model based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model.
Specifically, the implementation process and principle of S209 and S105 are consistent, and are not described herein again.
According to the embodiment of the disclosure, the first optical rigid body is optically positioned by acquiring the field angle information of an x-ray machine, the pose information of the internal structure x-ray model is determined, and the second optical rigid body is optically positioned to obtain the position and the posture of the second optical rigid body. Further, two x-ray graphs are shot from different angles based on the x-ray machine, the two x-ray graphs comprise the positioner, the position conversion relation between the second optical rigid body and the optical center of the x-ray machine is determined based on the positions of the positioner in the two x-ray graphs, and the position of the second optical rigid body is converted into the optical center position of the x-ray machine model based on the preset position conversion relation between the second optical rigid body and the optical center of the x-ray machine. Then, the posture of the second optical rigid body is used as the posture of the x-ray machine model, the x-ray machine model is established based on the optical center position of the x-ray machine model and the posture of the x-ray machine model, a shooting operation of the x-ray machine model is triggered, and the internal structure x-ray model shot by the x-ray machine model is rendered based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model. Because an x-ray machine model is established, the optical center position shot by the x-ray machine can be virtualized, and the internal structure x-ray model shot by the x-ray machine model can also be rendered, so that the purposes of experiment, teaching and demonstration are achieved. In addition, the position and posture information of the internal structure x-ray model is determined based on the preset position and posture information of the first optical rigid body, the position and posture information is predetermined, so that the position and posture information is more accurate, and the purposes of experiment, teaching and demonstration can be better achieved. The second entity of this embodiment is an x-ray machine, but only two x-ray films need to be taken for building and registering the x-ray machine model. The shooting frequency is reduced, and the harm of the X-ray to the human body in the experiment, teaching and demonstration can be reduced.
Fig. 3 is a flowchart of an x-ray machine simulation method according to another embodiment of the disclosure, where the second physical object is a non-x-ray machine, as shown in fig. 3, the method includes the following steps:
s301, acquiring the field angle information of the x-ray machine.
Specifically, the implementation process and principle of S301 and S101 are consistent, and are not described herein again.
S302, optically positioning the first optical rigid body, and determining the pose information of the internal structure x-ray model.
Specifically, the implementation process and principle of S302 and S102 are consistent, and are not described herein again.
And S303, carrying out optical positioning on the second optical rigid body to obtain the position and the posture of the second optical rigid body.
Specifically, the implementation process and principle of S303 and S203 are consistent, and are not described herein again.
S304, taking the position of the second optical rigid body as the optical center position of the x-ray machine model.
And acquiring the positions of the at least three optical reflection points of the second optical rigid body through a binocular camera, and transmitting the acquired positions of the at least three optical reflection points of the second optical rigid body to a terminal through the binocular camera. And the terminal receives the positions of the at least three optical reflection points of the second optical rigid body, and further determines the optical center position of the x-ray machine model based on the positions of the at least three optical reflection points of the second optical rigid body. And the terminal takes the position of the second optical rigid body as the optical center position of the x-ray machine model.
S305, taking the posture of the second optical rigid body as the posture of the x-ray machine model.
Specifically, the implementation process and principle of S305 and S207 are consistent, and are not described herein again.
S306, establishing the x-ray machine model based on the optical center position of the x-ray machine model and the posture of the x-ray machine model.
Specifically, the implementation process and principle of S306 and S104 are consistent, and are not described herein again.
S307, responding to the shooting operation of triggering the x-ray machine model, and rendering the internal structure x-ray model shot by the x-ray machine model based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model.
Specifically, the implementation process and principle of S307 and S105 are consistent, and are not described herein again.
According to the embodiment of the disclosure, the first optical rigid body is optically positioned by acquiring the field angle information of an x-ray machine, the pose information of the internal structure x-ray model is determined, and the second optical rigid body is optically positioned to obtain the position and the posture of the second optical rigid body. Further, the position of the second optical rigid body is used as the optical center position of the x-ray machine model, the posture of the second optical rigid body is used as the posture of the x-ray machine model, and the x-ray machine model is established based on the optical center position of the x-ray machine model and the posture of the x-ray machine model. And then, in response to the shooting operation of triggering the x-ray machine model, rendering the internal structure x-ray model shot by the x-ray machine model based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model. Because an x-ray machine model is established, the optical center position shot by the x-ray machine can be virtualized, and the internal structure x-ray model shot by the x-ray machine model can also be rendered, so that the purposes of experiment, teaching and demonstration are achieved. In addition, the position and posture information of the internal structure x-ray model is determined based on the preset position and posture information of the first optical rigid body, the position and posture information is predetermined, so that the position and posture information is more accurate, and the purposes of experiment, teaching and demonstration can be better achieved. The second entity of this embodiment is a non-x-ray machine, and can directly establish an x-ray machine model. An x-ray machine is not needed, and the harm of the x-ray to a human body in the process of experiment, teaching and demonstration is avoided.
Fig. 4 is a schematic structural diagram of an x-ray machine simulation apparatus according to an embodiment of the present disclosure. The x-ray analog device may be the terminal as described in the above embodiments, or the x-ray analog device may be a component or assembly in the terminal. The x-ray machine simulation apparatus provided in the embodiment of the present disclosure can execute the processing procedure provided in the embodiment of the x-ray machine simulation method, as shown in fig. 4, the x-ray machine simulation apparatus 40 includes: an acquisition module 41, a determination module 42, an establishment module 43, and a rendering module 44; the obtaining module 41 is configured to obtain field angle information of the x-ray machine; the determining module 42 is configured to optically locate the first optical rigid body, and determine pose information of the internal structure x-ray model; the determination module 42 is further configured to: carrying out optical positioning on the second optical rigid body, and determining the optical center position of an x-ray machine model and the posture of the x-ray machine model; the establishing module 43 is configured to establish an x-ray machine model based on the optical center position of the x-ray machine model and the posture of the x-ray machine model; the rendering module 44 is configured to render the x-ray model of the internal structure captured by the x-ray machine model based on the field angle information, the pose information of the x-ray machine model of the internal structure, the optical center position of the x-ray machine model, and the pose of the x-ray machine model in response to triggering the capturing operation of the x-ray machine model.
Optionally, the determining module 42 includes a positioning unit 421 and a determining unit 422; the positioning unit 421 is configured to perform optical positioning on the first optical rigid body to obtain pose information of the first optical rigid body; the determining unit 422 is configured to determine pose information of the x-ray model of the internal structure based on the pose information of the first optical rigid body based on a preset position relationship between the first optical rigid body and the internal structure of the first real object.
Optionally, when the determining module 42 performs optical positioning on the second optical rigid body and determines the optical center position of the x-ray machine model and the posture of the x-ray machine model, it is specifically configured to: optically positioning the second optical rigid body to obtain the position and the posture of the second optical rigid body; converting the position of the second optical rigid body into the optical center position of the x-ray machine model based on a preset position conversion relation between the second optical rigid body and the optical center of the x-ray machine; and taking the posture of the second optical rigid body as the posture of the x-ray machine model.
Optionally, a locator is installed in the internal structure of the first real object; the preset position conversion relation between the second optical rigid body and the optical center of the x-ray machine is determined by the following method: shooting two x-ray images from different angles based on the x-ray machine, wherein the two x-ray images comprise the positioner; and determining the position conversion relation between the second optical rigid body and the optical center of the X-ray machine based on the positions of the locators in the two X-ray graphs.
Optionally, the determining module 42 is further configured to: optically positioning the second optical rigid body to obtain the position and the posture of the second optical rigid body; taking the position of the second optical rigid body as the optical center position of the x-ray machine model; and taking the posture of the second optical rigid body as the posture of the x-ray machine model.
The x-ray machine simulation apparatus shown in fig. 4 can be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device may be a terminal as described in the above embodiments. The electronic device provided in the embodiment of the present disclosure may execute the processing procedure provided in the embodiment of the x-ray machine simulation method, as shown in fig. 5, the electronic device 50 includes: memory 51, processor 52, computer programs and communication interface 53; wherein a computer program is stored in the memory 51 and configured to execute the x-ray machine simulation method as described above by the processor 52.
In addition, the embodiment of the disclosure also provides a computer readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the x-ray machine simulation method described in the foregoing embodiment.
Furthermore, the embodiment of the present disclosure also provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the x-ray machine simulation method as described above is implemented.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. An x-ray machine simulation method is characterized in that a first optical rigid body is installed on a first real object in advance; pre-establishing an internal structure x-ray model corresponding to the first real object; mounting a second optical rigid body on a second real object in advance; the method comprises the following steps:
acquiring the field angle information of an x-ray machine;
optically positioning the first optical rigid body, and determining the pose information of the internal structure x-ray model;
carrying out optical positioning on the second optical rigid body, and determining the optical center position of an x-ray machine model and the posture of the x-ray machine model;
establishing an x-ray machine model based on the optical center position of the x-ray machine model and the posture of the x-ray machine model;
and in response to triggering the shooting operation of the x-ray machine model, rendering the internal structure x-ray model shot by the x-ray machine model based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model.
2. The method of claim 1, wherein optically locating the first optical rigid body, determining pose information for the inner structure x-ray model comprises:
optically positioning the first optical rigid body to obtain pose information of the first optical rigid body;
and determining the position and posture information of the internal structure x-ray model based on the position and posture information of the first optical rigid body and the preset position relationship between the first optical rigid body and the internal structure of the first real object.
3. The method of claim 1, wherein the second entity is an x-ray machine;
the optically positioning the second optical rigid body and determining the optical center position and the posture of the x-ray machine model include:
optically positioning the second optical rigid body to obtain the position and the posture of the second optical rigid body;
converting the position of the second optical rigid body into the optical center position of the x-ray machine model based on a preset position conversion relation between the second optical rigid body and the optical center of the x-ray machine;
and taking the posture of the second optical rigid body as the posture of the x-ray machine model.
4. The method of claim 3, wherein a locator is mounted in the internal structure of the first physical object; the preset position conversion relation between the second optical rigid body and the optical center of the x-ray machine is determined by the following method:
shooting two x-ray images from different angles based on the x-ray machine, wherein the two x-ray images comprise the positioner;
and determining the position conversion relation between the second optical rigid body and the optical center of the X-ray machine based on the positions of the locators in the two X-ray graphs.
5. The method of claim 1, wherein the second physical object is not an x-ray machine;
the optically positioning the second optical rigid body and determining the optical center position and the posture of the x-ray machine model include:
optically positioning the second optical rigid body to obtain the position and the posture of the second optical rigid body;
taking the position of the second optical rigid body as the optical center position of the x-ray machine model;
and taking the posture of the second optical rigid body as the posture of the x-ray machine model.
6. An x-ray machine simulation apparatus, the apparatus comprising:
the acquisition module is used for acquiring the field angle information of the x-ray machine;
the determining module is used for optically positioning the first optical rigid body and determining the pose information of the internal structure x-ray model;
the determination module is further to: carrying out optical positioning on the second optical rigid body, and determining the optical center position of an x-ray machine model and the posture of the x-ray machine model;
the establishing module is used for establishing an x-ray machine model based on the optical center position of the x-ray machine model and the posture of the x-ray machine model;
and the rendering module is used for responding to the shooting operation of triggering the x-ray machine model, and rendering the internal structure x-ray model shot by the x-ray machine model based on the field angle information, the pose information of the internal structure x-ray model, the optical center position of the x-ray machine model and the posture of the x-ray machine model.
7. The apparatus of claim 6, wherein the determination module comprises a location unit and a determination unit;
the positioning unit is used for optically positioning the first optical rigid body to obtain pose information of the first optical rigid body;
and the determining unit is used for determining the position and orientation information of the internal structure x-ray model based on the position and orientation information of the first optical rigid body based on the preset position relationship between the first optical rigid body and the internal structure of the first real object.
8. The apparatus of claim 6, wherein the determining module, when optically positioning the second optical rigid body and determining the optical center position and the pose of the x-ray machine model, is specifically configured to:
optically positioning the second optical rigid body to obtain the position and the posture of the second optical rigid body;
converting the position of the second optical rigid body into the optical center position of the x-ray machine model based on a preset position conversion relation between the second optical rigid body and the optical center of the x-ray machine;
and taking the posture of the second optical rigid body as the posture of the x-ray machine model.
9. An electronic device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111476382.1A CN114171186B (en) | 2021-12-06 | 2021-12-06 | X-ray machine simulation method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111476382.1A CN114171186B (en) | 2021-12-06 | 2021-12-06 | X-ray machine simulation method, device, equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114171186A true CN114171186A (en) | 2022-03-11 |
CN114171186B CN114171186B (en) | 2022-08-05 |
Family
ID=80483318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111476382.1A Active CN114171186B (en) | 2021-12-06 | 2021-12-06 | X-ray machine simulation method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114171186B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009199607A (en) * | 2009-04-18 | 2009-09-03 | Ge Medical Systems Global Technology Co Llc | Operation simulation method, system, program, and storage medium of medical image diagnostic device |
CN110765620A (en) * | 2019-10-28 | 2020-02-07 | 上海科梁信息工程股份有限公司 | Aircraft visual simulation method, system, server and storage medium |
CN112084458A (en) * | 2020-08-07 | 2020-12-15 | 深圳市瑞立视多媒体科技有限公司 | Rigid body posture tracking method and device, equipment and storage medium thereof |
CN112199846A (en) * | 2020-10-14 | 2021-01-08 | 广东珞珈睡眠科技有限公司 | System for analyzing and customizing mattress based on three-dimensional human body reconstruction technology |
CN112472297A (en) * | 2020-11-26 | 2021-03-12 | 微创(上海)医疗机器人有限公司 | Pose monitoring system, pose monitoring method, surgical robot system and storage medium |
CN113125114A (en) * | 2020-01-16 | 2021-07-16 | 舜宇光学(浙江)研究院有限公司 | Detection method of near-eye display optical system, system and platform thereof, and electronic equipment |
-
2021
- 2021-12-06 CN CN202111476382.1A patent/CN114171186B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009199607A (en) * | 2009-04-18 | 2009-09-03 | Ge Medical Systems Global Technology Co Llc | Operation simulation method, system, program, and storage medium of medical image diagnostic device |
CN110765620A (en) * | 2019-10-28 | 2020-02-07 | 上海科梁信息工程股份有限公司 | Aircraft visual simulation method, system, server and storage medium |
CN113125114A (en) * | 2020-01-16 | 2021-07-16 | 舜宇光学(浙江)研究院有限公司 | Detection method of near-eye display optical system, system and platform thereof, and electronic equipment |
CN112084458A (en) * | 2020-08-07 | 2020-12-15 | 深圳市瑞立视多媒体科技有限公司 | Rigid body posture tracking method and device, equipment and storage medium thereof |
CN112199846A (en) * | 2020-10-14 | 2021-01-08 | 广东珞珈睡眠科技有限公司 | System for analyzing and customizing mattress based on three-dimensional human body reconstruction technology |
CN112472297A (en) * | 2020-11-26 | 2021-03-12 | 微创(上海)医疗机器人有限公司 | Pose monitoring system, pose monitoring method, surgical robot system and storage medium |
Non-Patent Citations (3)
Title |
---|
LI Y S: "Phase decomposition and morphology characteristic in thermal aging Fe–Cr alloys under applied strain: A phase-field simulation", 《JOURNAL OF NUCLEAR MATERIALS》 * |
张慧智等: "基于激光视觉技术的运动目标位姿测量与误差分析", 《激光杂志》 * |
郑富强: "放射治疗模拟技术的发展", 《医疗设备信息》 * |
Also Published As
Publication number | Publication date |
---|---|
CN114171186B (en) | 2022-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108765498B (en) | Monocular vision tracking, device and storage medium | |
US11025889B2 (en) | Systems and methods for determining three dimensional measurements in telemedicine application | |
CN104574267B (en) | Bootstrap technique and information processing equipment | |
CN107261339B (en) | Method and device for generating mammary gland locating membrane | |
CN107123137A (en) | Medical image processing method and equipment | |
CN106456100A (en) | Method and system for configuring an X-ray imaging system | |
CN112346572A (en) | Method, system and electronic device for realizing virtual-real fusion | |
CN110866977A (en) | Augmented reality processing method, device and system, storage medium and electronic equipment | |
CN107133946A (en) | Medical image processing method, device and equipment | |
US7377650B2 (en) | Projection of synthetic information | |
CN109247068A (en) | Method and apparatus for rolling shutter compensation | |
CN110807814A (en) | Camera pose calculation method, device, equipment and storage medium | |
CN110909580A (en) | Data processing method and device, electronic equipment and storage medium | |
CN110910506B (en) | Three-dimensional reconstruction method and device based on normal detection, detection device and system | |
CN112171666A (en) | Pose calibration method and device for visual robot, visual robot and medium | |
WO2016124554A1 (en) | Object localization in projective x-ray images by geometric considerations | |
WO2021100513A1 (en) | Radiation imaging system, radiation imaging method, image processing device, and program | |
CN112043359A (en) | Mammary gland puncture method, device, equipment and storage medium | |
WO2018167263A1 (en) | Determining a guidance signal and a system for providing a guidance for an ultrasonic handheld transducer | |
CN112669392A (en) | Map positioning method and system applied to indoor video monitoring system | |
CN111279393A (en) | Camera calibration method, device, equipment and storage medium | |
CN111000576A (en) | Image display method, device, equipment and storage medium of X-ray imaging system | |
CN114171186B (en) | X-ray machine simulation method, device, equipment and computer readable storage medium | |
CN113538590B (en) | Calibration method and device of zoom camera, terminal equipment and storage medium | |
CN111345886A (en) | Magnetic resonance image and ultrasonic transducer coordinate system conversion method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |