Real-time roaming method and system of virtual endoscope and related products
Through the collaborative work of the browser and server of the virtual endoscope system, users can adjust motion parameters and viewing angles in the virtual endoscope system, which solves the problem in the existing technology that the virtual endoscope cannot roam within the organ lumen. Real-time roaming and convenient use are achieved.
Patent Information
- Application Number
- CN202410744637.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-03
AI Technical Summary
The existing virtual endoscope system cannot realize real-time roaming and viewing angle adjustment within the lumen of the organ, and requires local installation, which limits its convenience and flexibility of use.
A real-time roaming method and system for virtual endoscopes is designed. The three-dimensional model of the target organ is displayed through the browser. The user adjusts the motion parameters of the virtual endoscope and sends them to the server. The server calculates the motion path and returns it. The browser Determine the target position according to the path to realize real-time roaming of the virtual endoscope in the lumen.
It realizes real-time roaming and viewing angle adjustment of the virtual endoscope in the lumen, supports direct web access and on-demand access, and improves user experience and diagnostic assistance performance.
Smart Images

Figure CN118587393A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of virtual endoscopes, and in particular to a real-time roaming method and system for a virtual endoscope and related products. Background Art
[0002] When examining a patient, a biopsy is usually used to examine the patient's organs with lumens, so that medical personnel can judge the patient's condition based on the biopsy results. However, the biopsy method will bring a poor examination experience to the patient. Therefore, it is proposed in the related art to implement the examination of the patient based on a virtual endoscope system, that is, to avoid the use of the biopsy method. However, the virtual endoscope system in the related art is mostly a local client, which needs to be installed locally before it can be used. That is, the virtual endoscope system cannot be used at any time, and when using the virtual endoscope, it cannot roam in real time in the lumen of the organ (such as the lung lumen). Therefore, how to enable the virtual endoscope to achieve real-time roaming in the lumen is a key issue that technicians in this field need to pay attention to. Summary of the invention
[0003] Based on the above problems, the present application provides a real-time roaming method, system and related products of a virtual endoscope, so as to enable the virtual endoscope to achieve real-time roaming in the lumen.
[0004] The embodiments of the present application disclose the following technical solutions:
[0005] In a first aspect, the present application provides a real-time roaming method of a virtual endoscope, which is applied to a virtual endoscope system. The virtual endoscope system includes a browser side and a server side. The real-time roaming method includes:
[0006] In response to a receiving operation for a target medical image set corresponding to a target organ, the browser terminal displays a three-dimensional organ model corresponding to the target organ, wherein the target organ includes an organ having a lumen;
[0007] In response to the user's adjustment operation on the virtual endoscope in the three-dimensional organ model, the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model, and sends the motion parameters to the server;
[0008] The server side calculates and processes the motion parameters to obtain a motion path corresponding to the virtual endoscope, and sends the motion path to the browser side;
[0009] The browser determines the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the motion path, so as to realize the real-time roaming of the virtual endoscope.
[0010] Optionally, before the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model in response to the user's adjustment operation on the virtual endoscope in the three-dimensional organ model, the real-time roaming method further includes:
[0011] In response to a user's operation of placing a virtual endoscope in a lumen of the three-dimensional organ model, the browser determines an initial position of the virtual endoscope in the lumen of the three-dimensional organ model;
[0012] The browser calculates the initial position to obtain initial coordinates corresponding to the initial position in the lumen of the three-dimensional organ model and an initial lens pointing vector corresponding to the virtual endoscope;
[0013] In response to the user's adjustment operation of the virtual endoscope in the three-dimensional organ model, the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model, and the real-time roaming method includes:
[0014] In response to a scrolling operation of the user on the virtual endoscope based on the initial position, the browser determines a current lens pointing vector corresponding to the virtual endoscope;
[0015] The browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model according to the initial coordinates, the initial lens pointing vector and the current lens pointing vector.
[0016] Optionally, before the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model according to the initial coordinates, the initial lens pointing vector and the current lens pointing vector, the real-time roaming method further includes:
[0017] The browser determines, according to the target organ, an organ segmentation threshold corresponding to the target organ;
[0018] The browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model according to the initial coordinates, the initial lens pointing vector and the current lens pointing vector. The real-time roaming method includes:
[0019] The browser side calculates the initial lens pointing vector and the current lens pointing vector to obtain an image extraction variable;
[0020] The browser uses the initial coordinates, the organ segmentation threshold and the image extraction variable as movement parameters of the virtual endoscope in the lumen of the three-dimensional organ model.
[0021] Optionally, the server side calculates and processes the motion parameters to obtain a motion path corresponding to the virtual endoscope, and the real-time roaming method includes:
[0022] The server determines, according to the initial coordinates and the image extraction variable in the motion parameter, a data range of the medical image to be extracted in the Z-axis direction for the scrolling operation of the virtual endoscope in the three-dimensional organ model, wherein if the image extraction variable is 1, the data range is a range in which the data in the Z-axis direction becomes larger, and if the image extraction variable is 0, the data range is a range in which the data in the Z-axis direction becomes smaller;
[0023] The server determines, according to the data range of the medical images to be extracted, a set of medical images to be extracted corresponding to the scrolling operation of the virtual endoscope in the three-dimensional organ model;
[0024] The server performs segmentation processing on the medical image set to be extracted to obtain a motion path corresponding to the virtual endoscope.
[0025] Optionally, before the server performs segmentation processing on the medical image set to be extracted to obtain the motion path corresponding to the virtual endoscope, the real-time roaming method further includes:
[0026] The server side obtains a path extraction function, where the path extraction function is used to extract a motion path corresponding to the virtual endoscope;
[0027] The server performs segmentation processing on the medical image set to be extracted to obtain a motion path corresponding to the virtual endoscope, and the real-time roaming method includes:
[0028] The server segmentates the medical image set to be extracted based on the organ segmentation threshold in the motion parameter to obtain a target organ model corresponding to the target organ;
[0029] The server side uses the path extraction function to perform path extraction on the target organ model to obtain the motion path corresponding to the virtual endoscope.
[0030] Optionally, the browser determines the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the motion path, and the real-time roaming method includes:
[0031] The browser side obtains point coordinates corresponding to a plurality of path points in the motion path according to the motion path;
[0032] The browser converts the point coordinates corresponding to the plurality of path points to obtain the world coordinates corresponding to the plurality of path points in the three-dimensional organ model;
[0033] The browser compares the world coordinates corresponding to the multiple path points according to the initial world coordinates in the motion parameters, and determines the optimal world coordinates among the multiple world coordinates;
[0034] The browser determines the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the optimal world coordinates.
[0035] Optionally, the browser compares the world coordinates corresponding to the multiple path points according to the initial world coordinates in the motion parameters to determine the optimal world coordinates among the multiple world coordinates. The real-time roaming method includes:
[0036] The browser side cross-calculates the initial world coordinates in the motion parameters with the multiple world coordinates one by one to obtain coordinate vectors corresponding to the multiple world coordinates respectively;
[0037] The browser performs selection processing on the current lens pointing vector and multiple coordinate vectors to obtain a candidate vector set from the multiple coordinate vectors;
[0038] The browser determines an optimal vector in the candidate vector set according to the current lens pointing vector, and determines an optimal world coordinate among multiple world coordinates according to the optimal vector.
[0039] A second aspect of the present application provides a virtual endoscope system, the virtual endoscope system comprising a browser side and a server side:
[0040] The browser is used to display a three-dimensional organ model corresponding to a target organ in response to a receiving operation of a target medical image set corresponding to the target organ, wherein the target organ includes an organ with a lumen;
[0041] The browser is used to determine the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model in response to the user's adjustment operation on the virtual endoscope in the three-dimensional organ model, and send the motion parameters to the server;
[0042] The server is used to calculate and process the motion parameters, obtain the motion path corresponding to the virtual endoscope, and send the motion path to the browser;
[0043] The browser end is used to determine the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the motion path, so as to realize the real-time roaming of the virtual endoscope.
[0044] Optionally, the browser is also used to:
[0045] In response to a user's placement operation of the virtual endoscope in the lumen of the three-dimensional organ model, determining an initial position of the virtual endoscope in the lumen of the three-dimensional organ model;
[0046] Calculating the initial position to obtain initial coordinates corresponding to the initial position in the lumen of the three-dimensional organ model and an initial lens pointing vector corresponding to the virtual endoscope;
[0047] The browser is specifically used for:
[0048] In response to a scrolling operation of the user on the virtual endoscope based on the initial position, determining a current lens pointing vector corresponding to the virtual endoscope;
[0049] The motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model are determined according to the initial coordinates, the initial lens pointing vector and the current lens pointing vector.
[0050] Optionally, the browser is also used for:
[0051] According to the target organ, determining an organ segmentation threshold corresponding to the target organ;
[0052] The browser end is specifically used for:
[0053] Calculating the initial lens pointing vector and the current lens pointing vector to obtain an image extraction variable;
[0054] The initial coordinates, the organ segmentation threshold and the image extraction variable are used as motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model.
[0055] Optionally, the server is specifically used for:
[0056] Determine, according to the initial coordinates and the image extraction variable in the motion parameter, a data range of the medical image to be extracted in the Z-axis direction for the scrolling operation of the virtual endoscope in the three-dimensional organ model, wherein if the image extraction variable is 1, the data range is a range in which the data in the Z-axis direction becomes larger, and if the image extraction variable is 0, the data range is a range in which the data in the Z-axis direction becomes smaller;
[0057] Determining a set of medical images to be extracted corresponding to the scrolling operation of the virtual endoscope in the three-dimensional organ model according to the data range of the medical images to be extracted;
[0058] The medical image set to be extracted is segmented to obtain a motion path corresponding to the virtual endoscope.
[0059] Optionally, the server is further used for:
[0060] Acquire a path extraction function, where the path extraction function is used to extract a motion path corresponding to the virtual endoscope;
[0061] The server is specifically used for:
[0062] Segmenting the medical image set to be extracted based on the organ segmentation threshold in the motion parameter to obtain a target organ model corresponding to the target organ;
[0063] The path extraction function is used to extract the path of the target organ model to obtain the motion path corresponding to the virtual endoscope.
[0064] Optionally, the browser side is specifically used for:
[0065] According to the motion path, obtaining point coordinates corresponding to a plurality of path points in the motion path respectively;
[0066] Converting the point coordinates corresponding to the plurality of path points to obtain the world coordinates corresponding to the plurality of path points in the three-dimensional organ model;
[0067] According to the initial world coordinates in the motion parameters, the world coordinates corresponding to the multiple path points are compared to determine the optimal world coordinates among the multiple world coordinates;
[0068] According to the optimal world coordinates, a target position of the virtual endoscope in the lumen of the three-dimensional organ model is determined.
[0069] Optionally, the browser side is specifically used for:
[0070] Cross-calculate the initial world coordinates in the motion parameters with the multiple world coordinates one by one to obtain coordinate vectors corresponding to the multiple world coordinates respectively;
[0071] Selecting and processing the current lens pointing vector and a plurality of coordinate vectors to obtain a candidate vector set from the plurality of coordinate vectors;
[0072] An optimal vector in the candidate vector set is determined according to the current lens pointing vector, and an optimal world coordinate in a plurality of world coordinates is determined according to the optimal vector.
[0073] A third aspect of the present application provides a computer device. The identification device comprises:
[0074] a memory having a computer program stored thereon;
[0075] A processor is used to execute the computer program in the memory to implement the steps of the real-time roaming method of virtual endoscope provided in the first aspect.
[0076] In a fourth aspect, the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the real-time roaming method of a virtual endoscope provided in the first aspect are implemented.
[0077] Compared with the prior art, this application has the following beneficial effects:
[0078] In the present application, it can be applied to a virtual endoscope system, wherein the virtual endoscope system includes a browser end and a server end. Specifically, the present application can first respond to the receiving operation of the target medical image set corresponding to the target organ, and the browser end can display the three-dimensional organ model corresponding to the target organ, and respond to the user's adjustment operation of the virtual endoscope in the three-dimensional organ model, and the browser end can determine the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model, and send the motion parameters to the server end. After that, the server end is used to calculate and process the motion parameters, obtain the motion path corresponding to the virtual endoscope, and send the motion path to the browser end. Finally, the browser end is used to determine the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the motion path, so as to realize the real-time roaming of the virtual endoscope.
[0079] It can be seen that the present application can determine the three-dimensional organ model corresponding to the target organ that needs to be roamed in real time based on the user operation on the browser side, and determine the motion parameters of the virtual endoscope in the three-dimensional organ model on the browser side. After that, the server side determines the motion path based on the motion parameters, and finally the browser side can determine the target position of the virtual endoscope in the lumen based on the motion path determined by the server side. In this way, in the present application, the browser side can support direct access to the web page, so that it can be used as needed, and the server side can support the calculation of motion parameters, so that the virtual endoscope can realize real-time roaming in the lumen under the action of the browser side and the server side. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0081] Figure 1 A flowchart of a real-time roaming method of a virtual endoscope provided in an embodiment of the present application;
[0082] Figure 2 A flowchart of determining motion parameters in a real-time roaming method of a virtual endoscope provided in an embodiment of the present application;
[0083] Figure 3 A flowchart of obtaining a motion path in a real-time roaming method of a virtual endoscope provided in an embodiment of the present application;
[0084] Figure 4 A flow chart of determining a target position in a real-time roaming method of a virtual endoscope provided in an embodiment of the present application;
[0085] Figure 5 An interactive flow chart for implementing real-time roaming in a real-time roaming method of a virtual endoscope provided in an embodiment of the present application;
[0086] Figure 6 A schematic diagram of the structure of a virtual endoscope system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0087] As described above, when examining a patient, a biopsy is usually used to examine the patient's lumen organs so that medical personnel can judge the patient's condition based on the biopsy results. However, the biopsy method will bring a poor examination experience to the patient. Therefore, in the related technology, it is proposed to implement the examination of the patient based on a virtual endoscope system, that is, to avoid the biopsy method and implement the examination of the patient through computer processing.
[0088] However, most of the virtual endoscope systems in the related art are local clients. It is understandable that the virtual endoscope system needs to be installed locally before it can be used. That is, the virtual endoscope system cannot be used at any time, and when using the virtual endoscope, it cannot roam in the lumen of the organ (such as the lung lumen) in real time, and it cannot support the adjustment of the virtual endoscope angle in the lumen of the organ at any time. Therefore, how to enable the virtual endoscope to roam in real time in the lumen is a key issue that technicians in this field need to pay attention to.
[0089] In view of the above problems, a solution is provided in the embodiments of the present application, and a real-time roaming method, system and related products of a virtual endoscope are proposed, aiming to enable the virtual endoscope to realize real-time roaming in the lumen. The technical solution of the present application is applied to a virtual endoscope system, wherein the virtual endoscope system includes a browser side and a server side. Specifically, the present application can first display a three-dimensional organ model corresponding to the target organ that needs to be roamed in real time based on user operations on the browser side, and determine the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model on the browser side. After that, the server side can be used to calculate the motion path corresponding to the virtual endoscope based on the motion parameters, and finally the browser side can continue to determine the target position of the virtual endoscope in the lumen of the three-dimensional organ model based on the running path to realize real-time roaming of the virtual endoscope. Thus, in the present application, the browser side can support direct access and display of the three-dimensional organ model corresponding to the target organ through the web page, so that it can be used whenever needed. The server side can support the calculation of the motion parameters of the virtual endoscope, so that the browser side can determine the target position of the virtual endoscope in the three-dimensional organ model, thereby realizing real-time roaming of the virtual endoscope in the lumen (such as the lung lumen) under the action of the browser side and the server side.
[0090] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0091] Next, the technical terms that may appear in this application are explained.
[0092] Virtual endoscopy: Virtual endoscopy is the application of virtual reality technology in medicine. Based on medical images, it integrates image processing, computer graphics, scientific computing visualization, virtual reality technology and other technologies to simulate traditional optical endoscopy.
[0093] See also Figure 1 , which is a flow chart of a real-time roaming method of a virtual endoscope provided in an embodiment of the present application.
[0094] like Figure 1 The real-time roaming method of the virtual endoscope shown includes steps S101 to S104:
[0095] First of all, it should be noted that the real-time roaming method of virtual endoscope proposed in this application is applied to a virtual endoscope system, which includes a browser side and a server side. Next, the real-time roaming method of virtual endoscope is introduced in detail in combination with steps S101 to S104.
[0096] S101: In response to a receiving operation for a target medical image set corresponding to a target organ, the browser terminal displays a three-dimensional organ model corresponding to the target organ.
[0097] In this step, the target organ includes an organ with a lumen, wherein the target organ may be a lung organ, which is not specifically limited here, and the technical solution of the present application can realize real-time roaming in the lumen of the lung organ. And the target medical image set corresponding to the target organ can be understood as a set of CT medical images corresponding to the target organ. At this time, when the browser receives the target medical image set corresponding to the target organ uploaded by the user, a three-dimensional organ model corresponding to the target organ can be constructed based on the target medical image set corresponding to the target organ, and the three-dimensional organ model corresponding to the target organ is displayed on the browser, so that the user can subsequently place a virtual endoscope in the three-dimensional organ model.
[0098] It should be noted that the browser side in the present application includes the web side, that is, the web side can display the three-dimensional organ model corresponding to the target organ, thus avoiding the disadvantage of the related technology that the virtual endoscope system needs to be installed locally before it can be used. The browser side in the present application can support on-demand use, thereby improving the convenience of using the virtual endoscope system.
[0099] It should also be noted that each medical image in the target medical image set in this application has a set of parameters corresponding to it to ensure the uniqueness of the medical image. A set of parameters includes studyId, seriesId, and uId, that is, a medical image can be uniquely identified based on studyId, seriesId, and uId, where studyId can be understood as the patient's examination number (the patient may have multiple examinations), seriesId can be understood as the patient's organ examination number in one examination (the patient may have multiple organs examined in one examination), and uId can be understood as the image examination number obtained by the patient under one organ examination.
[0100] S102: In response to the user's adjustment operation on the virtual endoscope in the three-dimensional organ model, the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model, and sends the motion parameters to the server.
[0101] It should be noted that, before the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model in response to the user's adjustment operation of the virtual endoscope in the three-dimensional organ model, the browser can also determine the initial position of the virtual endoscope in the lumen of the three-dimensional organ model in response to the user's placement operation of the virtual endoscope in the lumen of the three-dimensional organ model.
[0102] It can be understood that after the browser displays the three-dimensional organ model corresponding to the target organ, the user can place the virtual endoscope in the lumen of the three-dimensional organ model, that is, in the lumen of the target organ to be inspected, so that the browser can determine the initial position of the virtual endoscope in the lumen of the three-dimensional organ model, so that the user can subsequently operate the virtual endoscope to move, so as to achieve real-time roaming of the virtual endoscope. Among them, the user can place the virtual endoscope at the entrance of the lumen of the target organ, and make the lens of the virtual endoscope point in the direction from head to toe, so as to facilitate the calculation of the subsequent motion path of the virtual endoscope.
[0103] After this, the browser can calculate the initial position to obtain the initial coordinates corresponding to the initial position in the lumen of the three-dimensional organ model, that is, the initial coordinates corresponding to the virtual endoscope, and calculate the initial coordinates to obtain the initial lens pointing vector corresponding to the virtual endoscope in the lumen of the three-dimensional organ model, wherein the initial lens pointing vector can be understood as the up and down direction vector of the virtual endoscope in the three-dimensional organ model (that is, the vector from head to toe). Furthermore, the up and down direction vector can also be understood as the direction vector of the target medical image set when constructing the three-dimensional organ model (that is, the vector from head to toe).
[0104] Next, the process of obtaining the initial coordinates and the process of obtaining the initial lens pointing vector are introduced one by one. In an achievable implementation, the initial coordinates can be obtained in the following manner: (1) First, the world coordinates of the virtual endoscope can be determined and defined as P 1 (x 1 ,y 1 , z 1 ); (2) Then determine the rotation matrix of the three-dimensional organ model and the inverse matrix of the rotation matrix, and determine the local coordinates of the virtual endoscope based on the inverse matrix of the rotation matrix, which can be defined as P 2 (x 2 ,y 2 , z 2); (3) and determine the target dimension lengths corresponding to the three-dimensional organ model in the three dimensions, which can be defined as boxH, boxW and boxD; (4) Finally, the local coordinates and the target dimension lengths corresponding to the three dimensions can be calculated using formulas (1) to (3) to determine the initial coordinates (i.e., voxel coordinates) corresponding to the virtual endoscope, which can be defined as P 3 (x 3 ,y 3 , z 3 ).
[0105] It should be noted that formula (1) to formula (3) are specifically embodied as follows:
[0106]
[0107] Among them, xDim, yDim and zDim can be understood as the actual dimension lengths corresponding to the three-dimensional organ model in the three dimensions. In order to eliminate the adverse effects of some medical images on the three-dimensional organ model, the three-dimensional organ model is normalized to obtain the target dimension lengths corresponding to the three-dimensional organ model in the three dimensions.
[0108] In an achievable implementation, the initial lens pointing vector can be obtained in the following manner: If the virtual endoscope is at the lumen entrance of the target organ, the initial coordinates corresponding to the virtual endoscope can be determined as A 1 (0,0,0) and A 2 (0,0,1), and for A 1 (0,0,0) and A 2 By calculating (0,0,1), the initial lens pointing vector corresponding to the virtual endoscope can be obtained.
[0109] Next, the browser side determines the motion parameters of the virtual endoscope in the present application in combination with step S1021 and step S1022. Figure 2 As shown, Figure 2 This is a flowchart of determining motion parameters in a real-time roaming method of a virtual endoscope provided in an embodiment of the present application, wherein steps S1021 and S1022 are specifically as follows:
[0110] S1021: In response to the user's scrolling operation on the virtual endoscope based on the initial position, the browser determines a current lens pointing vector corresponding to the virtual endoscope.
[0111] It should be noted that in the present application, the user can operate the mouse to implement the scrolling operation for the virtual endoscope. It is understandable that when the user rolls the mouse wheel once at the initial position of the virtual endoscope in the three-dimensional organ model, the browser can determine the current lens pointing vector corresponding to the virtual endoscope for the user's scrolling operation. In this way, in the subsequent process, the medical image to be extracted can be determined based on the initial lens pointing vector and the current lens pointing vector, thereby achieving the accuracy of segmented extraction of medical images. Among them, the browser side can only execute the process after step 102 once when the user rolls the mouse wheel multiple times in a row, so as to avoid the disadvantages of affecting the interactive experience and performance due to the user rolling the mouse wheel multiple times in a short period of time.
[0112] It should also be noted that in the present application, the current lens pointing vector corresponding to the virtual endoscope can be determined according to the rolling direction of the mouse wheel in the mouse. Specifically, the rolling direction of the mouse wheel can be determined by the deltaY attribute of the mouse, wherein if the deltaY attribute is a positive value, it means that the mouse wheel is rolling downward, and the direction of the mouse wheel is opposite to the direction of the initial lens pointing vector, and the opposite vector of the initial lens pointing vector is used as the current lens pointing vector; if the deltaY attribute is a negative value, it means that the mouse wheel is rolling upward, and the direction of the mouse wheel is consistent with the direction of the initial lens pointing vector, and the current lens pointing vector is used as the initial lens pointing vector.
[0113] Furthermore, before executing step S1022, the browser side can also determine the organ segmentation threshold corresponding to the target organ according to the target organ, so that the subsequent server can correctly segment the organ model corresponding to the target organ from the medical image according to the organ segmentation threshold. Among them, the organ segmentation threshold includes an upper limit of the segmentation threshold and a lower limit of the segmentation threshold. For example, if the target organ is the pulmonary trachea, according to the physiological characteristics of the pulmonary trachea, the upper limit of the segmentation threshold threshold1 can be preset to -1024, and the lower limit of the segmentation threshold threshold2 can be preset to -500. It should be noted that the setting of the organ segmentation threshold can be based on different definitions of the target organ, and is not specifically limited here.
[0114] S1022: The browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model according to the initial coordinates, the initial lens pointing vector, and the current lens pointing vector.
[0115] In this step, the browser side can calculate the initial lens pointing vector and the current lens pointing vector to obtain image extraction variables, and then use the initial coordinates, organ segmentation thresholds and image extraction variables as the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model. It should be noted that in this application, the image parameters (studyId, seriesId, uId) corresponding to the three-dimensional organ model can also be used as motion parameters, so that the subsequent server side can process the motion parameters to obtain the motion path of the virtual endoscope.
[0116] In a feasible implementation, the normalized dot product can be performed on the initial lens pointing vector and the current lens pointing vector to obtain the vector angle θ between the initial lens pointing vector and the current lens pointing vector. If 0≤θ≤90, the initial lens pointing vector and the current lens pointing vector are in the same direction, then the image extraction variable is 1, indicating that the medical image needs to be extracted in the direction in which the number of medical image layers increases; if 90≤θ≤180, the initial lens pointing vector and the current lens pointing vector are in opposite directions, then the image extraction variable is 0, indicating that the medical image needs to be extracted in the direction in which the number of medical image layers decreases, wherein the image extraction variable can be understood as a Boolean value, and there are only two values 1 (true) and 0 (false), that is, "1" represents a Boolean true value and "0" represents a Boolean false value.
[0117] It should be noted that the image extraction variable can be understood as representing the direction of segmented extraction of medical images. It can be understood that the three-dimensional organ model is stacked by the target medical image set corresponding to the target organ, and the virtual endoscope can be located on part of the target medical image based on the user's scrolling operation. At this time, sending the image extraction variable to the server side can enable the server side to determine the medical image corresponding to the motion path that needs to be extracted, so as to realize the segmented path determination of the virtual endoscope.
[0118] S103: The server side calculates and processes the motion parameters to obtain a motion path corresponding to the virtual endoscope, and sends the motion path to the browser side.
[0119] like Figure 3 As shown, Figure 3 A flowchart of a real-time roaming method for a virtual endoscope for obtaining a motion path according to an embodiment of the present application is provided. Figure 3 Step S1031 to step S1033 in the embodiment of the present invention provide a detailed description of step S103. Step S1031 to step S1033 are as follows:
[0120] S1031: The server determines the data range of the medical image to be extracted in the Z-axis direction in the three-dimensional organ model for the scrolling operation of the virtual endoscope according to the initial coordinates and the image extraction variables in the motion parameters.
[0121] In this step, if the image extraction variable is 1 (true value), the data range is the range in which the data in the Z-axis direction increases, and if the image extraction variable is 0 (false value), the data range is the range in which the data in the Z-axis direction decreases. It can be understood that the server can extract the variable according to the image, with the initial coordinate P in the motion parameter 3 (x 3 ,y 3 , z 3 ) as a reference point, extract any number of medical images to be extracted in the Z-axis direction. For example, if the image extraction variable is 1 (true value) and the arbitrary number is 10, then the data range of the medical images to be extracted can be determined as (z 3 , z 3 +10), that is, 10 layers of medical images to be extracted can be extracted in the positive direction of the Z axis; if the image extraction variable is 0 (false value) and the arbitrary number is 10, the data range of the medical image to be extracted can be determined to be (z 3 -10, z 3 ), that is, 10 layers of medical images to be extracted can be extracted in the negative direction of the Z-axis.
[0122] S1032: The server determines a set of medical images to be extracted corresponding to the scrolling operation of the virtual endoscope in the three-dimensional organ model according to the data range of the medical images to be extracted.
[0123] In this step, the server side can extract the set of medical images to be extracted based on the data range of the medical images to be extracted, starting from the initial coordinates of the virtual endoscope in the three-dimensional organ model, and along the direction in which the number of medical image layers increases or decreases. It should be noted that after the user performs a scrolling operation for the virtual endoscope in the three-dimensional organ model, the server side needs to determine the data range of the next segment of medical images to be extracted in the scrolling direction of the virtual endoscope, and then determine the next segment of medical image set to be extracted based on the data range. In this way, in the present application, the set of medical images to be extracted corresponding to each scrolling operation of the user can be determined, and subsequently the target position corresponding to the virtual endoscope under the scrolling operation can be determined based on the set of medical images to be extracted, thereby realizing real-time roaming of the virtual endoscope to a certain extent.
[0124] In a feasible implementation, the present application can store the same target medical image set corresponding to the target organ on the browser side and the server side respectively. Since the server side can store multiple medical image sets at the same time, the server side can determine the target medical image set corresponding to the three-dimensional organ model based on the image parameters in the motion parameters, so as to determine the medical image set to be extracted.
[0125] S1033: The server performs segmentation processing on the medical image set to be extracted to obtain a motion path corresponding to the virtual endoscope.
[0126] It should be noted that before executing step S1033, the server side of the present application can obtain a path extraction function, and the path extraction function is used to extract the motion path corresponding to the virtual endoscope. In a feasible implementation, the path extraction function can be vtkvmtkPolyDataNetworkExtraction() in the lumen modeling package vmtk.
[0127] Specifically, the server side can segment the medical image set to be extracted based on the organ segmentation threshold in the motion parameter to obtain the target organ model corresponding to the target organ. After that, the server side can use the path extraction function to extract the path of the target organ model to obtain the motion path corresponding to the virtual endoscope. In this way, the present application constructs a target organ model corresponding to the target organ on the server side (i.e., an organ model in three dimensions), so that the motion path of the virtual endoscope in this target organ model can be determined, and the determination of the segmented target organ model and the determination of the segmented motion path of the virtual endoscope are realized, which supports the real-time roaming of the virtual endoscope to a certain extent.
[0128] Next, the process of obtaining the target organ model corresponding to the target organ and the process of obtaining the motion path corresponding to the virtual endoscope are introduced one by one. In an achievable implementation, the target organ model corresponding to the target organ can be obtained in the following manner: (1) The server first uses BinaryThreshold() in the medical image processing tool SimpleITK to segment the medical image set to be extracted based on the organ segmentation threshold in the motion parameter to obtain the initial organ segmentation result; (2) At this time, the server can use BinaryErodeImageFilter() in SimpleITK to construct an erosion filter, and the erosion radius of the erosion filter can be preset to 1 to separate the target organ in the initial organ segmentation result from the surrounding tissue of the target organ to obtain the organ erosion result.
[0129] (3) After that, the server can use the ConnectedComponent() in SimpleITK to determine all connected domains in the target organ in the organ corrosion result based on the organ corrosion result, and set the maximum number of connected voxels, and then use the RelabelComponent() in SimpleITK to sort all connected domains within the maximum number of connected voxels from large to small to obtain the sorting result. (4) The server can determine the initial image coordinates of the virtual endoscope in the Z-axis direction of the medical image set to be extracted based on the image extraction variable in the motion parameter. For example: the medical image set to be extracted includes 10 layers of medical images to be extracted. If the image extraction variable is 1 (true value), then the initial image coordinates Q 1 =(x 1 ,y 1 ,0), where 0 represents the first layer of the 10 layers of medical images to be extracted; if the image extraction variable is 0 (false value), the initial image coordinate Q 1 =(x 1 ,y 1 ,9), where 9 represents the first layer of the 10 layers of medical images to be extracted.
[0130] (5) Finally, the server side can determine the connected domain corresponding to the initial image coordinates based on the sorting results and the initial image coordinates, thereby obtaining the initial organ model corresponding to the target organ. It should be noted that the server side can set the origin of the target organ model to (0, 0, 0) to ensure that the subsequently obtained motion path and the position of the target organ model are not offset. (6) It should also be noted that after obtaining the initial organ model corresponding to the target organ, the present application can also pre-process the initial organ model, and the pre-processing includes merging processing and conversion processing, etc., to obtain a smoother target organ model corresponding to the target organ.
[0131] In a feasible implementation, the motion path corresponding to the virtual endoscope can be obtained in the following manner: the server side can use vtkvmtkPolyDataNetworkExtraction() (i.e., path extraction function) in the vtkvmtkMiscPython package of vmtk to perform path extraction on the target organ model to obtain the motion path corresponding to the virtual endoscope.
[0132] S104: The browser determines the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the motion path, so as to realize real-time roaming of the virtual endoscope.
[0133] It should be noted that, since the server has obtained the motion path corresponding to the virtual endoscope in the target organ model in the above process, the browser also needs to adapt the motion path to the three-dimensional organ model to determine the target position of the virtual endoscope in the three-dimensional organ model. Figure 4 As shown, Figure 4 A flowchart of determining a target position in a real-time roaming method of a virtual endoscope provided in an embodiment of the present application is provided. Figure 4 Step S1041 to step S1044 in the embodiment of the present invention provide a detailed description of step S104. Step S1041 to step S1044 are specifically as follows:
[0134] S1041: The browser side obtains point coordinates corresponding to a plurality of path points in the motion path according to the motion path.
[0135] In this step, the browser determines the point coordinates corresponding to multiple path points in the motion path in order to facilitate the subsequent determination of the optimal point from the multiple path points, thereby determining the target position of the virtual endoscope in the three-dimensional organ model based on the optimal point to ensure that the determined target position is the optimal position, which improves the diagnostic results of subsequent medical personnel based on the target position to a certain extent.
[0136] S1042: The browser converts the point coordinates corresponding to the multiple path points to obtain the world coordinates corresponding to the multiple path points in the three-dimensional organ model.
[0137] Since the motion path corresponding to the virtual endoscope obtained at this time is the motion path corresponding to the virtual endoscope in the target organ model, in this step, the browser side needs to perform coordinate conversion on the point coordinates corresponding to the multiple path points to obtain the local coordinates corresponding to the multiple path points in the three-dimensional organ model, and then perform coordinate conversion on the local coordinates corresponding to the multiple path points to obtain the world coordinates corresponding to the multiple path points in the three-dimensional organ model, so as to facilitate the subsequent calculation with the initial coordinates in the motion parameters (i.e., the world coordinates corresponding to the initial coordinates).
[0138] S1043: The browser compares the world coordinates corresponding to the multiple path points according to the initial coordinates in the motion parameters, and determines the optimal world coordinates among the multiple world coordinates.
[0139] In this step, we can first calculate the initial coordinate P in the motion parameters. 3 (x 3 ,y 3 , z 3 ) to perform coordinate transformation to determine the world coordinates P of the virtual endoscope 1 (x 1 ,y1 , z 1 ), and obtain the current lens pointing vector corresponding to the virtual endoscope, and then the browser side cross-calculates the world coordinates with multiple world coordinates one by one to obtain the coordinate vectors corresponding to the multiple world coordinates, and performs dot multiplication processing on the current lens pointing vector and the coordinate vectors corresponding to the multiple world coordinates one by one to obtain the coordinate vector angles corresponding to the current lens pointing vector and the multiple coordinate vectors, and extracts the coordinate vectors with a coordinate vector angle between 0 degrees and 30 degrees, so as to use the coordinate vector with a coordinate vector angle between 0 degrees and 30 degrees as a candidate vector set among the multiple coordinate vectors.
[0140] Finally, the browser calculates the projection of the candidate vector set on the current lens pointing vector, obtains the projection vector set corresponding to the candidate vector set, and extracts the projection vector with the largest projection length in the projection vector set, so as to take the projection vector with the largest projection length as the optimal vector in the candidate vector set, and determines the optimal world coordinate corresponding to the optimal vector in multiple world coordinates based on the optimal vector, wherein the optimal world coordinate can be understood as the coordinate farthest from the virtual endoscope in the three-dimensional organ model, thereby realizing the subsequent determination of the target position of the virtual endoscope in the three-dimensional organ model, thereby realizing real-time roaming of the virtual endoscope in the lumen.
[0141] S1044: The browser determines the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the optimal world coordinates.
[0142] It should be noted that in the present application, the browser side can calculate the initial coordinates of the virtual endoscope (i.e., the world coordinates corresponding to the initial coordinates) and the optimal world coordinates of the virtual endoscope to obtain the next lens pointing vector of the virtual endoscope in the lumen of the three-dimensional organ model, that is, the pointing direction of the virtual endoscope at the next moment (i.e., the moment when the user scrolls the virtual endoscope). It should also be noted that in the present application, the browser side can also determine the next upward direction of the virtual endoscope in the lumen of the three-dimensional organ model based on the optimal world coordinates and the next lens pointing vector, that is, the upward direction of the virtual endoscope at the next moment. In a feasible implementation, the browser side can ultimately determine the target position of the virtual endoscope in the lumen of the three-dimensional organ model based on the optimal world coordinates, the next lens pointing vector, and the next upward direction to achieve real-time roaming of the virtual endoscope in the lumen.
[0143] In an achievable implementation, the present application can be implemented in a three-dimensional organ model according to the optimal world coordinate O 1 =(x 1 ,y 1 ,z 1 ) determines the plane α and makes the next lens point to the vector is the normal vector of plane α, where the next lens points to the vector The coordinates can be s = (O, P, Q), and any point M (x, y, z) in plane α is in the same plane as the optimal world coordinate O 1 The corresponding vector Need to point to the vector with the next lens Vertical, that is, the dot product is 0.
[0144] After that, the browser presets the initial upward vector of the virtual endoscope in the lumen of the 3D organ model as And based on the next lens pointing vector Calculate and obtain the initial upward vector In the next shot point vector The projection on Finally, under the action of the vector addition algorithm, we can In the next shot point vector Projection on Determine the initial up vector Projection on plane α And the initial up vector Projection on plane α As the next up direction of the virtual endoscope in the lumen of the three-dimensional organ model.
[0145] In another achievable implementation, the next upward direction of the virtual endoscope in the lumen of the three-dimensional organ model can be obtained using formula (4)-formula (8), and formula (4)-formula (8) are specifically embodied as follows:
[0146]
[0147] O(xx 1 )+P(yy 1 )+Q(zz 1 )=0 formula (6)
[0148]
[0149] The meanings of the parameters mentioned in formula (4) to formula (8) have been introduced in the above process and will not be repeated here.
[0150] It should also be noted that the present application can execute step S102-step S104 in a loop until the user stops interacting with the mouse, otherwise the target position of the virtual endoscope in the three-dimensional organ model at multiple times can be obtained, and finally the multiple target positions can be connected to obtain the real-time roaming path of the virtual endoscope. And under the action of the auxiliary model conversion MPR, the real-time roaming path of the virtual endoscope can be transmitted to medical personnel so that medical personnel can make a diagnosis based on the real-time roaming path, and the present application can adjust the virtual endoscope viewing angle at any time in the lumen based on the user operation, which improves the convenience of using the virtual endoscope and realizes the real-time roaming of the virtual endoscope in the lumen.
[0151] like Figure 5 As shown, Figure 5 The interactive flow chart of the real-time roaming in the real-time roaming method of a virtual endoscope provided in the embodiment of the present application is provided. Figure 5 First, the browser side can receive the target medical image set corresponding to the target organ selected by the user, and construct and display the three-dimensional organ model corresponding to the target organ based on the target medical image set corresponding to the target organ, and the browser side can receive the user's placement operation of placing the virtual endoscope in the lumen of the three-dimensional organ model to determine the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model, and send the motion parameters to the server side; thereafter, the server side can calculate the motion parameters to obtain the motion path corresponding to the virtual endoscope, and send the motion path to the browser side; finally, the browser side can determine the target position of the virtual endoscope in the lumen of the three-dimensional organ model based on the motion path to realize real-time roaming of the virtual endoscope, thereby improving the user's interactive experience.
[0152] In summary, in this embodiment, the browser side can support direct access and display of the three-dimensional organ model corresponding to the target organ through the web page, so that it can be used whenever needed. The server side can support the calculation of motion parameters for the virtual endoscope, so that the browser side can determine the target position of the virtual endoscope in the three-dimensional organ model. Therefore, under the action of the browser side and the server side, the virtual endoscope can realize real-time roaming in the lumen, thereby improving the user's interactive experience and, to a certain extent, improving the auxiliary diagnosis performance for medical personnel.
[0153] Based on the real-time roaming method of a virtual endoscope provided in the aforementioned embodiment, the present application also provides a virtual endoscope system accordingly. Figure 6 A schematic diagram of the structure of a virtual endoscope system provided in an embodiment of the present application. Figure 6 As shown, the virtual endoscope system includes a browser end 601 and a server end 602:
[0154] The browser end 601 is used for displaying a three-dimensional organ model corresponding to a target organ in response to a receiving operation of a target medical image set corresponding to the target organ, wherein the target organ includes an organ with a lumen;
[0155] The browser end 601 is used to determine the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model in response to the user's adjustment operation on the virtual endoscope in the three-dimensional organ model, and send the motion parameters to the server end 602;
[0156] The server side 602 is used to calculate and process the motion parameters, obtain the motion path corresponding to the virtual endoscope, and send the motion path to the browser side 601;
[0157] The browser end 601 is used to determine the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the motion path, so as to realize the real-time roaming of the virtual endoscope.
[0158] In one achievable implementation, the browser is further used for:
[0159] In response to a user's placement operation of the virtual endoscope in the lumen of the three-dimensional organ model, determining an initial position of the virtual endoscope in the lumen of the three-dimensional organ model;
[0160] Calculating the initial position to obtain initial coordinates corresponding to the initial position in the lumen of the three-dimensional organ model and an initial lens pointing vector corresponding to the virtual endoscope;
[0161] The browser is specifically used for:
[0162] In response to a scrolling operation of the user on the virtual endoscope based on the initial position, determining a current lens pointing vector corresponding to the virtual endoscope;
[0163] The motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model are determined according to the initial coordinates, the initial lens pointing vector and the current lens pointing vector.
[0164] In an achievable implementation, the browser terminal 601 is further used for:
[0165] According to the target organ, determining an organ segmentation threshold corresponding to the target organ;
[0166] The browser end 601 is specifically used for:
[0167] Calculating the initial lens pointing vector and the current lens pointing vector to obtain an image extraction variable;
[0168] The initial coordinates, the organ segmentation threshold and the image extraction variable are used as motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model.
[0169] In an achievable implementation, the server side 602 is specifically used for:
[0170] Determine, according to the initial coordinates and the image extraction variable in the motion parameter, a data range of the medical image to be extracted in the Z-axis direction for the scrolling operation of the virtual endoscope in the three-dimensional organ model, wherein if the image extraction variable is 1, the data range is a range in which the data in the Z-axis direction becomes larger, and if the image extraction variable is 0, the data range is a range in which the data in the Z-axis direction becomes smaller;
[0171] Determining a set of medical images to be extracted corresponding to the scrolling operation of the virtual endoscope in the three-dimensional organ model according to the data range of the medical images to be extracted;
[0172] The medical image set to be extracted is segmented to obtain a motion path corresponding to the virtual endoscope.
[0173] In an achievable implementation, the server side 602 is further used for:
[0174] Acquire a path extraction function, where the path extraction function is used to extract a motion path corresponding to the virtual endoscope;
[0175] The server side 602 is specifically used for:
[0176] Segmenting the medical image set to be extracted based on the organ segmentation threshold in the motion parameter to obtain a target organ model corresponding to the target organ;
[0177] The path extraction function is used to extract the path of the target organ model to obtain the motion path corresponding to the virtual endoscope.
[0178] In an achievable implementation, the browser end 601 is specifically used for:
[0179] The browser side obtains point coordinates corresponding to a plurality of path points in the motion path according to the motion path;
[0180] The browser converts the point coordinates corresponding to the plurality of path points to obtain the world coordinates corresponding to the plurality of path points in the three-dimensional organ model;
[0181] The browser compares the world coordinates corresponding to the multiple path points according to the initial world coordinates in the motion parameters, and determines the optimal world coordinates among the multiple world coordinates;
[0182] The browser determines the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the optimal world coordinates.
[0183] In an achievable implementation, the browser end 601 is specifically used for:
[0184] The browser side cross-calculates the initial world coordinates in the motion parameters with the multiple world coordinates one by one to obtain coordinate vectors corresponding to the multiple world coordinates respectively;
[0185] The browser performs selection processing on the current lens pointing vector and multiple coordinate vectors to obtain a candidate vector set from the multiple coordinate vectors;
[0186] The browser determines an optimal vector in the candidate vector set according to the current lens pointing vector, and determines an optimal world coordinate among multiple world coordinates according to the optimal vector.
[0187] The virtual endoscope system provided in the embodiment of the present application has the same beneficial effects as the real-time roaming method of the virtual endoscope provided in the above embodiment, and can support the real-time roaming of the virtual endoscope in the lumen, which will not be described in detail here.
[0188] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system and device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The system and device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0189] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A real-time roaming method of a virtual endoscope, characterized in that: Applied to a virtual endoscope system, the virtual endoscope system includes a browser end and a server end, and the real-time roaming method includes: In response to a receiving operation for a target medical image set corresponding to a target organ, the browser terminal displays a three-dimensional organ model corresponding to the target organ, wherein the target organ includes an organ having a lumen; In response to the user's adjustment operation on the virtual endoscope in the three-dimensional organ model, the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model, and sends the motion parameters to the server; The server side calculates and processes the motion parameters to obtain a motion path corresponding to the virtual endoscope, and sends the motion path to the browser side; The browser determines the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the motion path, so as to realize the real-time roaming of the virtual endoscope.
2. The method according to claim 1, characterized in that Before the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model in response to the user's adjustment operation of the virtual endoscope in the three-dimensional organ model, the real-time roaming method further includes: In response to a user's operation of placing a virtual endoscope in a lumen of the three-dimensional organ model, the browser determines an initial position of the virtual endoscope in the lumen of the three-dimensional organ model; The browser calculates the initial position to obtain initial coordinates corresponding to the initial position in the lumen of the three-dimensional organ model and an initial lens pointing vector corresponding to the virtual endoscope; In response to the user's adjustment operation of the virtual endoscope in the three-dimensional organ model, the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model, and the real-time roaming method includes: In response to a scrolling operation of the user on the virtual endoscope based on the initial position, the browser determines a current lens pointing vector corresponding to the virtual endoscope; The browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model according to the initial coordinates, the initial lens pointing vector and the current lens pointing vector.
3. The method according to claim 2, characterized in that Before the browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model according to the initial coordinates, the initial lens pointing vector and the current lens pointing vector, the real-time roaming method further includes: The browser determines, according to the target organ, an organ segmentation threshold corresponding to the target organ; The browser determines the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model according to the initial coordinates, the initial lens pointing vector and the current lens pointing vector. The real-time roaming method includes: The browser side calculates the initial lens pointing vector and the current lens pointing vector to obtain an image extraction variable; The browser uses the initial coordinates, the organ segmentation threshold and the image extraction variable as movement parameters of the virtual endoscope in the lumen of the three-dimensional organ model.
4. The method according to claim 3, characterized in that The server side calculates and processes the motion parameters to obtain a motion path corresponding to the virtual endoscope, and the real-time roaming method includes: The server determines, according to the initial coordinates and the image extraction variable in the motion parameter, a data range of the medical image to be extracted in the Z-axis direction for the scrolling operation of the virtual endoscope in the three-dimensional organ model, wherein if the image extraction variable is 1, the data range is a range in which the data in the Z-axis direction becomes larger, and if the image extraction variable is 0, the data range is a range in which the data in the Z-axis direction becomes smaller; The server determines, according to the data range of the medical images to be extracted, a set of medical images to be extracted corresponding to the scrolling operation of the virtual endoscope in the three-dimensional organ model; The server performs segmentation processing on the medical image set to be extracted to obtain a motion path corresponding to the virtual endoscope.
5. The method according to claim 4, characterized in that Before the server performs segmentation processing on the medical image set to be extracted to obtain the motion path corresponding to the virtual endoscope, the real-time roaming method further includes: The server side obtains a path extraction function, where the path extraction function is used to extract a motion path corresponding to the virtual endoscope; The server performs segmentation processing on the medical image set to be extracted to obtain a motion path corresponding to the virtual endoscope, and the real-time roaming method includes: The server segmentates the medical image set to be extracted based on the organ segmentation threshold in the motion parameter to obtain a target organ model corresponding to the target organ; The server side uses the path extraction function to perform path extraction on the target organ model to obtain the motion path corresponding to the virtual endoscope.
6. The method according to claim 4, characterized in that The browser determines the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the motion path, and the real-time roaming method includes: The browser side obtains point coordinates corresponding to a plurality of path points in the motion path according to the motion path; The browser converts the point coordinates corresponding to the plurality of path points to obtain the world coordinates corresponding to the plurality of path points in the three-dimensional organ model; The browser compares the world coordinates corresponding to the multiple path points according to the initial coordinates in the motion parameters, and determines the optimal world coordinates among the multiple world coordinates; The browser determines the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the optimal world coordinates.
7. The method according to claim 6, characterized in that The browser compares the world coordinates corresponding to the multiple path points according to the initial coordinates in the motion parameters to determine the optimal world coordinates among the multiple world coordinates. The real-time roaming method includes: The browser side cross-calculates the initial coordinates in the motion parameters with the multiple world coordinates one by one to obtain coordinate vectors corresponding to the multiple world coordinates respectively; The browser performs selection processing on the current lens pointing vector and multiple coordinate vectors to obtain a candidate vector set from the multiple coordinate vectors; The browser determines an optimal vector in the candidate vector set according to the current lens pointing vector, and determines an optimal world coordinate among multiple world coordinates according to the optimal vector.
8. A virtual endoscopy system, characterized in that: The virtual endoscope system includes a browser side and a server side: The browser is used to display a three-dimensional organ model corresponding to a target organ in response to a receiving operation of a target medical image set corresponding to the target organ, wherein the target organ includes an organ with a lumen; The browser is used to determine the motion parameters of the virtual endoscope in the lumen of the three-dimensional organ model in response to the user's adjustment operation on the virtual endoscope in the three-dimensional organ model, and send the motion parameters to the server; The server is used to calculate and process the motion parameters, obtain the motion path corresponding to the virtual endoscope, and send the motion path to the browser; The browser end is used to determine the target position of the virtual endoscope in the lumen of the three-dimensional organ model according to the motion path, so as to realize the real-time roaming of the virtual endoscope.
9. A computer device, characterized in that: include: a memory having a computer program stored thereon; A processor is used to execute the computer program in the memory to implement the steps of the real-time roaming method of virtual endoscope according to claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the real-time roaming method of virtual endoscope described in claims 1-7 are implemented.
