Method and device for rendering medical image in real time based on eye movement tracking and electronic equipment
By acquiring the doctor's eye movement data and rendering technology, the VR system's perspective is dynamically adjusted, which solves the problem of poor image display angles of the VR system during bronchoscopy, improves the accuracy and efficiency of the doctor's operation, and ensures that the lesion is not blocked.
Patent Information
- Application Number
- CN202410746457.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During bronchoscopy, the image display angle of the existing VR system is difficult to reach the optimal state, causing the lesions to be obscured, increasing the doctor's workload and treatment risks.
By obtaining the doctor's eye movement data and eyeball center data, the direction vector of the doctor's line of sight in the three-dimensional space is determined, a ray projection model is used to determine the focus of the line of sight, and real-time rendering is performed based on the two-dimensional medical imaging data, and the viewing angle is dynamically adjusted to ensure that the lesion is unobstructed.
It improves doctors' work efficiency and operational accuracy, reduces the risk of lesions being blocked, and enhances diagnostic accuracy.
Smart Images

Figure CN118588248A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a method, device and electronic equipment for real-time rendering of medical images based on eye tracking. Background Art
[0002] With the rapid advancement of science and technology, virtual reality (VR) technology has gradually expanded from the entertainment field to the medical field, becoming an important tool to assist doctors in diagnosis and treatment. Especially in the field of bronchoscopy and treatment, the application of VR technology provides doctors with unprecedented three-dimensional visualization methods, making the location and treatment of lesions more intuitive and accurate.
[0003] However, although VR technology has shown great potential and advantages in the medical field, it still faces some urgent problems in its actual application. At present, the image display angle of the existing VR system is often difficult to reach the optimal state when performing bronchoscopy, which may cause the lesion to be blocked and affect the doctor's accurate judgment of the condition. In addition, the doctor needs to frequently adjust the viewing angle manually during the operation, which not only increases the doctor's workload, but also may increase the risk of treatment due to improper operation.
[0004] Therefore, a method, device and electronic device for real-time rendering of medical images based on eye tracking are proposed. Summary of the invention
[0005] This specification provides a method, device and electronic device for real-time rendering of medical images based on eye tracking, which are used to assist medical examination and treatment, solve the problems of image occlusion and inconvenient operation, and improve the doctor's work efficiency and operation accuracy.
[0006] This specification provides a method for real-time rendering of medical images based on eye tracking, comprising:
[0007] Obtain the doctor's eye movement data, eye center data, and two-dimensional medical imaging data;
[0008] Based on the doctor's eye movement data and the eyeball center data, respectively determine the direction vector of the doctor's line of sight in the three-dimensional space and the direction vector of the eyeball center in the three-dimensional space;
[0009] Determine the doctor's sight focus by combining the direction vector of the doctor's sight in three-dimensional space through a ray projection model;
[0010] A three-dimensional medical image is rendered based on the two-dimensional medical image data, and the viewing angle is dynamically adjusted based on the doctor's line of sight to ensure that the lesion is not obstructed.
[0011] Optionally, the method of obtaining the doctor's eye movement data includes obtaining the doctor's eye movement data and eye center data through a high-precision eye tracking device.
[0012] Optionally, determining the direction vector of the doctor's sight line in three-dimensional space based on the doctor's eye movement data includes:
[0013]
[0014] Among them, the eye movement data includes eye movement data a in the horizontal line of sight and eye movement data b in the vertical line of sight; A is the direction vector of the doctor's line of sight in three-dimensional space; cos(b)·cos(a) represents the projection of the eye movement data on the x-axis; cos(b)·sin(a) represents the projection of the eye movement data on the y-axis; sin(b) represents the projection of the eye movement data on the z-axis.
[0015] Optionally, the determining the doctor's sight focus by combining the ray projection model with the direction vector of the doctor's sight in three-dimensional space includes:
[0016] B(t)=C+d·A
[0017] Among them, B(t) is the doctor's line of sight focus at time t; C is the direction vector of the eye center in three-dimensional space; d is the distance factor, which represents the distance from the eye center to the line of sight focus.
[0018] Optionally, rendering a three-dimensional image based on the two-dimensional medical image data includes:
[0019] Obtaining the grayscale and transparency of the two-dimensional medical image data by analyzing the two-dimensional medical image data;
[0020] Obtaining a three-dimensional medical image by combining the grayscale and transparency of the two-dimensional medical image data through a ray projection model;
[0021] The three-dimensional medical image is rendered in real time through a real-time rendering model.
[0022] Optionally, dynamically adjusting the viewing angle based on the doctor's sight focus to ensure that the lesion is not blocked includes:
[0023] Recording the point, duration, and movement trajectory of the doctor's sight focus in the three-dimensional medical image;
[0024] When it is detected through the clustering model that the doctor's sight focus stays at the stay point for a period exceeding a time threshold, the three-dimensional medical image corresponding to the stay point is adjusted to a positive viewing angle so that the lesion is not blocked.
[0025] Optionally, the dynamically adjusting the viewing angle based on the doctor's sight focus to ensure that the lesion is not blocked also includes:
[0026] Recording the movement trajectory of the doctor's sight focus in the three-dimensional medical image;
[0027] When the motion trajectory is a rapid movement from the three-dimensional medical image at the normal viewing angle to the edge area, the three-dimensional medical image is enlarged to ensure that the lesion is not blocked;
[0028] When the motion trajectory is a rapid movement from the edge area of the three-dimensional medical image to the normal viewing angle, the three-dimensional medical image is reduced to ensure that the lesion is not blocked.
[0029] This specification provides a device for real-time rendering of medical images based on eye tracking, comprising:
[0030] An acquisition module is used to acquire the doctor's eye movement data, eyeball center data, and two-dimensional medical imaging data;
[0031] A conversion module, used to determine the direction vector of the doctor's line of sight in three-dimensional space and the direction vector of the eyeball center in three-dimensional space respectively based on the doctor's eye movement data and the eyeball center data;
[0032] A locking module, used to determine the doctor's sight focus by combining a ray projection model with the direction vector of the doctor's sight in three-dimensional space;
[0033] A rendering module is used to render a three-dimensional medical image based on the two-dimensional medical image data, and dynamically adjust the viewing angle based on the doctor's line of sight to ensure that the lesion is not obstructed.
[0034] Optionally, the method of obtaining the doctor's eye movement data includes obtaining the doctor's eye movement data and eye center data through a high-precision eye tracking device.
[0035] Optionally, the conversion module includes:
[0036]
[0037] Among them, the eye movement data includes eye movement data a in the horizontal line of sight and eye movement data b in the vertical line of sight; A is the direction vector of the doctor's line of sight in three-dimensional space; cos(b)·cos(a) represents the projection of the eye movement data on the x-axis; cos(b)·sin(a) represents the projection of the eye movement data on the y-axis; sin(b) represents the projection of the eye movement data on the z-axis.
[0038] Optionally, the locking module includes:
[0039] B(t)=C+d·A
[0040] Among them, B(t) is the doctor's line of sight focus at time t; C is the direction vector of the eye center in three-dimensional space; d is the distance factor, which represents the distance from the eye center to the line of sight focus.
[0041] Optionally, the rendering module includes:
[0042] Obtaining the grayscale and transparency of the two-dimensional medical image data by analyzing the two-dimensional medical image data;
[0043] Obtaining a three-dimensional medical image by combining the grayscale and transparency of the two-dimensional medical image data through a ray projection model;
[0044] The three-dimensional medical image is rendered in real time through a real-time rendering model.
[0045] Optionally, the rendering module includes:
[0046] Recording the point, duration, and movement trajectory of the doctor's sight focus in the three-dimensional medical image;
[0047] When it is detected through the clustering model that the doctor's sight focus stays at the stay point for a period exceeding a time threshold, the three-dimensional medical image corresponding to the stay point is adjusted to a positive viewing angle so that the lesion is not blocked.
[0048] Optionally, the rendering module further includes:
[0049] Recording the movement trajectory of the doctor's sight focus in the three-dimensional medical image;
[0050] When the motion trajectory is a rapid movement from the three-dimensional medical image at the normal viewing angle to the edge area, the three-dimensional medical image is enlarged to ensure that the lesion is not blocked;
[0051] When the motion trajectory is a rapid movement from the edge area of the three-dimensional medical image to the normal viewing angle, the three-dimensional medical image is reduced to ensure that the lesion is not blocked.
[0052] This specification also provides an electronic device, wherein the electronic device includes:
[0053] processor; and,
[0054] A memory storing computer executable instructions, which when executed cause the processor to perform any of the above methods.
[0055] The present specification also provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, any of the above methods is implemented.
[0056] The present invention is used to assist medical examination and treatment, solves the problems of image occlusion and inconvenient operation, and improves the doctor's work efficiency and operation accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 creative work.
[0058] Figure 1 A schematic diagram of the principle of a method for real-time rendering of medical images based on eye tracking provided in an embodiment of this specification;
[0059] Figure 2 A schematic diagram of the structure of a device for real-time rendering of medical images based on eye tracking provided in an embodiment of this specification;
[0060] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification;
[0061] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification. DETAILED DESCRIPTION
[0062] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.
[0063] The following is combined with Figure 1-4 The exemplary embodiments of the present invention are described more fully. However, the exemplary embodiments can be implemented in various forms, and it should not be understood that the present invention is limited to the embodiments set forth herein. On the contrary, providing these exemplary embodiments can make the present invention more comprehensive and complete, and it is more convenient to fully convey the inventive concept to those skilled in the art. The same reference numerals in the figures represent the same or similar elements, components or parts, and thus their repeated description will be omitted.
[0064] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.
[0065] In the description of specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.
[0066] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0067] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0068] The term "and / or" or "and / or" includes all combinations of any one or more of the associated listed items.
[0069] Figure 1 A schematic diagram of a method for real-time rendering of medical images based on eye tracking provided in an embodiment of this specification, the method may include:
[0070] S110: Acquire the doctor's eye movement data, eyeball center data, and two-dimensional medical imaging data;
[0071] Optionally, the method of obtaining the doctor's eye movement data includes obtaining the doctor's eye movement data and eye center data through a high-precision eye tracking device.
[0072] In the specific implementation of this specification, the high-precision eye tracking device includes Tobii Pro. At the same time, a Kalman filter is used to filter noise from the collected eye movement data, such as interference caused by changes in ambient light and device jitter. The high-precision eye tracking device is installed on the VR head-mounted device worn by the doctor, and the doctor's eye movement data and eye center data are captured in real time through high-frequency sampling (such as 60 times per second).
[0073] Acquire two-dimensional medical imaging data through bronchoscopes, lung imaging equipment, radial ultrasound equipment, etc.
[0074] S120: Based on the doctor's eye movement data and the eyeball center data, respectively determine the direction vector of the doctor's line of sight in the three-dimensional space and the direction vector of the eyeball center in the three-dimensional space;
[0075] Optionally, determining the direction vector of the doctor's sight line in three-dimensional space based on the doctor's eye movement data includes:
[0076]
[0077] Among them, the eye movement data includes eye movement data a in the horizontal line of sight and eye movement data b in the vertical line of sight; A is the direction vector of the doctor's line of sight in three-dimensional space; cos(b)·cos(a) represents the projection of the eye movement data on the x-axis; cos(b)·sin(a) represents the projection of the eye movement data on the y-axis; sin(b) represents the projection of the eye movement data on the z-axis.
[0078] S130: Determine the doctor's sight focus by combining the ray projection model with the direction vector of the doctor's sight in the three-dimensional space;
[0079] Optionally, the determining the doctor's sight focus by combining the ray projection model with the direction vector of the doctor's sight in three-dimensional space includes:
[0080] B(t)=C+d·A
[0081] Among them, B(t) is the doctor's line of sight focus at time t; C is the direction vector of the eye center in three-dimensional space; d is the distance factor, which represents the distance from the eye center to the line of sight focus.
[0082] S140: Rendering a three-dimensional medical image based on the two-dimensional medical image data, and dynamically adjusting the viewing angle based on the doctor's line of sight to ensure that the lesion is not obstructed.
[0083] Optionally, rendering a three-dimensional image based on the two-dimensional medical image data includes:
[0084] Obtaining the grayscale and transparency of the two-dimensional medical image data by analyzing the two-dimensional medical image data;
[0085] Obtaining a three-dimensional medical image by combining the grayscale and transparency of the two-dimensional medical image data through a ray projection model;
[0086] The three-dimensional medical image is rendered in real time through a real-time rendering model.
[0087] In the specific implementation of this specification, the two-dimensional medical image data usually includes the gray value of each pixel, which represents the brightness or density of the pixel. The gray value is usually an integer between 0 (black) and 255 (white). For higher precision data, the gray value may be a floating point number.
[0088] In two-dimensional medical images, transparency is usually not given directly, but needs to be determined indirectly based on the grayscale value of the pixel or other attributes (such as tissue type). Different tissues and structures may need to be set with different transparency so that the internal structure can be clearly displayed when generating a three-dimensional image.
[0089] Ray Casting is a technique commonly used in volume rendering of medical images. In this process, simulated light rays travel through the three-dimensional volume data space from the observer's perspective and intersect with each voxel in the volume data.
[0090] For each intersection of a ray and a voxel, the color and transparency of the point are calculated based on the grayscale value of the voxel and a preset transparency mapping function. The transparency mapping function can be customized as needed to highlight specific tissues or structures.
[0091] When light passes through the volume data space, it accumulates the color and transparency values of the voxels it passes through. This process is usually implemented using a forward compositing (Front-to-Back Composition) or a backward compositing (Back-to-Front Composition) algorithm.
[0092] Finally, the final 3D medical image is generated based on the accumulated color and transparency values.
[0093] In medical applications, real-time rendering of 3D medical images is required so that doctors or researchers can view and analyze images in real time. Real-time rendering requires the system to generate high-quality images in a short time and respond to user interactions (such as rotation, zooming, translation, etc.).
[0094] In order to achieve real-time rendering, graphics hardware (such as GPU) can be used for acceleration. Graphics hardware can process a large number of computing tasks in parallel and has specialized optimization algorithms and data structures to support efficient graphics rendering.
[0095] Real-time rendering usually uses a rendering pipeline to process input 3D medical image data. The rendering pipeline includes vertex shader, geometry shader, fragment shader and other stages. Each stage processes the image data and finally generates an image rendered to the screen.
[0096] In the real-time rendering process, user interaction factors also need to be considered. The system needs to be able to respond to user input operations and update the rendered image in real time. This usually requires the use of event processing, animation control and other technologies.
[0097] Optionally, dynamically adjusting the viewing angle based on the doctor's sight focus to ensure that the lesion is not blocked includes:
[0098] Recording the point, duration, and movement trajectory of the doctor's sight focus in the three-dimensional medical image;
[0099] When it is detected through the clustering model that the doctor's sight focus stays at the stay point for a period exceeding a time threshold, the three-dimensional medical image corresponding to the stay point is adjusted to a positive viewing angle so that the lesion is not blocked.
[0100] In a specific embodiment of the present specification, the position of the doctor's sight focus in the three-dimensional medical image is recorded in real time by eye tracking technology (such as Tobii Pro equipment). When the sight focus stays stably in an area for more than a certain time (for example, 100 milliseconds), the position is marked as a stay point. The duration of each stay point is recorded, that is, the total time from the doctor starting to look at the point to moving away. The doctor's sight focus position is continuously recorded to form a sight movement trajectory.
[0101] Based on actual application requirements, a suitable time threshold (e.g., 500 milliseconds) is set. When the doctor's sight stays at a certain stop point for longer than this time threshold, it can be considered that the doctor pays special attention to this area.
[0102] If the location of the lesion in the 3D medical image is known, it can be matched directly. If it is unknown, the doctor's gaze stop point and movement trajectory, as well as possible machine learning algorithms (such as image segmentation, classification, etc.) can be combined to identify possible lesion areas.
[0103] When it is detected that the doctor's sight stays at a certain point for a time exceeding the time threshold, and the point is located at or close to the lesion area, the system automatically triggers the image adjustment function, and rotates, scales or translates the 3D medical image to make the lesion area located at the center or prominent position of the image, ensuring that the lesion is unobstructed and clearly visible. Of course, the display effect of the lesion area can be further enhanced, such as increasing contrast and brightness, so that doctors can observe and analyze more clearly.
[0104] If a doctor spends a long time in multiple areas, a clustering model (such as K-Means) can be used to perform cluster analysis on the stay points. By calculating the distance and density between the stay points, similar stay points can be grouped together to identify the doctor's intention.
[0105] Optionally, the dynamically adjusting the viewing angle based on the doctor's sight focus to ensure that the lesion is not blocked also includes:
[0106] Recording the movement trajectory of the doctor's sight focus in the three-dimensional medical image;
[0107] When the motion trajectory is a rapid movement from the three-dimensional medical image at the normal viewing angle to the edge area, the three-dimensional medical image is enlarged to ensure that the lesion is not blocked;
[0108] When the motion trajectory is a rapid movement from the edge area of the three-dimensional medical image to the normal viewing angle, the three-dimensional medical image is reduced to ensure that the lesion is not blocked.
[0109] In the specific implementation of this specification, the motion trajectory is smoothed by exponential smoothing technology to avoid jitter affecting system response and ensure the real-time and accuracy of data.
[0110] Analyze the movement trajectory of the sight focus to determine whether it moves quickly from the normal view (i.e., the center or default view of the image) to the edge area, or from the edge area to the normal view. "Fast movement" can be determined by detecting the speed of the change of the sight focus position (e.g., the number of pixels the focus position moves per unit time). A speed threshold can be set according to actual needs, and movements exceeding this threshold are considered "fast movement".
[0111] When the doctor's line of sight is detected to move quickly from the normal view to the edge area, the system should automatically magnify the display of the 3D medical image so that the doctor can see the details of the edge area more clearly. The magnification process can be a local magnification centered on the doctor's line of sight, or an intelligent magnification based on the possible location of the lesion in the image. The magnification level can be adjusted as needed to ensure that the lesion is unobstructed and clearly visible.
[0112] When the system detects that the doctor's line of sight moves quickly from the edge area back to the main viewing angle, the system should automatically reduce the display of the 3D medical image so that the doctor can see the entire image again or more contextual information. The zoom-out process can gradually return to the default zoom level, or be intelligently adjusted according to the doctor's line of sight focus position. While the image is being zoomed in and out, the system needs to render and display the adjusted 3D medical image in real time so that the doctor can immediately see the effect of the adjustment. Visual or sound feedback can be provided to confirm that the image has been zoomed in and out according to the doctor's line of sight focus.
[0113] The present invention is used to assist medical examination and treatment, solves the problems of image occlusion and inconvenient operation, and improves the doctor's work efficiency and operation accuracy.
[0114] Figure 2 A schematic diagram of a device for real-time rendering of medical images based on eye tracking provided in an embodiment of this specification, the device may include:
[0115] An acquisition module 10 is used to acquire the doctor's eye movement data, eyeball center data, and two-dimensional medical image data;
[0116] A conversion module 20, for determining a direction vector of the doctor's sight line in three-dimensional space and a direction vector of the eyeball center in three-dimensional space respectively based on the doctor's eye movement data and the eyeball center data;
[0117] A locking module 30, used to determine the doctor's sight focus by combining a ray projection model with a direction vector of the doctor's sight in three-dimensional space;
[0118] The rendering module 40 is used to render a three-dimensional medical image based on the two-dimensional medical image data, and dynamically adjust the viewing angle based on the doctor's line of sight to ensure that the lesion is not blocked.
[0119] Optionally, the method of obtaining the doctor's eye movement data includes obtaining the doctor's eye movement data and eye center data through a high-precision eye tracking device.
[0120] Optionally, the conversion module 20 includes:
[0121]
[0122] Among them, the eye movement data includes eye movement data a in the horizontal line of sight and eye movement data b in the vertical line of sight; A is the direction vector of the doctor's line of sight in three-dimensional space; cos(b)·cos(a) represents the projection of the eye movement data on the x-axis; cos(b)·sin(a) represents the projection of the eye movement data on the y-axis; sin(b) represents the projection of the eye movement data on the z-axis.
[0123] Optionally, the locking module 30 includes:
[0124] B(t)=C+d·A
[0125] Among them, B(t) is the doctor's line of sight focus at time t; C is the direction vector of the eye center in three-dimensional space; d is the distance factor, which represents the distance from the eye center to the line of sight focus.
[0126] Optionally, the rendering module 40 includes:
[0127] Obtaining the grayscale and transparency of the two-dimensional medical image data by analyzing the two-dimensional medical image data;
[0128] Obtaining a three-dimensional medical image by combining the grayscale and transparency of the two-dimensional medical image data through a ray projection model;
[0129] The three-dimensional medical image is rendered in real time through a real-time rendering model.
[0130] Optionally, the rendering module 40 includes:
[0131] Recording the point, duration, and movement trajectory of the doctor's sight focus in the three-dimensional medical image;
[0132] When it is detected through the clustering model that the doctor's sight focus stays at the stay point for a period exceeding a time threshold, the three-dimensional medical image corresponding to the stay point is adjusted to a positive viewing angle so that the lesion is not blocked.
[0133] Optionally, the rendering module 40 further includes:
[0134] Recording the movement trajectory of the doctor's sight focus in the three-dimensional medical image;
[0135] When the motion trajectory is a rapid movement from the three-dimensional medical image at the normal viewing angle to the edge area, the three-dimensional medical image is enlarged to ensure that the lesion is not blocked;
[0136] When the motion trajectory is a rapid movement from the edge area of the three-dimensional medical image to the normal viewing angle, the three-dimensional medical image is reduced to ensure that the lesion is not blocked.
[0137] The functions of the device in the embodiment of the present invention have been described in the above method embodiment, so for details not provided in the description of this embodiment, please refer to the relevant description in the above embodiment, and no further description will be given here.
[0138] Based on the same inventive concept, an embodiment of this specification also provides an electronic device.
[0139] The following describes an electronic device embodiment of the present invention, which can be regarded as a specific physical implementation of the method and device embodiments of the present invention. The details described in the electronic device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above method or device embodiments.
[0140] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Figure 3 The electronic device 300 according to the embodiment of the present invention is described. Figure 3 The electronic device 300 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0141] like Figure 3As shown, the electronic device 300 is in the form of a general computing device. The components of the electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one storage unit 320, a bus 330 connecting different system components (including the storage unit 320 and the processing unit 310), a display unit 340, etc.
[0142] The storage unit stores program codes, which can be executed by the processing unit 310, so that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the above processing method section of this specification. For example, the processing unit 310 can perform the following steps: Figure 1 Steps shown.
[0143] The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 3201 and / or a cache memory unit 3202 , and may further include a read-only memory unit (ROM) 3203 .
[0144] The storage unit 320 may also include a program / utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0145] Bus 330 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0146] The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable viewers to interact with the electronic device 300, and / or any device that enables the electronic device 300 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 350. Furthermore, the electronic device 300 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 360. The network adapter 360 may communicate with other modules of the electronic device 300 through the bus 330. It should be understood that although Figure 3Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0147] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, server, or network device, etc.) to execute the above method according to the present invention. When the computer program is executed by a data processing device, the computer-readable medium can implement the above method of the present invention, that is: Figure 1 The method shown.
[0148] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification.
[0149] accomplish Figure 1 The computer program of the method shown can be stored on one or more computer readable media. The computer readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0150] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0151] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the viewer computing device, partially on the viewer device, as a stand-alone software package, partially on the viewer computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the viewer computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0152] In summary, the present invention can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0153] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0154] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0155] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for real-time rendering of medical images based on eye tracking, characterized in that: include: Obtain the doctor's eye movement data, eye center data, and two-dimensional medical imaging data; Based on the doctor's eye movement data and the eyeball center data, respectively determine the direction vector of the doctor's line of sight in the three-dimensional space and the direction vector of the eyeball center in the three-dimensional space; Determine the doctor's sight focus by combining the direction vector of the doctor's sight in three-dimensional space through a ray projection model; A three-dimensional medical image is rendered based on the two-dimensional medical image data, and the viewing angle is dynamically adjusted based on the doctor's line of sight to ensure that the lesion is not obstructed.
2. The method for real-time rendering of medical images based on eye tracking according to claim 1, characterized in that: The method of obtaining the doctor's eye movement data includes obtaining the doctor's eye movement data and eye center data through a high-precision eye tracking device.
3. The method for real-time rendering of medical images based on eye tracking according to claim 2, characterized in that: The step of determining the direction vector of the doctor's sight line in the three-dimensional space based on the doctor's eye movement data includes: Among them, the eye movement data includes eye movement data a in the horizontal line of sight and eye movement data b in the vertical line of sight; A is the direction vector of the doctor's line of sight in three-dimensional space; cos(b)·cos(a) represents the projection of the eye movement data on the x-axis; cos(b)·sin(a) represents the projection of the eye movement data on the y-axis; sin(b) represents the projection of the eye movement data on the z-axis.
4. The method for real-time rendering of medical images based on eye tracking according to claim 3, characterized in that: The step of determining the doctor's sight focus by combining the ray projection model with the direction vector of the doctor's sight in three-dimensional space includes: B(t)=C+d·A Among them, B(t) is the doctor's line of sight focus at time t; C is the direction vector of the eye center in three-dimensional space; d is the distance factor, which represents the distance from the eye center to the line of sight focus.
5. The method for real-time rendering of medical images based on eye tracking according to claim 1, characterized in that: The rendering to obtain a three-dimensional image based on the two-dimensional medical image data includes: Obtaining the grayscale and transparency of the two-dimensional medical image data by analyzing the two-dimensional medical image data; Obtaining a three-dimensional medical image by combining the grayscale and transparency of the two-dimensional medical image data through a ray projection model; The three-dimensional medical image is rendered in real time through a real-time rendering model.
6. The method for real-time rendering of medical images based on eye tracking according to claim 5, characterized in that: The method of dynamically adjusting the viewing angle based on the doctor's sight focus to ensure that the lesion is not blocked includes: Recording the point, duration, and movement trajectory of the doctor's sight focus in the three-dimensional medical image; When it is detected through the clustering model that the doctor's sight focus stays at the stay point for a period exceeding a time threshold, the three-dimensional medical image corresponding to the stay point is adjusted to a positive viewing angle so that the lesion is not blocked.
7. The method for real-time rendering of medical images based on eye tracking according to claim 5, characterized in that: The method of dynamically adjusting the viewing angle based on the doctor's sight focus to ensure that the lesion is not blocked also includes: Recording the movement trajectory of the doctor's sight focus in the three-dimensional medical image; When the motion trajectory is a rapid movement from the three-dimensional medical image at the normal viewing angle to the edge area, the three-dimensional medical image is enlarged to ensure that the lesion is not blocked; When the motion trajectory is a rapid movement from the edge area of the three-dimensional medical image to the normal viewing angle, the three-dimensional medical image is reduced to ensure that the lesion is not blocked.
8. A device for real-time rendering of medical images based on eye tracking, characterized in that: include: An acquisition module is used to acquire the doctor's eye movement data, eyeball center data, and two-dimensional medical imaging data; A conversion module, used to determine the direction vector of the doctor's line of sight in the three-dimensional space and the direction vector of the eyeball center in the three-dimensional space respectively based on the doctor's eye movement data and the eyeball center data; A locking module, used to determine the doctor's sight focus by combining a ray projection model with the direction vector of the doctor's sight in three-dimensional space; A rendering module is used to render a three-dimensional medical image based on the two-dimensional medical image data, and dynamically adjust the viewing angle based on the doctor's line of sight to ensure that the lesion is not obstructed.
9. An electronic device, wherein: The electronic device includes: processor; and, A memory storing computer executable instructions which, when executed, cause the processor to perform a method according to any one of claims 1-7.
10. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method of any one of claims 1 to 7 is implemented.
