PACS pyramid data generation method and system combining on-demand construction and asynchronous pre-construction
By employing an on-demand and asynchronous pre-built PACS pyramid data generation method, the display latency and interactive lag issues in PACS systems when accessing large-scale images are resolved, enabling fast loading and efficient transmission, thereby improving user experience and system performance.
Patent Information
- Application Number
- CN202611348974.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing PACS systems require complete downloads before displaying large-scale medical images, resulting in long initial image display times, stuttering during high-resolution image interaction, low transmission efficiency, high server load, and poor diagnostic terminal experience.
By combining on-demand construction and asynchronous pre-construction of PACS pyramid data generation methods, and through the synchronous and asynchronous progressive construction of multi-resolution pyramids, multi-threaded paging transmission and rendering technology, and optimized storage and communication protocols, we can achieve fast loading and interactive performance of image data.
Accelerate the display speed of the first image, alleviate interactive lag during high-resolution image processing, improve the efficiency of large-scale image data transmission, reduce server load, and enhance the real-time response and smoothness of the diagnostic terminal.
Smart Images

Figure CN123182932A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical image processing technology, and in particular to a method and system for generating PACS pyramid data that combines on-demand construction and asynchronous pre-construction. Background Technology
[0002] In the current field of medical imaging informatics, there are many mature picture archiving and communication system (PACS) solution providers. However, even these mature systems, when faced with the ever-increasing volume of large-scale image data, still suffer from the following common shortcomings in terms of transmission efficiency and high-concurrency processing, based on the traditional (Digital Imaging and Communications in Medicine, DICOM) standard workflow.
[0003] With the surge in the number of images generated in a single examination, traditional workflows are facing serious challenges.
[0004] (1) The transmission efficiency is low and it is difficult to meet the real-time requirements.
[0005] Traditional C-MOVE and C-STORE services often suffer from transmission efficiency bottlenecks when transferring large-scale images, making them a bottleneck for remote diagnosis or emergency consultations.
[0006] (2) Server storage and I / O bottlenecks lead to slow response under high concurrency.
[0007] When multiple doctor workstations simultaneously initiate query and retrieval requests, the traditional centralized storage architecture can easily become a system bottleneck.
[0008] (3) The image diagnostic terminal needs to be fully downloaded before it can be displayed, and the first presentation time is long.
[0009] Many traditional PACS imaging diagnostic terminals require the entire sequence file to be downloaded before viewing images. For large examinations containing thousands of images, this means users may have to wait several minutes to see the first image, resulting in excessively long initial presentation times. This "all or nothing" interaction mode severely disrupts doctors' workflows and reduces diagnostic efficiency.
[0010] (4) The image diagnostic terminal experiences lag when processing large images.
[0011] Even when images are downloaded locally, significant lag may still occur during scaling and panning operations on the image diagnostic terminal when processing high-resolution image sequences. This is usually because the image diagnostic terminal software fails to effectively utilize memory management, multi-level caching, or GPU hardware acceleration technologies when processing large-scale pixel data, resulting in insufficient real-time rendering capabilities.
[0012] Chinese patent application publication number CN103475905A discloses a method for efficient transmission of image data blocks based on network connection multiplexing in a cloud environment. This method uses the HDFS API to load metadata information from cloud storage, calculates the row and column number range of the target image block, and encapsulates the target image data block into image data frames for transmission. The client then parses and stitches these frames, achieving efficient transmission of the image data blocks. However, this scheme pre-builds the image data block structure and stores it in the cloud. The client must wait for the target data block to be completely transmitted and stitched before displaying it, failing to achieve fast initial display with simultaneous download and rendering. This results in shortcomings in interactive response and transmission efficiency.
[0013] In summary, there is currently a lack of a medical image processing method and system to solve or partially solve the problems of slow image data retrieval, high server load, and poor user experience of image diagnosis terminals in existing PACS systems. Summary of the Invention
[0014] The purpose of this invention is to overcome the shortcomings of the existing technology by providing a PACS pyramid data generation method and system that combines on-demand construction and asynchronous pre-construction, so as to solve or partially solve the problems of long first image display time and high-resolution image interaction stuttering caused by the need for complete download before display and unreasonable timing of multi-resolution pyramid construction when accessing large-scale medical images in existing PACS systems.
[0015] The objective of this invention can be achieved through the following technical solutions: One aspect of the present invention provides a method for generating PACS pyramid data that combines on-demand construction with asynchronous pre-construction. When applied to a PACS client, the following steps are included: In response to user actions, an image retrieval request is generated and sent to the PACS server; Receive a target data block, which is obtained by dividing the target image data and the target image data is located through the image access request; Perform image rendering and display based on the received target data blocks; The image rendering and display are based on a multi-resolution pyramid, and the construction strategy of the multi-resolution pyramid includes: In response to the arrival of the first batch of target data blocks, the basic hierarchy of the multi-resolution pyramid is constructed synchronously. After the basic level is displayed, one or more higher levels of the multi-resolution pyramid are asynchronously and progressively constructed in a background thread; When a new target data block is received, the affected levels in the multi-resolution pyramid are incrementally updated; In response to a detected user zoom operation, if the pyramid level corresponding to the target zoom level has not been built, an immediate build task is initiated.
[0016] As a preferred technical solution, the process of dividing the target image data includes the following steps: Calculate the total number of pages based on the total size of all image files logically merged in a single access and the requested page size; Based on the total number of pages and the current page index, the data offset and data length of each page are calculated; Read data that conforms to the specified data offset and data length from the storage system as the target data block.
[0017] As a preferred technical solution, the PACS server and the PACS client communicate via an application layer transport protocol, and the data packet structure defined by the protocol includes: The uplink request data packet is sent by the PACS client to the PACS server, and includes a packet length field indicating the length of the packet content, and a packet content field containing pagination request information; The downlink response data packet, sent by the PACS server to the PACS client, includes, in sequence, a field indicating the number of files to be transmitted, a file block consisting of a file length field and a file pixel information field, and a transmission status field.
[0018] As a preferred technical solution, before receiving the image retrieval request, the PACS server pre-establishes a metadata index, which is based on the original stored image file.
[0019] As a preferred technical solution, the multi-resolution pyramid is stored in a disk cache that supports random access. The disk cache supports incremental updates and employs data verification and encryption mechanisms.
[0020] As a preferred technical solution, a dynamic allocation step for pagination threads is also included before initiating the retrieval request: Based on the local hardware resource information of the PACS client and the information of the target image data being retrieved, the optimal number of threads for receiving the target data block in parallel is dynamically calculated.
[0021] As a preferred technical solution, the dynamic calculation of the optimal number of threads for receiving the target data block in parallel includes the following steps: Calculate the concurrent request number based on the number of CPU cores, available memory, total number of images retrieved in this session, and network bandwidth of the PACS client. ; The optimal number of threads is determined as follows: ,in, Set the maximum number of threads for the system.
[0022] As a preferred technical solution, the number of concurrent requests is calculated based on (total number of images × average size of a single image) / network bandwidth.
[0023] As a preferred technical solution, the process of performing image rendering and display based on the received target data block includes: Multiple threads are started to receive the target data block in parallel; The received target data block is handed over to the rendering pipeline, which dynamically selects the corresponding level of image data in the multi-resolution pyramid for rendering based on the resolution requirements of the current view.
[0024] Another aspect of the present invention provides a PACS pyramid data generation system that combines on-demand building and asynchronous pre-building, comprising a PACS server and at least one PACS client, wherein, The PACS server is used to receive image access requests sent by the PACS client, locate target image data and divide the data, and send the divided target data blocks to the PACS client. The PACS client is used to generate and send an image access request to the PACS server, receive the target data block, and construct a multi-resolution pyramid based on the received target data block using the aforementioned PACS pyramid data generation method to perform image rendering and display.
[0025] Compared with the prior art, the present invention has at least one of the following beneficial effects: (1) Accelerate the display speed of the first image: In this invention, the PACS client receives the target data block and performs image rendering and display based on the received target data block. In response to the arrival of the first batch of target data blocks in the PACS client, the basic level of the multi-resolution pyramid is constructed synchronously. Based on the total size of all image files logically merged in a single access and the page size requested by the PACS client, the total number of pages is calculated. Based on the total number of pages and the current page index, the data offset and data length of each page are calculated. Through the coordinated paging transmission mentioned above, the client can start rendering without waiting for the entire sequence to be downloaded, thereby greatly shortening the display time of the first image and enabling doctors to quickly carry out diagnostic work.
[0026] (2) Alleviating interaction stuttering during high-resolution image processing: After the basic layer is displayed, the present invention asynchronously and progressively constructs one or more higher layers of the multi-resolution pyramid through a background thread. In response to the detected user zoom operation, if the pyramid layer corresponding to the target zoom level has not been constructed, an immediate construction task is started. When receiving new target data blocks, the affected layers in the multi-resolution pyramid are incrementally updated to achieve dynamic construction and efficient caching of the pyramid layers, ensuring real-time response to zoom, pan, and other operations, and improving the interactive smoothness of high-resolution images.
[0027] (3) Improve the efficiency of large-scale image data transmission: Based on the total size of all image files logically merged in a single retrieval and the page size requested by the PACS client, the present invention calculates the total number of pages. Based on the total number of pages and the current page index, the data offset and data length of each page are calculated. According to the local hardware resource information of the PACS client and the information of the target image data to be retrieved, the optimal number of threads for parallel reception of target data blocks is dynamically calculated. The data packet structure of the application layer transmission protocol is used to fully utilize network bandwidth and reduce the transmission delay of large-scale image data through multi-threaded paging transmission and efficient protocol design, thus adapting to complex network environments. Attached Figure Description
[0028] Figure 1 This is a flowchart of the PACS pyramid data generation method that combines on-demand construction and asynchronous pre-construction in the embodiment; Figure 2 This is an architecture diagram of the PACS pyramid data generation system that combines on-demand building and asynchronous pre-building in the embodiment; Figure 3 This is a flowchart of the medical image data generation system in the embodiment; Figure 4 This is a schematic diagram of the server-side storage structure in the embodiment; Figure 5 This is a flowchart illustrating the paging thread allocation and parallel download rendering process of the image diagnostic terminal in this embodiment. Detailed Implementation
[0029] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0030] Example 1 To address the aforementioned problems in the existing technology, this embodiment provides a PACS pyramid data generation method that combines on-demand construction and asynchronous pre-construction. This aims to solve the problems of slow image data retrieval, high server load, and poor user experience on image diagnostic terminals in existing PACS systems. It provides an acceleration solution based on a full-link paging pipeline of storage optimization, paging transmission, and asynchronous rendering. Through a custom high-efficiency transmission protocol and the collaboration of dynamic multi-threaded downloading and real-time rendering on the image diagnostic terminal, it achieves rapid loading of medical image data and improves interactive performance.
[0031] See Figure 1 The method includes the following steps: Step S1, Image Request Step. In response to the user's action, the PACS client generates and sends an image request to the PACS server.
[0032] The image diagnostic terminal (or other PACS client) generates and sends an image retrieval request to the PACS server in response to user operation. The request must include at least the target image sequence identifier and pagination parameters.
[0033] Step S2, Data Paging and Acquisition Steps. After receiving the image retrieval request, the PACS server locates the requested DICOM file set based on the image retrieval request, performs logical paging on the DICOM file set, calculates the data range for each page, and reads the corresponding page's data block from the storage system.
[0034] The PACS server receives the request, locates the corresponding DICOM file set based on the target image sequence identifier, and, according to the paging parameters, treats the DICOM file set as a logical whole file and performs paging, calculating the data range for each page.
[0035] Preferably, the PACS server performs optimized storage management, specifically including: 1. Steps for storing the original file.
[0036] Receive and store raw DICOM files from imaging devices to ensure acquisition speed; 2. Backend processing steps.
[0037] The stored raw DICOM file is compressed asynchronously to save storage space; Preferably, in the data pagination and retrieval steps, the server-side pagination calculation method is as follows: Let TotalSize be the total size of all image files logically merged in a single retrieval, and PageSize be the page size requested by the image diagnostic terminal. Then the total number of pages is: For page i, starting from 0, its data offset is: Its data length is: In this context, (·)?A:B is a ternary operator. If the condition inside the parentheses is true, it executes and returns the result of A; otherwise, it returns the result of B.
[0038] Step S3, pagination data transmission step. The PACS server sends the read pagination data blocks to the PACS client through the transmission channel.
[0039] The PACS server reads the corresponding paginated data block from the storage system based on the calculated data range, and sends the paginated data block to the image diagnostic terminal through a transmission channel based on the communication protocol.
[0040] Preferably, the communication protocol used in the paging data transmission step is a custom application layer protocol based on TCP, and its protocol format includes: 1. Uplink request, i.e. from the image diagnostic terminal to the server.
[0041] The data packet mainly consists of a 4-byte packet length field, which indicates the total number of bytes N of the subsequent content, and an N-byte packet content field. The packet content is usually a JSON structure containing pagination request information, such as pagination index, size, etc.
[0042] 2. Downlink response, i.e., from the server to the image diagnostic terminal.
[0043] The data packet format includes, in order: (1) Number of files, 4 bytes, indicating the total number of image files N included in this transmission.
[0044] (2) File block array, which contains N file blocks. Each file block consists of a 4-byte file length M field and an M-byte file pixel information field.
[0045] (3) Transmission status, 4 bytes, used to identify the overall status of the current data transmission, such as success, in progress, error, etc.
[0046] (4) File status, 4 bytes, used to provide additional status information related to file processing.
[0047] The protocol design supports optional encryption of transmitted content, especially sensitive data such as file pixel information, to ensure data security, and reserves fields for future feature expansion.
[0048] Step S4, Image Diagnostic Terminal Reconstruction and Rendering Step. The PACS client receives the paginated data block, completes the local DICOM file reconstruction, and performs image rendering and display processing in parallel based on the reconstructed paginated data block to generate interactive medical image data.
[0049] The image diagnostic terminal receives each page of data blocks, performs local DICOM file reconstruction, and performs image rendering and display in parallel based on the received data blocks.
[0050] Preferably, the image diagnostic terminal reconstruction and rendering steps include: 1. Dynamically allocate sub-steps using the paging thread.
[0051] Before initiating a retrieval request, the image diagnostic terminal dynamically calculates the optimal number of TCP socket threads N for downloading paginated data based on the number of local CPU cores, available memory, and the total number of images to be retrieved. The formula for calculating N is: N = max(1, min(M, C)), where M is the maximum number of threads preset by the system, and C is the number of concurrent requests estimated based on (total number of images × average size of a single image) / network bandwidth.
[0052] 2. Parallel download and rendering sub-steps.
[0053] N download threads are started, each thread is responsible for requesting and receiving one or more paginated data blocks; after the receiving thread obtains the paginated data, it immediately hands it over to the rendering pipeline, which applies the multi-resolution pyramid algorithm, caching and multi-threaded processing technology to reconstruct and display the image; the rendering pipeline dynamically selects the image data of the corresponding level in the pyramid for rendering according to the resolution requirements of the current view, so as to achieve clear imaging and smooth interaction of medical specifications in various hardware environments.
[0054] The process of constructing pyramid data will be explained below.
[0055] A multi-resolution pyramid is a key data structure for accelerating medical image display and interaction, especially when processing large-scale, high-resolution image sequences, enabling real-time zooming, panning, and detail rendering. By pre-constructing multiple image layers of different resolutions, the pyramid allows for the rapid selection of the appropriate image layer for display based on the current view's zoom level during user interaction, avoiding the performance degradation caused by real-time resampling.
[0056] 1. The timing of the construction of the pyramids.
[0057] The pyramid is built using a dynamic strategy that combines on-demand building with asynchronous pre-building, ensuring that the system resource utilization efficiency is maximized while meeting the needs of real-time interaction.
[0058] (1) Build the base hierarchy during the first load.
[0059] Once the first batch of paginated data from the image sequence arrives at the client, the rendering pipeline immediately decodes and reconstructs the received image data, simultaneously building the initial resolution pyramid base level (Level 0), typically at or near the original image resolution. This process runs in parallel with the rendering of the first image, ensuring an interactive initial view is provided in the shortest possible time.
[0060] (2) The background asynchronously builds a multi-level pyramid.
[0061] After the basic hierarchy is displayed, the client starts a low-priority background thread to gradually generate lower-resolution pyramid levels based on a preset scaling factor (in this example, a power of 2, such as 1 / 2, 1 / 4, 1 / 8). This employs a progressive building strategy. Prioritize building the intermediate levels most likely to be accessed by users, such as 1 / 2 and 1 / 4. Then gradually build the lower-resolution lower levels, such as 1 / 8 and 1 / 16. Continuously monitor user interaction during the build process. If a zoom operation is detected, pause the current build task and prioritize responding to user requests.
[0062] (3) Dynamic incremental construction.
[0063] For large image sequences that have not yet been fully downloaded, the pyramid construction is synchronized with the paginated download: Upon receiving each new paginated data block, the affected pyramid levels are immediately updated; these are typically higher-resolution levels. An incremental update algorithm is used to reconstruct only the pyramid regions affected by the newly added image data. This ensures that the pyramid always reflects the state of the latest available image data.
[0064] (4) Scaling triggers reconstruction.
[0065] When a user performs a large zoom operation, such as quickly zooming in from a panoramic view to a local detail: If the pyramid level corresponding to the target scaling level has not yet been built, the rendering pipeline immediately initiates an on-demand build task. Progressive rendering is used during the build process, first displaying a low-resolution approximation image and then gradually replacing it with a high-resolution image. Newly built pyramid levels are cached for subsequent reuse.
[0066] 2. The pyramid's storage method.
[0067] Pyramid's storage employs a hybrid strategy of memory-based primary and disk-based secondary storage, achieving an optimal balance between access speed and resource consumption.
[0068] (1) Memory storage.
[0069] Its stored content consists of 2-3 pyramid levels adjacent to the current display zoom level, including the current level, the previous level, and the next level, all resident in memory to ensure real-time response to interactive operations such as zooming and panning. Based on access history statistics, specific resolution levels that users frequently view are retained in memory.
[0070] The cache management strategy employs a Least Recently Used (LRU) eviction mechanism, maintaining a fixed-size pyramid cache pool in memory. When the cache is full, the least recently used pyramid level is automatically removed. If the removed level has been modified, such as by adjusting window width or level, or by overlaying labels, it is serialized and written to the disk cache. Levels that are likely to be accessed are predicted based on user operation patterns and pre-loaded into the memory cache.
[0071] (2) Disk cache.
[0072] The multi-level image file format employs multi-resolution image formats that support random access, such as tiled TIFF, JPEG2000 JPIP, and dedicated pyramid formats to store the complete pyramid. An independent index file is maintained for each image sequence, recording metadata such as the storage location, resolution, compression parameters, and spatial range of each pyramid level. Partial updates to already stored pyramids are supported, avoiding the duplication of unmodified data.
[0073] When a user zooms to a level that is not in memory, the system reads the image data block for that level from the disk cache. Based on the heat analysis of image research, the pyramids for frequently accessed research are pre-cached to the local disk. Expired or infrequently accessed pyramid data is automatically cleaned up based on storage space utilization and access timestamps.
[0074] Calculate and save data checksums, such as CRC32, during storage; perform integrity verification during loading; support optional encryption for pyramid storage of sensitive medical data; and support downgraded recovery when some data is corrupted, such as using a lower resolution as an alternative.
[0075] See Figure 4 This diagram illustrates the storage structure of a PACS server. Upon receiving the original DICOM file, the data is first categorized and stored in cache storage (memory storage) and persistent file storage (disk cache) according to the aforementioned business-tiered storage strategy to meet real-time requirements. Next, the original file is analyzed and separated into pixel data and metadata. The metadata is updated and saved, while the pixel data is compressed to meet the file format mentioned earlier, and then replaces the already stored data to meet the requirements of efficient access.
[0076] See Figure 5 In a typical application scenario, the PACS client first receives a request, retrieves the number of images and available computer resources, then allocates download threads and creates download threads and connections. Upon receiving the request, the PACS server calculates the paging data packets, reads the DICOM file and splits the data, sending the file quantity data, file size data, and file data. The PACS client then receives this data and performs file reconstruction, DICOM parsing, image rendering, and image optimization according to the client's actual conditions to complete the rendering process.
[0077] To verify the effectiveness of this method, a representative commercial PACS system built on a standard DICOM workflow was selected as a baseline for comparison. This system, provided by a commercially available product, represents a widely deployed traditional architecture. All tests were conducted between the system of this invention and this commercially available system.
[0078] (a) Test environment configuration Server specifications: CPU: Intel Xeon Gold 6149 @ 3.1GHz, Memory: 64GB, Storage: HDDRAID, Network: 1Gbps.
[0079] Image diagnostic terminal: CPU: Intel Core i5-6500 @ 3.2 GHz, Memory: 24 GB, Graphics card: Integrated Intel HD Graphics 530, Network: 1 Gbps.
[0080] Comparison object: Commercially available products Test dataset: All tests used legally acquired high-resolution CT chest scan sequences, with each image measuring 512x512.
[0081] Small sequence test cases: 528 slices, total data size of approximately 254 MB, test results are shown in Table 1.
[0082] Standard sequence test case: 1036 slices, total data size of approximately 612 MB. The test results are shown in Table 2.
[0083] Large sequence test case: 5428 slices, total data volume of approximately 4.45 GB, test results are shown in Table 3.
[0084] Table 1 Test Results of Small Sequence Test Cases Table 2 Test Results of Conventional Sequence Test Cases Table 3 Test Results of Large Sequence Test Cases Test data clearly demonstrates that our proposed method comprehensively outperforms the commercially available product system with a traditional architecture, which serves as the baseline, in key performance indicators. This proves that the proposed end-to-end collaborative optimization scheme effectively solves the transmission bottlenecks and interaction latency problems commonly found in existing commercial systems, primarily in the following ways: The significant reduction in first image display time is attributed to the paging and download-as-rendering pipeline technology of this invention, allowing doctors to begin diagnosis with almost no waiting time, greatly improving work efficiency. The substantial reduction in complete download time demonstrates that the multi-threaded paging transmission technology based on the communication protocol can effectively utilize network bandwidth, overcoming the single-threaded transmission bottleneck of the traditional DICOM protocol. The decrease in server-side CPU load reflects how optimized storage and paging technologies decompose large single I / O requests, reducing instantaneous server pressure and improving the overall system's concurrent processing capabilities. The smooth and fluid frame rate of the image diagnostic terminal verifies the effectiveness of technologies such as dynamic pyramid selection, caching, and multi-threaded rendering, providing a good interactive experience even in software rendering (CPU) mode.
[0085] In summary, this method, through end-to-end collaborative optimization, brings significant performance improvements and technological advancements in terms of access speed, system resource utilization, and user experience.
[0086] Example 2 Based on Embodiment 1, this embodiment provides a PACS pyramid data generation system that combines on-demand construction and asynchronous pre-construction to implement the PACS pyramid data generation method of Embodiment 1. The system includes a PACS server and at least one PACS client. The PACS server is configured to perform the data paging and acquisition steps and the paging data transmission steps, and the PACS client is configured to perform the image retrieval request steps and the image diagnostic terminal reconstruction and rendering steps.
[0087] The PACS server is configured with: The request receiving module is used to receive image access requests sent by PACS clients.
[0088] The data paging module is used to locate the DICOM file set based on the image retrieval request, and to logically paginate the DICOM file set, calculate the data range of each page, and read the data block of the corresponding page from the storage system; The data transmission module is used to send the read paginated data blocks to the PACS client via the transmission channel; The PACS client is configured with: The request generation module is used to generate image retrieval requests in response to user operations; The data receiving module is used to receive the paginated data block and complete the reconstruction of the local DICOM file; The reconstruction rendering module is used to perform image rendering and display processing in parallel based on the reconstructed paginated data blocks, generating interactive medical image data.
[0089] Further, see Figure 2 The system can be divided into an acquisition layer, a service layer (server), and an application layer (client). The acquisition layer includes CT, MR, and DR equipment, whose data is pushed to the service layer via DICOM. The service layer includes a DICOM server, web application services, image storage, and a database. The DICOM server stores images in image storage, and the web application services retrieve images from the image storage. The DICOM server writes metadata to the database, and the web application services query metadata from the database. The application layer includes diagnostic workstations and clinical image reading terminals. The diagnostic workstations send query / access requests to the web application services and receive the returned query results.
[0090] See Figure 3 The system's workflow is as follows: First, image acquisition and DICOM transmission are performed. After receiving the images, the PACS server stores them and updates the database. When a user requests the image, the database is queried to retrieve the image, which is then sent to the PACS client for display.
[0091] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for generating PACS pyramid data that combines on-demand construction and asynchronous pre-construction, characterized in that, When applied to a PACS client, the following steps are included: In response to user actions, an image retrieval request is generated and sent to the PACS server; Receive a target data block, which is obtained by dividing the target image data and the target image data is located through the image access request; Perform image rendering and display based on the received target data blocks; The image rendering and display are based on a multi-resolution pyramid, and the construction strategy of the multi-resolution pyramid includes: In response to the arrival of the first batch of target data blocks, the basic hierarchy of the multi-resolution pyramid is constructed synchronously. After the basic level is displayed, one or more higher levels of the multi-resolution pyramid are asynchronously and progressively constructed in a background thread; When a new target data block is received, the affected levels in the multi-resolution pyramid are incrementally updated; In response to a detected user zoom operation, if the pyramid level corresponding to the target zoom level has not been built, an immediate build task is initiated.
2. The PACS pyramid data generation method combining on-demand construction and asynchronous pre-construction according to claim 1, characterized in that, The process of dividing the target image data includes the following steps: Calculate the total number of pages based on the total size of all image files logically merged in a single access and the requested page size; Based on the total number of pages and the current page index, the data offset and data length of each page are calculated; Read data that conforms to the specified data offset and data length from the storage system as the target data block.
3. The PACS pyramid data generation method combining on-demand construction and asynchronous pre-construction according to claim 1, characterized in that, The PACS server and the PACS client communicate via an application layer transport protocol, and the data packet structure defined by the protocol includes: The uplink request data packet is sent by the PACS client to the PACS server, and includes a packet length field indicating the length of the packet content, and a packet content field containing pagination request information; The downlink response data packet, sent by the PACS server to the PACS client, includes, in sequence, a field indicating the number of files to be transmitted, a file block consisting of a file length field and a file pixel information field, and a transmission status field.
4. The PACS pyramid data generation method combining on-demand construction and asynchronous pre-construction according to claim 1, characterized in that, Before receiving the image retrieval request, the PACS server has pre-built a metadata index, which is based on the original stored image file.
5. The PACS pyramid data generation method combining on-demand construction and asynchronous pre-construction according to claim 1, characterized in that, The multi-resolution pyramid is stored in a disk cache that supports random access. The disk cache supports incremental updates and employs data verification and encryption mechanisms.
6. The PACS pyramid data generation method combining on-demand construction and asynchronous pre-construction according to claim 1, characterized in that, Before initiating a retrieval request, a dynamic allocation step via paging threads is also included: Based on the local hardware resource information of the PACS client and the information of the target image data being retrieved, the optimal number of threads for receiving the target data block in parallel is dynamically calculated.
7. The PACS pyramid data generation method combining on-demand construction and asynchronous pre-construction according to claim 6, characterized in that, The dynamic calculation of the optimal number of threads for receiving the target data block in parallel includes the following steps: Calculate the concurrent request number based on the number of CPU cores, available memory, total number of images retrieved in this session, and network bandwidth of the PACS client. ; The optimal number of threads is determined as follows: ,in, Set the maximum number of threads for the system.
8. The PACS pyramid data generation method combining on-demand construction and asynchronous pre-construction according to claim 7, characterized in that, The number of concurrent requests is calculated based on (total number of images × average size of a single image) / network bandwidth.
9. The PACS pyramid data generation method combining on-demand construction and asynchronous pre-construction according to claim 1, characterized in that, The process of rendering and displaying images based on the received target data blocks includes: Multiple threads are started to receive the target data block in parallel; The received target data block is handed over to the rendering pipeline, which dynamically selects the corresponding level of image data in the multi-resolution pyramid for rendering based on the resolution requirements of the current view.
10. A PACS pyramid data generation system combining on-demand construction and asynchronous pre-construction, characterized in that, Includes a PACS server and at least one PACS client, wherein, The PACS server is used to receive image access requests sent by the PACS client, locate target image data and divide the data, and send the divided target data blocks to the PACS client. The PACS client is used to generate and send an image access request to the PACS server, receive the target data block, and construct a multi-resolution pyramid based on the received target data block using the PACS pyramid data generation method as described in any one of claims 1-9 to perform image rendering and display.
Citation Information
Patent Citations
Image data block efficient transmission method based on network connection multiplexing under cloud environment
CN103475905A
