Web end Dicom image browsing method and device, equipment and storage medium

By using the Cornerstone library when loading Dicom images on the Web, it first parses and saves the tag information of the first image, and dynamically loads JPG format images when scrolling, which solves the problems of high memory usage and low efficiency in the process of loading and parsing Dicom images. , achieving efficient image display and diagnosis.

CN118762806APending Publication Date: 2024-10-11BEIJING SHENRUI BOLIAN TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410759254.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The high memory usage and low efficiency caused by the loading and parsing process of Dicom images affect doctors' diagnostic work. Especially when scrolling, it may cause the browser to crash or the system to freeze, increasing the risk of misdiagnosis or missed diagnosis.

Method used

By introducing the Cornerstone library, the first image of the Dicom sequence is loaded and parsed, its label information is saved, and JPG format images are dynamically loaded when scrolling, reducing memory usage, and the complete Dicom image is loaded when the scrolling stops to ensure accurate diagnosis. sex.

Benefits of technology

It significantly improves the loading and display speed of Dicom images, reduces memory pressure, provides an efficient and convenient image reading and diagnosis tool, reduces the risk of misdiagnosis, and improves doctors' work efficiency and diagnostic accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762806A_ABST
    Figure CN118762806A_ABST
Patent Text Reader

Abstract

The invention provides a Web end Dicom image browsing method and device, equipment and a storage medium, belongs to the field of medical images, and solves the technical problems that when an existing Dicom image is browsed, the memory pressure of a browser is large, the analysis speed is low, and the film reading efficiency of a doctor is affected. The method comprises the following steps: responding to a browsing starting node, analyzing a Dicom sequence, storing label information of Dicom images and displaying a first Dicom image; responding to the rolling browsing operation, converting Dicom images contained in the rolling browsing process into JPG format images, and dynamically loading the JPG format images to the Web end in sequence; and in response to the rolling browsing stop node, pulling a stop Dicom image corresponding to the rolling browsing stop node, updating tag information corresponding to the stop Dicom image, and loading the tag information to the Web end. According to the method, the browsing experience of the Dicom image can be optimized, the memory pressure of a Web end browser is reduced, the analysis speed is improved, and the smoothness of film reading diagnosis of a doctor is ensured. Meanwhile, the efficient and accurate browsing effect is achieved. In addition, the management and browsing efficiency of the Dicom data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical imaging technology, and in particular to a method, device and storage medium for browsing Dicom images on a Web side. Background Art

[0002] As an important tool in medical diagnosis, Dicom images usually carry a wealth of information and their file sizes are often large. Generally speaking, the size of a standard Dicom image file is more than 200Kb. This is mainly because in addition to the image content, the image file also contains a large amount of metadata, that is, tag information (label information). These metadata are crucial for the interpretation and analysis of images. They provide a variety of important information about imaging equipment, scanning parameters, patient information, etc.

[0003] Each Dicom sequence contains a large number of images, usually at least 200 images. It takes a certain amount of time to load and display each image, about 12ms. Therefore, if the entire Dicom sequence is loaded at once, the total time required will be very considerable, reaching about 2400ms. This undoubtedly increases the waiting time for doctors and affects work efficiency.

[0004] However, the analysis of Dicom images is not limited to loading and displaying images. Each image contains a large amount of tag information, which is crucial for image interpretation and diagnosis. However, it takes a certain amount of time to parse these tag information. According to practical experience, an image of about 200kb takes about 240ms to parse.

[0005] When scrolling through Dicom images, doctors need to constantly pull new images and parse them. All images need to be preloaded from the beginning to the end, which places a high demand on memory. Assuming that a Dicom sequence contains 200 images of about 200kb, it will take about 8000ms to load and parse these images. During this time, the doctor's browsing experience will be seriously affected, which may lead to misdiagnosis or missed diagnosis.

[0006] What's more serious is that when scrolling through Dicom images, the memory usage surges significantly. When the number of images loaded reaches a certain amount, the browser's memory usage increases rapidly. For example, when loading about 500 images, the browser's memory usage will exceed 1G. For some computers with less memory, this will cause the browser to crash or the system to freeze, seriously affecting the doctor's normal reading and diagnosis. Summary of the invention

[0007] In view of the problems of high memory pressure and slow parsing speed when loading and displaying Dicom images on the Web side, the embodiments of the present invention provide a method and device for browsing Dicom images on the Web side, aiming to improve the efficiency of loading Dicom images on the Web side, so as not to affect the normal film reading and diagnosis of doctors.

[0008] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0009] In a first aspect, the present invention provides a method for browsing Dicom images on a Web, the method comprising:

[0010] Respond to the browsing start node, parse the Dicom sequence, save the label information of the Dicom image and display the first Dicom image;

[0011] In response to the scrolling operation, the Dicom images contained in the scrolling process are converted into JPG format images and dynamically loaded to the Web end in sequence;

[0012] In response to the scrolling stop node, pull the stop Dicom image corresponding to the scrolling stop node, update the tag information corresponding to the stop Dicom image, and then load it to the Web end.

[0013] In one embodiment, parsing the Dicom sequence, saving the tag information of the Dicom image and displaying the first Dicom image includes:

[0014] Introduce the Cornerstone library into the Web project;

[0015] Send a request to the server through the Web-side code, wherein the request contains the identification information of the Dicom sequence to be loaded;

[0016] The server receives the request and searches for the corresponding Dicom image data according to the identification information, and returns the Dicom image data to the Web end as a response;

[0017] The Web end receives the server response and uses the Cornerstone library to parse and load the Dicom image data;

[0018] The tag information obtained by parsing is saved locally on the Web side, and the first loaded Dicom image is rendered into the HTML element for page display.

[0019] In one embodiment, converting the Dicom images involved in the scrolling process into JPG format images and dynamically loading them to the Web end in sequence includes:

[0020] Monitor the scrolling process in the scrolling operation;

[0021] Extract the Dicom images switched during scrolling and browsing to obtain the Dicom image set to be converted;

[0022] Receive a Dicom image set to be converted and parse the Dicom images in the Dicom image set to be converted based on the server, generate a JPG format image of a binary stream corresponding to the Dicom image, and obtain a JPG format image set;

[0023] Create a Java interface, wherein the Java interface is used to return a JPG format image in a JPG format image set;

[0024] Use ajax technology to pull the JPG format image returned by the Java interface;

[0025] Dynamically load the pulled JPG format images to the Web side in sequence.

[0026] In one embodiment, dynamically loading the pulled JPG format images to the Web end in sequence includes:

[0027] Get the original order of the Dicom images in the Dicom image set to be converted;

[0028] Use the original order as the default display order of JPG image sets on the Web;

[0029] Pull JPG format images from the JPG format image set;

[0030] Load the pulled JPG format images to the Web client and display them in the default display order.

[0031] In one embodiment, in response to the scrolling stop node, pulling the stop Dicom image corresponding to the scrolling stop node includes:

[0032] Monitor the scrolling stop node in the scrolling operation;

[0033] In response to the scrolling stop node, pull the JPG format image corresponding to the scrolling stop node to obtain the stop JPG image;

[0034] Pull the Dicom image corresponding to the stop JPG image to get the stop Dicom image.

[0035] In one embodiment, the updating and stopping of the tag information corresponding to the Dicom image and then loading it to the Web terminal comprises:

[0036] Pull and load the first two Dicom images in the Dicom sequence;

[0037] Read the tag information of the first two saved Dicom images;

[0038] According to the characteristic data of the label information, the association relationship between adjacent Dicom images is obtained;

[0039] According to the association relationship, the label information corresponding to the Dicom image is calculated;

[0040] Load the Dicom image and the calculated tag information to the Web client.

[0041] In one embodiment, it further includes:

[0042] In response to the browse start node, the window width and window position of the Dicom image are read and saved as the original window width and window position;

[0043] In response to the scrolling operation, the window width and window position of the JPG format image are read as temporary window width and window position, and the JPG format image is loaded into the Web end according to the temporary window width and window position;

[0044] In response to the scrolling stop node, the Dicom image is stopped and loaded to the Web end according to the original window width and window position.

[0045] In one embodiment, it further includes:

[0046] There are at least two Dicom sequences, and one of the Dicom sequences is selected as a reference sequence;

[0047] Obtain the position difference in three-dimensional space between the first two Dicom images in each Dicom sequence except the reference sequence;

[0048] Load the position of the Dicom image of the reference sequence stop in three-dimensional space when the scrolling stops, and get the stop position;

[0049] The Dicom images to be displayed for each Dicom sequence except the reference sequence are determined according to the stop position and the position difference.

[0050] In a second aspect, the present invention provides a device for browsing Dicom images on a Web, the device comprising:

[0051] First response module: used to respond to the browsing start node, parse the Dicom sequence, save the label information of the Dicom image and display the first Dicom image;

[0052] The second response module: used to respond to the scrolling operation, convert the Dicom images involved in the scrolling process into JPG format images and dynamically load them to the Web end in sequence;

[0053] The third response module is used to respond to the scrolling stop node, pull the stop Dicom image corresponding to the scrolling stop node, update the label information corresponding to the stop Dicom image, and then load it to the Web end.

[0054] In one embodiment, the first response module parses the Dicom sequence, saves the tag information of the Dicom image, and displays the first Dicom image, including:

[0055] Introduce the Cornerstone library into the Web project;

[0056] Send a request to the server through the Web-side code, wherein the request contains the identification information of the Dicom sequence to be loaded;

[0057] The server receives the request and searches for the corresponding Dicom image data according to the identification information, and returns the Dicom image data to the Web end as a response;

[0058] The Web end receives the server response and uses the Cornerstone library to parse and load the Dicom image data;

[0059] The tag information obtained by parsing is saved locally on the Web side, and the first loaded Dicom image is rendered into the HTML element for page display.

[0060] In one embodiment, the second response module converts the Dicom images involved in the scrolling process into JPG format images and dynamically loads them to the Web end in sequence, including:

[0061] Monitor the scrolling process in the scrolling operation;

[0062] Extract the Dicom images switched during scrolling and browsing to obtain the Dicom image set to be converted;

[0063] Receive a Dicom image set to be converted and parse the Dicom images in the Dicom image set to be converted based on the server, generate a JPG format image of a binary stream corresponding to the Dicom image, and obtain a JPG format image set;

[0064] Create a Java interface, wherein the Java interface is used to return a JPG format image in a JPG format image set;

[0065] Use ajax technology to pull the JPG format image returned by the Java interface;

[0066] Dynamically load the pulled JPG format images to the Web side in sequence.

[0067] In one embodiment, dynamically loading the pulled JPG format images to the Web end in sequence includes:

[0068] Get the original order of the Dicom images in the Dicom image set to be converted;

[0069] Use the original order as the default display order of JPG image sets on the Web;

[0070] Pull JPG format images from the JPG format image set;

[0071] Load the pulled JPG format images to the Web client and display them in the default display order.

[0072] In one embodiment, in the third response module, responding to the scrolling stop node and pulling the stop Dicom image corresponding to the scrolling stop node includes:

[0073] Monitor the scrolling stop node in the scrolling operation;

[0074] In response to the scrolling stop node, pull the JPG format image corresponding to the scrolling stop node to obtain the stop JPG image;

[0075] Pull the Dicom image corresponding to the stop JPG image to get the stop Dicom image.

[0076] In one embodiment, the updating and stopping of the tag information corresponding to the Dicom image and then loading it to the Web terminal comprises:

[0077] Pull and load the first two Dicom images in the Dicom sequence;

[0078] Read the tag information of the first two saved Dicom images;

[0079] According to the characteristic data of the label information, the association relationship between adjacent Dicom images is obtained;

[0080] According to the association relationship, the label information corresponding to the Dicom image is calculated;

[0081] Load the Dicom image and the calculated tag information to the Web client.

[0082] In one embodiment, a window width and window level configuration module is further included, and the window width and window level configuration module is specifically used for:

[0083] In response to the browse start node, the window width and window position of the Dicom image are read and saved as the original window width and window position;

[0084] In response to the scrolling operation, the window width and window position of the JPG format image are read as temporary window width and window position, and the JPG format image is loaded into the Web end according to the temporary window width and window position;

[0085] In response to the scrolling stop node, the Dicom image is stopped and loaded to the Web end according to the original window width and window position.

[0086] In one embodiment, a synchronous linkage display module is further included, and the synchronous linkage display module is specifically used for:

[0087] There are at least two Dicom sequences, and one of the Dicom sequences is selected as a reference sequence;

[0088] Obtain the position difference in three-dimensional space between the first two Dicom images in each Dicom sequence except the reference sequence;

[0089] Load the position of the Dicom image of the reference sequence stop in three-dimensional space when the scrolling stops, and get the stop position;

[0090] The Dicom images to be displayed for each Dicom sequence except the reference sequence are determined according to the stop position and the position difference.

[0091] In a third aspect, the present invention provides an electronic device, comprising:

[0092] processor, memory, and an interface for communicating with a gateway;

[0093] The memory is used to store programs and data, and the processor calls the program stored in the memory to execute a method for browsing Dicom images on a Web side provided in any one of the first aspects.

[0094] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a program, and when the program is executed by a processor, the program is used to execute a method for browsing Dicom images on a Web side provided in any one of the first aspects.

[0095] As can be seen from the above description, the embodiment of the present invention provides a browsing method for Dicom images on the Web side. First, the first Dicom image of the Dicom sequence is loaded, and all the label information of the Dicom image is captured while loading the first image. When the user scrolls and browses, the original data of all Dicom images will not be loaded at one time, but the JPG format image of the corresponding Dicom image will be dynamically pulled and loaded according to the user's scrolling position, which can greatly reduce the memory usage of the Web side and improve the image loading speed. During the scrolling process, the user sees images in JPG format, which are compressed to ensure image quality and reduce memory consumption. When the user stops scrolling, the last Dicom image corresponding to the scrolling stop node in the Dicom sequence is immediately responded and loaded to ensure that the user can see the complete, uncompressed Dicom image after browsing, so as to make a more accurate diagnosis. By adopting this technical solution, during the scrolling process, only the last image of the scrolling needs to be loaded, and the images displayed in the middle are all jpg format images. This processing method will significantly reduce the memory pressure on the Web side, and the parsing speed will also be greatly improved. Since the speed of loading and display has been significantly improved, doctors can perform film reading and diagnosis more efficiently, thereby improving work efficiency and diagnostic accuracy. It is worth mentioning that the present invention not only solves the memory and speed problems of loading Dicom images on the Web side, but also fully considers the user's operating habits and diagnostic needs. By dynamically loading and displaying JPG format images, users are provided with a smooth and convenient film reading experience. At the same time, by capturing the label information of Dicom images, users can also be provided with more auxiliary diagnostic information to help doctors understand the patient's condition more comprehensively. By optimizing the way the Web side loads Dicom images, the loading speed is improved and the memory pressure is reduced, providing doctors with an efficient and convenient film reading and diagnosis tool. BRIEF DESCRIPTION OF THE DRAWINGS

[0096] Figure 1 FIG. 1 is a flow chart of a method for browsing Dicom images on a Web side provided by an embodiment of the present invention;

[0097] Figure 2 FIG. 1 is a schematic diagram of the structure of a device for browsing Dicom images on a Web side provided by an embodiment of the present invention;

[0098] Figure 3 FIG. 1 is a schematic structural diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0099] In order to make the purpose, technical solution and advantages of the present invention clearer and more understandable, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0100] Based on the shortcomings of the prior art, the embodiment of the present invention provides a specific implementation method of a method for browsing Dicom images on a Web side, such as Figure 1 As shown, the method specifically includes:

[0101] S110: responding to the browsing start node, parsing the Dicom sequence, saving the tag information of the Dicom image and displaying the first Dicom image.

[0102] Specifically, a listener is added for the scroll browsing event. When the scroll browsing event is listened to, the start node of the browsing is immediately responded to, and the Dicom sequence is parsed at the start node, the tag information of the Dicom image is saved, and the first Dicom image in the Dicom sequence is displayed on the Web side.

[0103] S120: In response to the scrolling operation, the Dicom images included in the scrolling process are converted into JPG format images and dynamically loaded into the Web end in sequence.

[0104] Specifically, when the listener detects a scrolling operation, it continues to monitor the scrolling process, pulls the Dicom images except the first Dicom image and the last Dicom image in the entire scrolling operation, converts them into corresponding JPG format images, and dynamically loads them to the Web end in sequence.

[0105] S130: Respond to the scrolling stop node, pull the stop Dicom image corresponding to the scrolling stop node, update the tag information corresponding to the stop Dicom image, and then load it to the Web end.

[0106] Specifically, when the listener detects that the scrolling browsing stops, it immediately responds to the scrolling browsing stop node, pulls the Dicom image corresponding to the node as the stop Dicom image, and updates the tag information corresponding to the stop Dicom image according to the locally saved tag information, and then loads the stop Dicom image and its corresponding tag information to the Web end for display.

[0107] In this embodiment, first, the first Dicom image of the Dicom sequence is loaded, and all the label information of the Dicom image is captured while loading the first image. When the user scrolls and browses, the original data of all Dicom images will not be loaded at one time, but the JPG format image of the corresponding Dicom image will be dynamically pulled and loaded according to the user's scrolling position, which can greatly reduce the memory usage of the Web end and improve the image loading speed. During the scrolling process, the user sees images in JPG format, which are compressed to ensure image quality and reduce memory consumption. When the user stops scrolling, the last Dicom image corresponding to the scrolling stop node in the Dicom sequence is immediately responded and loaded to ensure that the user can see the complete, uncompressed Dicom image after browsing, so as to make a more accurate diagnosis. By adopting this technical solution, during the scrolling process, only the last image of the scrolling needs to be loaded, and the images displayed in the middle are all in jpg format. This processing method will significantly reduce the memory pressure on the Web end, and the parsing speed will also be greatly improved. Since the speed of loading and display has been significantly improved, doctors can read and diagnose more efficiently, thereby improving work efficiency and diagnostic accuracy. It is worth mentioning that the present invention not only solves the memory and speed problems of loading Dicom images on the Web, but also fully considers the user's operating habits and diagnostic needs. By dynamically loading and displaying JPG format images, it provides users with a smooth and convenient film reading experience. At the same time, by capturing the label information of Dicom images, it can also provide users with more auxiliary diagnostic information to help doctors understand the patient's condition more comprehensively. By optimizing the way Dicom images are loaded on the Web, the loading speed is improved and the memory pressure is reduced, providing doctors with an efficient and convenient film reading and diagnostic tool.

[0108] In one embodiment of the present invention, parsing the Dicom sequence, saving the tag information of the Dicom image and displaying the first Dicom image in S11 includes the following sub-steps:

[0109] Introduce the Cornerstone library into the Web project;

[0110] Specifically, Cornerstone is an open source library that provides a rich set of APIs and tools that enable Dicom images to be processed on the Web. The Cornerstone library can be installed through package management tools such as npm or yarn and imported into the Web project.

[0111] Send a request to the server through the Web code, and the request contains the identification information of the Dicom sequence to be loaded;

[0112] Specifically, the identification information can be a file name, a file path, or a unique identifier, etc., which is used to find the corresponding Dicom image data on the server. You can use JavaScript's Fetch API or Axios and other libraries to send HTTP requests and pass the identification information as a request parameter to the server.

[0113] The server receives the request and searches for the corresponding Dicom image data according to the identification information, and returns the Dicom image data to the Web end as a response;

[0114] Specifically, after receiving the request, the server will search for the corresponding Dicom image data in the database according to the identification information. These data are usually stored in the server's disk or database and contain rich label information, such as patient information, image parameters, etc. The server will return the found Dicom image data to the Web end as a response.

[0115] The Web end receives the server response and uses the Cornerstone library to parse and load the Dicom image data;

[0116] Specifically, after the Web client receives the response from the server, the Cornerstone library can be used to parse and load the Dicom image data. The Cornerstone library provides an API for parsing the Dicom format, and the image data and related tag information are extracted by calling the API. This tag information is crucial for subsequent image processing and analysis, so it needs to be saved to the local storage of the Web client for subsequent use.

[0117] The tag information obtained by parsing is saved locally on the Web side, and the first loaded Dicom image is rendered into the HTML element for page display.

[0118] Specifically, after the Dicom image data is loaded, it is rendered into an HTML element using the Cornerstone library for page display. By creating a dedicated HTML element (such as <canvas>) as an image container, and use the rendering function provided by the Cornerstone library to draw the image into the container, and adjust the style of the rendered image, such as scaling and rotating, to meet specific display requirements.

[0119] In this embodiment, by introducing the Cornerstone library, sending a request to obtain image data, parsing and loading images, and rendering and displaying, we can achieve efficient processing and display of Dicom images on the Web side.

[0120] In one embodiment of the present invention, converting the Dicom images involved in the scrolling process into JPG format images and dynamically loading them to the Web end in sequence in S120 includes the following sub-steps:

[0121] Monitor the scrolling process in the scrolling operation;

[0122] Specifically, the scrolling process in the scrolling operation is monitored. By monitoring the user's scrolling action, the user's browsing progress and position are tracked in real time, providing accurate data support for subsequent operations. When monitoring the scrolling process, JavaScript and other technologies are used to capture and process the scrolling event, thereby obtaining the user's scrolling information.

[0123] Extract the Dicom images switched during scrolling and browsing to obtain the Dicom image set to be converted;

[0124] Specifically, the Dicom images switched during the scrolling browsing process are extracted, that is, how many Dicom images are switched during the scrolling browsing process, and these Dicom images are extracted to obtain the Dicom image set to be converted, so as to prepare for subsequent conversion into JPG format images.

[0125] Receive a Dicom image set to be converted and parse the Dicom images in the Dicom image set to be converted based on the server, generate a JPG format image of a binary stream corresponding to the Dicom image, and obtain a JPG format image set;

[0126] Specifically, after extracting the Dicom image, it is sent to the server for parsing and conversion. After receiving the Dicom image set to be converted, the server will use professional image processing algorithms and tools to parse and process each Dicom image and generate a JPG format image of the binary stream corresponding to the Dicom image. In this way, a JPG format image set is obtained, which contains all the converted JPG format images.

[0127] Create a Java interface, which is used to return a JPG format image in a JPG format image set;

[0128] Specifically, a Java interface is created, the main function of which is to return the JPG format image in the JPG format image set. By calling this interface, the Web end can obtain the converted JPG format image and perform subsequent display and processing.

[0129] Use ajax technology to pull the JPG format image returned by the Java interface;

[0130] Specifically, Ajax technology can realize asynchronous data interaction with the server without reloading the entire page. Through Ajax technology, JPG format images can be pulled from the server in real time and loaded into the Web page.

[0131] Dynamically load the pulled JPG format images to the Web end in sequence;

[0132] Specifically, the corresponding JPG format images are dynamically loaded and displayed according to the user's scrolling progress and position. In this way, the user can see the converted JPG format images in real time during the scrolling process without waiting for the entire page to be loaded.

[0133] In this embodiment, the Dicom image can be converted into a JPG format image, and the JPG format image can be displayed during the scrolling browsing process. This method not only reduces the memory pressure and improves the browsing speed, but also provides users with a smoother and more convenient medical image browsing experience.

[0134] Due to the fast scrolling speed, users often request to load multiple images almost at the same time. To ensure that the images can be loaded correctly in the scrolling order and that the required images can be correctly displayed during the browsing process, the following steps are specially formulated:

[0135] Get the original order of the Dicom images in the Dicom image set to be converted;

[0136] Use the original order as the default display order of JPG image sets on the Web;

[0137] Pull JPG format images from the JPG format image set;

[0138] Load the pulled JPG format images to the Web client and display them in the default display order.

[0139] In detail, among two adjacent JPG format images, if the earlier JPG format image is pulled first and the later JPG format image is pulled later, they will be displayed in the order of the earlier JPG format image to the later JPG format image; among two adjacent JPG format images, if the later JPG format image is pulled first and the earlier JPG format image is pulled later, they will be displayed in the order of the earlier JPG format image to the later JPG format image.

[0140] For example, if the original sequence is: JPG format image A to JPG format image B, if JPG format image A is pulled first, and then JPG format image B is pulled, if the image loading order is A to B, it will be displayed normally; if JPG format image B is loaded first, wait for JPG format image A to be loaded, and then display it in the order of A to B.

[0141] In one embodiment of the present invention, in response to the scrolling stop node in S130, pulling the stop Dicom image corresponding to the scrolling stop node, updating the tag information corresponding to the stop Dicom image and then loading it to the Web end includes the following steps:

[0142] Monitor the scrolling stop node in the scrolling operation;

[0143] Specifically, the method for determining the scrolling stop node is:

[0144] Step 1: Create a timer;

[0145] Step 2: Set the waiting time for the timer (for example, 200ms) and assign the scrolling time interval to a numerical variable;

[0146] Step 3: If the value of the numerical variable is less than the value of the waiting time, destroy the timer and return to step 1;

[0147] Step 4: If the value of the numerical variable is greater than the value of the waiting time, the moment corresponding to the waiting time is determined to be the scrolling stop node.

[0148] In response to the scrolling stop node, pull the JPG format image corresponding to the scrolling stop node to obtain the stop JPG image;

[0149] Specifically, once a scrolling stop node is detected, a JPG format image corresponding to the node is pulled, and the JPG format image is used as the stop JPG image.

[0150] Pull the Dicom image corresponding to the stop JPG image to get the stop Dicom image;

[0151] Specifically, the Dicom image corresponding to the stopped JPG image is loaded through the DOM container canvas.

[0152] Pull and load the first two Dicom images in the Dicom sequence;

[0153] Read the tag information of the first two saved Dicom images;

[0154] According to the characteristic data of the label information, the association relationship between adjacent Dicom images is obtained;

[0155] According to the association relationship, the label information corresponding to the Dicom image is calculated;

[0156] Load the Dicom image and the calculated tag information to the Web client.

[0157] In this embodiment, by monitoring the scrolling stop node in the scrolling operation and taking corresponding response measures, the loading of JPG format images can be transformed into loading Dicom images, and loaded to the Web end for doctors to diagnose. This process not only improves the efficiency and accuracy of diagnosis, but also provides doctors with more comprehensive and detailed image information, which helps to improve the quality and level of medical services.

[0158] In one embodiment of the present invention, it also includes:

[0159] In response to the browse start node, the window width and window position of the Dicom image are read and saved as the original window width and window position;

[0160] Specifically, the browsing start node is responded to quickly. At this time, the medical image in Dicom format is read and its original window width and window position information is saved. The window width and window position are very important parameters in medical image display. They determine the display range of pixel values ​​in the image, thereby affecting the contrast and brightness of the image. Therefore, saving the original window width and window position information facilitates subsequent browsing operations.

[0161] In response to the scrolling operation, the window width and window position of the JPG format image are read as temporary window width and window position.

[0162] Load the JPG format image to the Web end according to the temporary window width and window position;

[0163] Specifically, when the user performs a scrolling operation during the browsing process, the medical image in JPG format will be quickly responded and read. JPG format is also a common storage format in medical images, but due to the characteristics of its compression algorithm, it may not be able to completely retain the window width and window position information of the original image. Therefore, when reading the JPG image, its window width and window position are processed as temporary window width and window position. Then, according to this temporary window width and window position, the medical image in JPG format is loaded to the Web end for users to browse.

[0164] In response to the scrolling stop node, the Dicom image is stopped and loaded to the Web end according to the original window width and window position.

[0165] Specifically, when the user stops scrolling, the system responds again and loads the medical image in Dicom format to the Web end according to the original window width and window level. In this way, users can get a consistent browsing experience whether browsing JPG images or Dicom images.

[0166] In this embodiment, the processing mechanism of window width and window position is crucial to ensure the consistency of user browsing experience and avoid color differences. Because the difference of window width and window position will directly affect the display effect of the image, it may cause differences in color, contrast, etc., thereby affecting the user's accurate understanding and judgment of image information. Therefore, by ensuring the consistency of window width, a more stable, reliable and efficient medical image browsing experience can be provided to users, which also helps to improve user satisfaction and trust.

[0167] In one embodiment of the present invention, it also includes:

[0168] There are at least two Dicom sequences, and one of them is selected as the reference sequence;

[0169] Specifically, one of the multiple sequences is selected as a reference sequence. The selection of the reference sequence is usually based on its importance, clarity or other relevant factors. Once the reference sequence is determined, the images in other sequences can be processed and synchronized.

[0170] Obtain the position difference in three-dimensional space between the first two Dicom images in each Dicom sequence except the reference sequence;

[0171] Specifically, the position difference between the first two Dicom images in each Dicom sequence except the reference sequence is obtained in three-dimensional space. This step is very important because it can help determine the position offset of images in other sequences relative to the reference sequence. These position differences can be obtained by comparing metadata (such as sliceLocation) or image data in each sequence.

[0172] Load the position of the Dicom image of the reference sequence stop in three-dimensional space when the scrolling stops, and get the stop position;

[0173] Specifically, the position of the Dicom image of the reference sequence stop in the three-dimensional space when the scrolling browsing stops is loaded to obtain the stop position. This step is to ensure that the image position of the reference sequence is known during the browsing process and can be used as a reference point for the positions of other sequence images.

[0174] The Dicom images to be displayed for each Dicom sequence except the reference sequence are determined according to the stop position and the position difference.

[0175] Specifically, after obtaining the stop position and position difference, the Dicom images to be displayed in each Dicom sequence other than the reference sequence can be determined based on this information. Specifically, the position of the images in other sequences can be adjusted according to the position difference so that they are aligned with the images in the reference sequence or maintain a certain relative position relationship, and multiple sequences can be displayed in a linked manner. This can be achieved by viewing and browsing side by side, that is, displaying images of multiple sequences at the same time and ensuring that the positional relationship between them remains consistent. In this way, doctors can compare and analyze images of different sequences in a unified view, so as to more accurately judge the condition and formulate treatment plans.

[0176] In this embodiment, the linkage display of multiple sequence Dicom images can be realized by selecting a reference sequence, obtaining a position difference, determining a stop position, and displaying an image. This method can help doctors browse and analyze medical images more efficiently and improve the accuracy and efficiency of diagnosis.

[0177] Based on the same inventive concept, the embodiment of the present application also provides a browsing device for Dicom images on a Web, which can be used to implement a browsing method for Dicom images on a Web described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem by a browsing device for Dicom images on a Web is similar to that of a browsing method for Dicom images on a Web, the implementation of the device can refer to the implementation of a browsing method for Dicom images on a Web, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0178] like Figure 2 As shown, the present invention provides a device for browsing Dicom images on a Web side, the device comprising:

[0179] The first response module 210 is used to respond to the browsing start node, parse the Dicom sequence, save the tag information of the Dicom image and display the first Dicom image;

[0180] The second response module 220 is used to respond to the scrolling operation, convert the Dicom images involved in the scrolling process into JPG format images and dynamically load them to the Web end in sequence;

[0181] The third response module 230 is used to respond to the scrolling stop node, pull the stop Dicom image corresponding to the scrolling stop node, update the tag information corresponding to the stop Dicom image, and then load it to the Web end.

[0182] In one embodiment of the present invention, the first response module 210 parses the Dicom sequence, saves the tag information of the Dicom image, and displays the first Dicom image, including:

[0183] Introduce the Cornerstone library into the Web project;

[0184] Send a request to the server through the Web code, and the request contains the identification information of the Dicom sequence to be loaded;

[0185] The server receives the request and searches for the corresponding Dicom image data according to the identification information, and returns the Dicom image data to the Web end as a response;

[0186] The Web end receives the server response and uses the Cornerstone library to parse and load the Dicom image data;

[0187] The tag information obtained by parsing is saved locally on the Web side, and the first loaded Dicom image is rendered into the HTML element for page display.

[0188] In one embodiment of the present invention, the second response module 220 converts the Dicom images involved in the scrolling process into JPG format images and dynamically loads them to the Web end in sequence, including:

[0189] Monitor the scrolling process in the scrolling operation;

[0190] Extract the Dicom images switched during scrolling and browsing to obtain the Dicom image set to be converted;

[0191] Receive a Dicom image set to be converted and parse the Dicom images in the Dicom image set to be converted based on the server, generate a JPG format image of a binary stream corresponding to the Dicom image, and obtain a JPG format image set;

[0192] Create a Java interface, which is used to return a JPG format image in a JPG format image set;

[0193] Use ajax technology to pull the JPG format image returned by the Java interface;

[0194] Dynamically load the pulled JPG format images to the Web side in sequence.

[0195] In one embodiment of the present invention, dynamically loading the pulled JPG format images to the Web end in sequence includes:

[0196] Get the original order of the Dicom images in the Dicom image set to be converted;

[0197] Use the original order as the default display order of JPG image sets on the Web;

[0198] Pull JPG format images from the JPG format image set;

[0199] Load the pulled JPG format images to the Web client and display them in the default display order.

[0200] In one embodiment of the present invention, in the third response module 230, responding to the scrolling stop node, pulling the stop Dicom image corresponding to the scrolling stop node includes:

[0201] Monitor the scrolling stop node in the scrolling operation;

[0202] In response to the scrolling stop node, pull the JPG format image corresponding to the scrolling stop node to obtain the stop JPG image;

[0203] Pull the Dicom image corresponding to the stop JPG image to get the stop Dicom image.

[0204] In one embodiment of the present invention, updating and stopping the tag information corresponding to the Dicom image and then loading it to the Web end includes:

[0205] Pull and load the first two Dicom images in the Dicom sequence;

[0206] Read the tag information of the first two saved Dicom images;

[0207] According to the characteristic data of the label information, the association relationship between adjacent Dicom images is obtained;

[0208] According to the association relationship, the label information corresponding to the Dicom image is calculated;

[0209] Load the Dicom image and the calculated tag information to the Web client.

[0210] In one embodiment of the present invention, a window width and window level configuration module is further included, and the window width and window level configuration module is specifically used for:

[0211] In response to the browse start node, the window width and window position of the Dicom image are read and saved as the original window width and window position;

[0212] In response to the scrolling operation, the window width and window position of the JPG format image are read as temporary window width and window position, and the JPG format image is loaded into the Web end according to the temporary window width and window position;

[0213] In response to the scrolling stop node, the Dicom image is stopped and loaded to the Web end according to the original window width and window position.

[0214] In one embodiment of the present invention, a synchronous linkage display module is further included, and the synchronous linkage display module is specifically used for:

[0215] There are at least two Dicom sequences, and one of them is selected as the reference sequence;

[0216] Obtain the position difference in three-dimensional space between the first two Dicom images in each Dicom sequence except the reference sequence;

[0217] Load the position of the Dicom image of the reference sequence stop in three-dimensional space when the scrolling stops, and get the stop position;

[0218] The Dicom images to be displayed for each Dicom sequence except the reference sequence are determined according to the stop position and the position difference.

[0219] The embodiments of the present application also provide a specific implementation of an electronic device that can implement all the steps in the method in the above embodiments, see Figure 3 , the electronic device 300 specifically includes the following contents:

[0220] Processor 310, memory 320, communication unit 330 and bus 340;

[0221] The processor 310 , the memory 320 , and the communication unit 330 communicate with each other via the bus 340 ; the communication unit 330 is used to implement information transmission between server-side devices and terminal devices and other related devices.

[0222] The processor 310 is used to call the computer program in the memory 320, and when the processor executes the computer program, all the steps in the method in the above embodiment are implemented.

[0223] Those skilled in the art should understand that the memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instruction. Furthermore, the software programs and modules in the above-mentioned memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.

[0224] The processor may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0225] The present application also provides a computer-readable storage medium, which includes a program. When the program is executed by a processor, it is used to execute a method for browsing Dicom images on a Web side provided by any of the aforementioned method embodiments.

[0226] Those skilled in the art should understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes, and the specific media type is not limited in this application.

[0227] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention 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 by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.< / canvas>

Claims

1. A method for browsing Dicom images on the Web. It is characterized in that The method comprises: Respond to the browsing start node, parse the Dicom sequence, save the label information of the Dicom image and display the first Dicom image; In response to the scrolling operation, the Dicom images contained in the scrolling process are converted into JPG format images and dynamically loaded to the Web end in sequence; In response to the scrolling stop node, pull the stop Dicom image corresponding to the scrolling stop node, update the tag information corresponding to the stop Dicom image, and then load it to the Web end.

2. A method for browsing Dicom images on a Web as claimed in claim 1, It is characterized in that The parsing of the Dicom sequence, saving the tag information of the Dicom image and displaying the first Dicom image includes: Introduce the Cornerstone library into the Web project; Send a request to the server through the Web-side code, wherein the request contains the identification information of the Dicom sequence to be loaded; The server receives the request and searches for the corresponding Dicom image data according to the identification information, and returns the Dicom image data to the Web end as a response; The Web end receives the server response and uses the Cornerstone library to parse and load the Dicom image data; The tag information obtained by parsing is saved locally on the Web side, and the first loaded Dicom image is rendered into the HTML element for page display.

3. A method for browsing Dicom images on a Web as claimed in claim 1, It is characterized in that The step of converting the Dicom images involved in the scrolling process into JPG format images and dynamically loading them to the Web end in sequence includes: Monitor the scrolling process in the scrolling operation; Extract the Dicom images switched during scrolling and browsing to obtain the Dicom image set to be converted; Receive a Dicom image set to be converted and parse the Dicom images in the Dicom image set to be converted based on the server, generate a JPG format image of a binary stream corresponding to the Dicom image, and obtain a JPG format image set; Create a Java interface, wherein the Java interface is used to return a JPG format image in a JPG format image set; Use ajax technology to pull the JPG format image returned by the Java interface; Dynamically load the pulled JPG format images to the Web side in sequence.

4. A method for browsing Dicom images on a Web as claimed in claim 3, It is characterized in that The step of dynamically loading the pulled JPG format images to the Web end in sequence includes: Get the original order of the Dicom images in the Dicom image set to be converted; Use the original order as the default display order of JPG image sets on the Web; Pull JPG format images from the JPG format image set; Load the pulled JPG format images to the Web client and display them in the default display order.

5. A method for browsing Dicom images on a Web as claimed in claim 1, It is characterized in that The responding scrolling stop node and pulling the stop Dicom image corresponding to the scrolling stop node comprises: Monitor the scrolling stop node in the scrolling operation; In response to the scrolling stop node, pull the JPG format image corresponding to the scrolling stop node to obtain the stop JPG image; Pull the Dicom image corresponding to the stop JPG image to get the stop Dicom image.

6. A method for browsing Dicom images on a Web as claimed in claim 1, It is characterized in that The updating stops the tag information corresponding to the Dicom image and then loads it to the Web end, including: Pull and load the first two Dicom images in the Dicom sequence; Read the tag information of the first two saved Dicom images; According to the characteristic data of the label information, the association relationship between adjacent Dicom images is obtained; According to the association relationship, the label information corresponding to the Dicom image is calculated; Load the Dicom image and the calculated tag information to the Web client.

7. A method for browsing Dicom images on a Web as claimed in claim 1, It is characterized in that Also includes: In response to the browse start node, the window width and window position of the Dicom image are read and saved as the original window width and window position; In response to the scrolling operation, the window width and window position of the JPG format image are read as temporary window width and window position, and the JPG format image is loaded into the Web end according to the temporary window width and window position; In response to the scrolling stop node, the Dicom image is stopped and loaded to the Web end according to the original window width and window position.

8. A method for browsing Dicom images on a Web as claimed in claim 1, It is characterized in that Also includes: There are at least two Dicom sequences, and one of the Dicom sequences is selected as a reference sequence; Obtain the position difference in three-dimensional space between the first two Dicom images in each Dicom sequence except the reference sequence; Load the position of the Dicom image of the reference sequence stop in three-dimensional space when the scrolling stops, and get the stop position; The Dicom images to be displayed for each Dicom sequence except the reference sequence are determined according to the stop position and the position difference.

9. A device for browsing Dicom images on a web. It is characterized in that The device comprises: First response module: used to respond to the browsing start node, parse the Dicom sequence, save the label information of the Dicom image and display the first Dicom image; The second response module: used to respond to the scrolling operation, convert the Dicom images involved in the scrolling process into JPG format images and dynamically load them to the Web end in sequence; The third response module is used to respond to the scrolling stop node, pull the stop Dicom image corresponding to the scrolling stop node, update the label information corresponding to the stop Dicom image, and then load it to the Web end.

10. An electronic device, It is characterized in that include: processor, memory, and an interface for communicating with a gateway; The memory is used to store programs and data, and the processor calls the program stored in the memory to execute the method for browsing Dicom images on a Web side as described in any one of claims 1 to 8.