Image data processing method, image data processing system, device and equipment
By receiving and storing the data stream sent by the medical image acquisition device on the processing equipment of the medical system and performing data processing in the storage process, the problem of low data transmission efficiency in the existing medical system is solved, and more efficient data processing and storage is achieved.
Patent Information
- Application Number
- CN202411917288.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-11
AI Technical Summary
In existing medical systems, the transmission efficiency of the generation data to the data processing equipment is low, resulting in low data processing efficiency.
By receiving the data stream sent by the medical image acquisition device on the processing device and performing data processing while storing the data stream, the optical device is used to copy the data stream, and the physical storage address of the data stream is determined based on the logical storage address and the preset mapping relationship, and directly store it to the physical storage address, avoiding the data stream being cached to memory first and then stored on the hard disk.
It improves the efficiency of transmission and storage of production data in medical systems, reduces the waiting time for data processing, and improves the overall data processing efficiency.
Smart Images

Figure CN119811602A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of medical image data processing, and in particular to an image data processing method, image data processing system, device and equipment. Background Art
[0002] With the rapid development of medical systems and various types of medical imaging equipment, medical systems need to process more and more raw data of medical images. Among them, the raw data of medical images is acquired by medical imaging equipment in the medical system, and the raw data is transmitted to the data processing equipment in the medical system for data analysis, statistics, imaging and other processing.
[0003] However, the transmission efficiency of the raw data in the existing medical system to the data processing equipment is low. Summary of the invention
[0004] Based on this, it is necessary to provide an image data processing method, image data processing system, device and equipment that can improve the transmission efficiency of raw data from a medical system to a data processing device in response to the above technical problems.
[0005] In a first aspect, the present application provides an image data processing method, which is applied to a processing device and includes:
[0006] Receiving a data stream sent by a medical image acquisition device;
[0007] While storing the data stream, performing data processing on the data stream;
[0008] The method of storing the data stream includes:
[0009] Receiving a storage request sent by a medical image acquisition device; the storage request includes the data stream and a logical storage address;
[0010] Determining a physical storage address of the data stream according to the logical storage address and a preset mapping relationship;
[0011] The data stream is stored in the physical storage address.
[0012] In one embodiment, the performing data processing on the data stream includes:
[0013] determining a type of the data stream;
[0014] If the data stream type is a large data volume type, the data stream is transmitted to a graphics processor (GPU) for data processing; the large data volume type of data stream includes three-dimensional medical data;
[0015] If the data stream type is a small data volume type, the data stream is transmitted to the application layer of the processing device for data processing; the data stream of the small data volume type includes myocardial perfusion curve data and electrocardiorespiration curve data.
[0016] In one embodiment, transmitting the data stream to a graphics processor (GPU) for data processing includes:
[0017] Copying the data stream through an optical device to obtain a backup data stream corresponding to the data stream;
[0018] The backup data stream is transmitted to the GPU for data processing.
[0019] In one embodiment, transmitting the data stream to the application layer of the processing device for data processing includes:
[0020] A target data stream of a small data volume type is extracted from the data stream, and the target data stream is transmitted to the application layer for data processing through the storage space and register of the logic controller in the processing device.
[0021] In one embodiment, the method further comprises:
[0022] Using an accelerator to accelerate configuration of the register to obtain a configured register;
[0023] The step of transmitting the target data stream to the application layer for data processing through the storage space and register of the logic controller in the processing device includes:
[0024] The target data stream is transmitted to the application layer through the storage space and the configured registers for data processing.
[0025] In a second aspect, the present application further provides an image data processing system, the image data processing system comprising an optical device and a logic controller;
[0026] The optical device is used to receive the data stream sent by the medical image acquisition device;
[0027] The logic controller is used to perform data processing on the data stream while storing the data stream.
[0028] In one of the embodiments, the image data processing system further includes: a GPU and an accelerator;
[0029] The optical device is further used for transmitting the data stream to the GPU for data processing when the data stream is of a large data volume type;
[0030] The logic controller is further configured to transmit the data stream through the accelerator to the application layer of the image data processing system for data processing when the data stream is of a small data volume type.
[0031] In a third aspect, the present application further provides an image data processing device, the device comprising:
[0032] A receiving module, used for receiving a data stream sent by a medical image acquisition device;
[0033] A processing module, used for performing data processing on the data stream while storing the data stream;
[0034] The processing modules include:
[0035] A storage request receiving unit, used for receiving a storage request sent by the medical image acquisition device; the storage request includes the data stream and a logical storage address;
[0036] A determination unit, configured to determine a physical storage address of the data stream according to the logical storage address and a preset mapping relationship;
[0037] A storage unit is used to store the data stream to the physical storage address.
[0038] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the embodiments of the first aspect when executing the computer program.
[0039] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments of the first aspect are implemented.
[0040] In a sixth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments of the first aspect are implemented.
[0041] The above-mentioned image data processing method, image data processing system, device and equipment receive the data stream sent by the medical image acquisition device; while storing the data stream, perform data processing on the data stream; the way of storing the data stream includes: receiving a storage request sent by the medical image acquisition device; the storage request includes the data stream and the logical storage address; according to the logical storage address and the preset mapping relationship, determine the physical storage address of the data stream; store the data stream to the physical storage address. Since the embodiment of the present application performs data processing on the data stream while storing the data stream, there is no need to wait for the data stream to be stored before performing data processing, which can improve the efficiency of data processing. In addition, the embodiment of the present application can also predetermine the preset mapping relationship between the logical storage address and the physical storage address, so that when the processing device receives the data stream and the logical storage address sent by the medical image acquisition device, it can directly determine the physical storage address of the data stream according to the logical storage address and the preset mapping relationship, and directly store the data stream to the physical storage address corresponding to the data stream, without first caching the data stream to the memory and then storing it to the hard disk, so it can improve the efficiency of transmitting and storing the raw data in the medical image acquisition device to the processing device in the medical system. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A diagram showing an application environment of an image data processing method in an embodiment;
[0044] Figure 2 is a schematic flow chart of an image data processing method in one embodiment;
[0045] Figure 3 A schematic diagram of a flow chart of a data stream storage step in one embodiment;
[0046] Figure 4 A schematic diagram of a flow chart of a data flow processing step in an embodiment;
[0047] Figure 5 is a schematic flow chart of an image data processing method in an optional embodiment;
[0048] Figure 6 is a schematic diagram of an image data processing system in one embodiment;
[0049] Figure 7is a structural block diagram of an image data processing device in one embodiment;
[0050] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0053] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0054] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0055] With the rapid development of medical systems and various types of medical imaging equipment, medical systems need to process more and more raw data of medical images. Among them, the raw data of medical images is acquired by medical imaging equipment in the medical system, and the raw data is transmitted to the data processing equipment in the medical system for data analysis, statistics, imaging and other processing.
[0056] However, the existing medical system first transmits and caches the raw data in the memory of the data processing device, and then transmits the raw data from the memory to the hard disk, so that when data processing is required, the raw data to be processed can be obtained from the hard disk. The above process is relatively time-consuming. In addition, since the raw data is stored in the memory of the CPU, and data processing mainly depends on the parallel processing of the GPU, before data processing, the data in the CPU memory needs to be transmitted or copied to the video memory of the GPU. The above data copying process is also very time-consuming. Therefore, the transmission efficiency of the raw data transmitted to the data processing device in the existing medical system is low.
[0057] After introducing the background technology of the image data processing method provided by the embodiment of the present application, the following briefly describes the implementation environment involved in the image data processing method provided by the embodiment of the present application. The image data processing method provided by the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the medical image acquisition device 101 communicates with the processing device 102 through the network. The data storage system can store the data that the processing device 102 needs to process. The data storage system can be integrated on the processing device 102, or it can be placed on the cloud or other network servers. Among them, the processing device 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The processing device 102 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0058] In one embodiment, Figure 2 As shown, a method for processing image data is provided, which is applied to Figure 1 The application to the processing device is taken as an example to illustrate, including the following steps:
[0059] S201, receiving a data stream sent by a medical image acquisition device.
[0060] Among them, the medical image acquisition device is used to collect the data stream of the medical system. The data stream refers to the raw data directly collected by the medical image acquisition device and not processed. The medical system may include but is not limited to any medical equipment system such as SPECT (Single-Photon Emission Computed Tomography), CT (Computed Tomography), PET (Positron Emission Computed Tomography), MR (Magnetic Resonance), PET-MR, PET-CT, XR (X-ray imaging system, X-ray), etc.
[0061] In an embodiment of the present application, a medical image acquisition device can acquire a data stream of a medical system, and then, optionally, the medical image acquisition device can directly send the data stream of the medical system to a processing device, so that the processing device can receive the data stream sent by the medical image acquisition device; or, the medical image acquisition device can also carry the data stream in a storage request and send a storage request to the processing device, so that the processing device can receive the storage request sent by the medical image acquisition device and parse the data stream from the storage request. Of course, the embodiment of the present application does not limit the specific implementation method of sending and / or receiving the data stream.
[0062] S202, performing data processing on the data stream while storing the data stream.
[0063] Among them, the data processing method may include but is not limited to at least one of raw data reconstruction, data analysis, data statistics, imaging, etc. In the embodiment of the present application, after receiving the data stream, the processing device may store the data stream, and / or the processing device may also perform data processing on the data stream. It should be noted that in the embodiment of the present application, when it is necessary to store and process the data stream, the storage and processing of the data stream may be performed in parallel. Exemplarily, the processing device may copy the received data stream to obtain two identical data streams, so that the processing device may store one data stream and perform data processing on all or part of the raw data in the other data stream.
[0064] In one embodiment, the “method for storing data stream” in S202 is as follows: Figure 3 As shown, including:
[0065] S301, receiving a storage request sent by a medical image acquisition device; the storage request includes a data stream and a logical storage address.
[0066] Among them, the storage request includes the data stream collected by the medical image acquisition device and the logical storage address. The storage request is used to instruct the data stream to be written into the processing device, and the logical storage address refers to the storage address of the data stream in the memory.
[0067] In the embodiment of the present application, the medical image acquisition device can acquire the data stream and determine the logical storage address where the data stream needs to be stored. After that, the medical image acquisition device can carry the data stream and the logical storage address corresponding to the data stream in the storage request and send the storage request to the processing device. Thus, the processing device can receive the storage request sent by the medical image acquisition device and parse the data stream and the logical storage address corresponding to the data stream from the storage request.
[0068] S302: Determine the physical storage address of the data stream according to the logical storage address and the preset mapping relationship.
[0069] The preset mapping relationship refers to the corresponding relationship between the logical storage address and the physical storage address, and the physical storage address refers to the storage address of the data stream in the hard disk.
[0070] In the embodiment of the present application, the processing device can predetermine a preset mapping relationship between the logical storage address and the physical storage address, so that the processing device can determine the physical storage address of the data stream corresponding to the logical storage address based on the logical storage address and the preset mapping relationship.
[0071] S303, storing the data stream to a physical storage address.
[0072] In an embodiment of the present application, the processing device can directly store the data stream to the physical storage address corresponding to the data stream through the DMA (Direct Memory Access) engine in the Field-Programmable Gate Array (FPGA) integrated inside the processing device. In this way, the storage capacity of raw data can be improved, the length of the entire storage link can be shortened, and abnormal problems existing in the raw data during the memory transfer process can be avoided, thereby improving the stability of machine storage.
[0073] In the above-mentioned image data processing method, a data stream sent by a medical image acquisition device is received; while storing the data stream, data processing is performed on the data stream; the way of storing the data stream includes: receiving a storage request sent by the medical image acquisition device; the storage request includes a data stream and a logical storage address; determining the physical storage address of the data stream according to the logical storage address and a preset mapping relationship; and storing the data stream to the physical storage address. Since the embodiment of the present application can perform data processing on the data stream while storing the data stream, there is no need to wait for the data stream to be stored before performing data processing, which can improve the efficiency of data processing. In addition, the embodiment of the present application can also predetermine the preset mapping relationship between the logical storage address and the physical storage address, so that when the processing device receives the data stream and the logical storage address sent by the medical image acquisition device, it can directly determine the physical storage address of the data stream according to the logical storage address and the preset mapping relationship, and directly store the data stream to the physical storage address corresponding to the data stream, without first caching the data stream to the memory and then storing it to the hard disk, so it can improve the efficiency of transmitting and storing the raw data in the medical image acquisition device to the processing device in the medical system.
[0074] In one embodiment, Figure 4 As shown, there is also provided a method for implementing data processing on the data stream, that is, the “data processing on the data stream” in the above S202, including:
[0075] S401, determine the type of data stream. If the type of data stream is a large data volume type, execute S402; if the type of data stream is a small data volume type, execute S403;
[0076] S402, transmitting the data stream to a graphics processor GPU for data processing; the data stream of large data volume type includes three-dimensional medical data.
[0077] S403, transmitting the data stream to the application layer of the processing device for data processing; the data stream of small data volume type includes myocardial perfusion curve data and electrocardiorespiration curve data.
[0078] Among them, the large data volume type refers to the type of data flow whose data volume is greater than the preset data volume threshold, and the data flow of the large data volume type may include but is not limited to three-dimensional medical data, etc. The small data volume type refers to the type of data flow whose data volume is less than or equal to the preset data volume threshold, for example, the data flow of the small data volume type may include but is not limited to at least one of the curve data such as myocardial perfusion curve data and electrocardiorespiration curve data. Of course, the specific value of the preset data volume threshold can be set according to actual conditions, and the embodiment of the present application does not limit this.
[0079] In an embodiment of the present application, the processing device can determine the type of the data stream according to the data volume or computational complexity of the data stream. If it is determined that the type of the data stream is a large data volume type, it means that the data volume of the data stream is large and / or the processing complexity is large. At this time, since the GPU has a good performance in parallel processing of raw data, the processing device can transmit the data stream to a graphics processing unit (GPU), thereby performing data processing on the data stream through the GPU. If it is determined that the type of the data stream is a small data volume type, it means that the data volume of the data stream is small and / or the processing complexity is small. At this time, transmitting the data stream to the GPU for data processing will waste the computing resources of the GPU, so the processing device can transmit the data stream to the application layer of the processing device, thereby performing data processing on the data stream through the application layer of the processing device.
[0080] In this embodiment, the type of data stream can be determined. If the type of data stream is a large data volume type, the data stream is transmitted to the graphics processor GPU for data processing; if the type of data stream is a small data volume type, the data stream is transmitted to the application layer of the processing device for data processing. In this way, the corresponding data processing method can be used for data processing according to the data volume and / or processing complexity of the data stream, so the efficiency of data processing on the data stream can be improved.
[0081] In one embodiment, a method for implementing data processing by a GPU is provided, namely, “transmitting the data stream to a graphics processor GPU for data processing” in the above S402, including:
[0082] The data stream is copied through an optical device to obtain a backup data stream corresponding to the data stream.
[0083] The backup data stream is transmitted to the GPU for data processing.
[0084] Since the data stream is stored in the hard disk in the CPU (Central Processing Unit) domain, and the video memory in the CPU domain and the GPU domain are not in the same address space, before the data stream of large data volume type is processed in parallel by the GPU, the data stream needs to be converted first. The relevant technology is to copy the data in the CPU domain memory to the GPU video memory. However, the data copy process is time-consuming and consumes machine performance. Based on this, in the embodiment of the present application, the processing device can use an optical device to copy and process the data stream in the process of receiving the data stream sent by the medical image acquisition device to obtain a backup data stream corresponding to the data stream. Afterwards, the processing device can use the Data Plane Development Kit (DPDK) to transfer the backup data stream corresponding to the data stream to the GPU's video memory, and process the data stream in parallel through the GPU to obtain the three-dimensional imaging result corresponding to the data stream. Among them, the optical device may include but is not limited to any one of the data splitters such as splitters, network cables, and optical fibers.
[0085] In this embodiment, since optical devices such as optical devices can copy data without loss, simply and quickly, and can achieve multiplexing, the embodiment of the present application uses optical devices to copy and process the data stream, avoiding the copying of raw data in the memory, and can improve the capacity and efficiency of raw data replication and transmission.
[0086] In one embodiment, a method for implementing data processing through an application layer is provided, that is, "transmitting the data stream to the application layer of a processing device for data processing" in the above S403, including:
[0087] A target data stream of a small data volume type is extracted from the data stream, and the target data stream is transmitted to the application layer for data processing through the storage space and registers of the logic controller in the processing device.
[0088] For data streams with small data volumes, when the activity is high, the data volume of the data stream accounts for a very small proportion of the total data volume, and the data content is simple and the computational complexity is low. Therefore, when processing data streams with small data volumes, high real-time requirements are required. At this time, if data processing is performed in the CPU, the real-time requirements cannot be met. If the data stream is transmitted to the GPU for data processing, the GPU's computing resources will be wasted.
[0089] Based on this, the embodiment of the present application can transfer a data stream of a small data volume type to the FPGA for data processing, that is, it can be understood that the processing device can divert the data stream through the logic controller (i.e., FPGA) in the processing device, and can extract the target data stream of a small data volume type from the data stream. Since the data volume of the data stream of the small data volume type is small, the present application does not need to occupy the PCIE (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) bus resources through the DMA method. The embodiment of the present application can store the target data stream of the small data volume type in the storage space in the FPGA, and then transfer and store the target data stream in the storage space to the register in the FPGA, thereby transmitting the target data stream to the application layer of the processing device through the register, and then, the application layer of the processing device can receive the target data stream according to the preset frequency, and can process the data stream through the application layer of the processing device. For example, the storage space can be a BAR space.
[0090] In this embodiment, a target data stream of a small data volume type can be extracted from the data stream through the FPGA, and the target data stream can be transmitted to the application layer for data processing through the storage space and registers of the logic controller in the processing device. Therefore, the target data stream of a small data volume type can be efficiently transmitted and processed through the FPGA.
[0091] In one embodiment, a method for implementing data processing through an application layer is also provided, that is, the above-mentioned image data processing method further includes:
[0092] An accelerator is used to accelerate the configuration of the register to obtain the configured register.
[0093] The above-mentioned “transmitting the target data stream to the application layer for data processing through the storage space and registers of the logic controller in the processing device” includes:
[0094] The target data stream is transferred to the application layer for data processing through the storage space and configured registers.
[0095] In an embodiment of the present application, the processing device may install an accelerator into the FPGA. For example, the accelerator may be inserted into the interface of the FPGA, and the accelerator may be used to accelerate the configuration of the register to obtain the configured register. Among them, the accelerator may include but is not limited to at least one of the hardware resources such as MiniPCIe and an accelerator stick, and the processing rate corresponding to the configured register is higher than the processing rate corresponding to the register (Register) before configuration. Afterwards, the processing device may transmit and store the target data stream of the small data type in the storage space to the configured register in the FPGA, and transmit the target data stream to the application layer of the processing device by means of the register, using the processing rate corresponding to the configured register. Then, the application layer of the processing device may receive the target data stream at a preset frequency, and may perform data processing on the data stream through the application layer of the processing device. Exemplarily, the data processing method may be: parallel processing of floating-point numbers in the target data stream, and Fourier transform processing of the target data stream to obtain a two-dimensional curve corresponding to the target data stream. In addition, if another curve needs to be drawn or a third-party curve needs to be accessed later, a register may be added to the FPGA. For example, another curve may be a VSM (Vibrating Sample Magnetometer) curve.
[0096] In this embodiment, an accelerator can be used to accelerate the configuration of registers to obtain configured registers, so that the target data stream is transmitted to the application layer through the storage space and the configured registers for data processing. In this way, the data processing process can be accelerated through FPGA and accelerator.
[0097] In an optional embodiment, if Figure 5 As shown, a method for processing image data is provided, which is applied to a processing device and includes:
[0098] S21, receiving a storage request sent by a medical image acquisition device; the storage request includes a data stream and a logical storage address acquired by the medical image acquisition device;
[0099] S22, determining the physical storage address of the data stream according to the logical storage address and the preset mapping relationship;
[0100] S23, storing the data stream to a physical storage address;
[0101] S24, determine the type of data stream; if the type of data stream is a large data volume type, execute S25-S26; if the type of data stream is a small data volume type, execute S27-S29;
[0102] S25, duplicating the data stream through an optical device to obtain a backup data stream corresponding to the data stream;
[0103] S26, transmitting the backup data stream to the GPU for data processing;
[0104] S27, extracting a target data stream of a small data volume type from the data stream;
[0105] S28, using an accelerator to accelerate the configuration of the register to obtain a configured register;
[0106] S29, transmitting the target data stream to the application layer for data processing through the storage space and configured registers of the logic controller in the processing device.
[0107] It should be noted that S21-S23 and S24-S29 can be executed in parallel.
[0108] In the above-mentioned image data processing method, a data stream sent by a medical image acquisition device is received; while storing the data stream, data processing is performed on the data stream; the way of storing the data stream includes: receiving a storage request sent by the medical image acquisition device; the storage request includes a data stream and a logical storage address; determining the physical storage address of the data stream according to the logical storage address and a preset mapping relationship; and storing the data stream to the physical storage address. Since the embodiment of the present application can perform data processing on the data stream while storing the data stream, there is no need to wait for the data stream to be stored before performing data processing, which can improve the efficiency of data processing. In addition, the embodiment of the present application can also predetermine the preset mapping relationship between the logical storage address and the physical storage address, so that when the processing device receives the data stream and the logical storage address sent by the medical image acquisition device, it can directly determine the physical storage address of the data stream according to the logical storage address and the preset mapping relationship, and directly store the data stream to the physical storage address corresponding to the data stream, without first caching the data stream to the memory and then storing it to the hard disk, reducing the transmission module unit of the data link, so it can improve the efficiency of transmitting and storing the raw data in the medical image acquisition device to the processing device in the medical system, and improve the system stability.
[0109] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0110] In one embodiment, Figure 6 As shown, an image data processing system is provided, the image data processing system includes an optical device and a logic controller FPGA;
[0111] An optical device, used for receiving a data stream sent by a medical image acquisition device;
[0112] The logic controller is used to process the data stream while storing the data stream.
[0113] In one of the embodiments, the optical device is specifically used to receive a storage request sent by a medical image acquisition device; the storage request includes a data stream and a logical storage address;
[0114] The logic controller is used to determine the physical storage address of the data stream according to the logical storage address and the preset mapping relationship, and store the data stream at the physical storage address.
[0115] In one of the embodiments, the image data processing system further includes: a GPU and an accelerator;
[0116] The optical device is further used to transmit the data stream to the GPU for data processing when the data stream is of a large data volume type;
[0117] The logic controller is also used to transmit the data stream through the accelerator to the application layer of the image data processing system for data processing when the data stream type is a small data volume type.
[0118] The image data processing system can be understood as the above-mentioned processing device, and the components in the image data processing system have been introduced in the above-mentioned embodiments, and will not be described in detail here. It should be noted that the components and functions in the image data processing system are operated independently, so that the independence, compatibility and stability of the components in the image data processing system can be improved.
[0119] Based on the same inventive concept, the embodiment of the present application also provides an image data processing device for implementing the image data processing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more image data processing device embodiments provided below can refer to the limitations of the image data processing method above, and will not be repeated here.
[0120] In an exemplary embodiment, Figure 7 As shown, an image data processing device is provided, comprising: a receiving module 31 and a processing module 32, wherein:
[0121] A receiving module 31, used for receiving a data stream sent by a medical image acquisition device;
[0122] The processing module 32 is used to process the data stream while storing the data stream;
[0123] The processing module 32 includes:
[0124] A storage request receiving unit, used to receive a storage request sent by a medical image acquisition device; the storage request includes a data stream and a logical storage address;
[0125] A determination unit, used to determine a physical storage address of a data stream according to a logical storage address and a preset mapping relationship;
[0126] The storage unit is used to store the data stream to the physical storage address.
[0127] In one embodiment, the processing module 32 includes:
[0128] A type determination unit, used to determine the type of the data stream;
[0129] A first processing unit is used to transmit the data stream to a graphics processor GPU for data processing when the data stream type is a large data volume type; the data stream of the large data volume type includes three-dimensional medical data;
[0130] The second processing unit is used to transmit the data stream to the application layer of the processing device for data processing when the data stream type is a small data volume type; the data stream of the small data volume type includes myocardial perfusion curve data and electrocardiorespiration curve data.
[0131] In one embodiment, the first processing unit includes:
[0132] The replication subunit is used to replicate the data stream through the optical device to obtain a backup data stream corresponding to the data stream;
[0133] The first processing sub-unit is used to transmit the backup data stream to the GPU for data processing.
[0134] In one embodiment, the second processing unit includes:
[0135] The second processing sub-unit is used to extract a target data stream of a small data volume type from the data stream, and transmit the target data stream to the application layer for data processing through the storage space and register of the logic controller in the processing device.
[0136] In one embodiment, the image data processing device further includes:
[0137] An acceleration configuration subunit, used for accelerating the configuration of registers using an accelerator to obtain configured registers;
[0138] The second processing sub-unit is specifically used to transmit the target data stream to the application layer for data processing through the storage space and the configured registers.
[0139] Each module in the above-mentioned image data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0140] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal or a server. The internal structure diagram thereof may be as follows: Figure 8As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, an image data processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0141] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0142] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0143] Receiving a data stream sent by a medical image acquisition device;
[0144] While storing the data stream, data processing is performed on the data stream;
[0145] Ways to store data streams, including:
[0146] Receiving a storage request sent by a medical image acquisition device; the storage request includes a data stream and a logical storage address;
[0147] Determine the physical storage address of the data stream according to the logical storage address and the preset mapping relationship;
[0148] Store the data stream to a physical storage address.
[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0150] Determine the type of data flow;
[0151] If the data stream type is a large data volume type, the data stream is transmitted to a graphics processor GPU for data processing; the large data volume type of data stream includes three-dimensional medical data;
[0152] If the data stream type is a small data volume type, the data stream is transmitted to the application layer of the processing device for data processing; the data stream of the small data volume type includes myocardial perfusion curve data and electrocardiorespiration curve data.
[0153] In one embodiment, the data stream is transmitted to a graphics processor GPU for data processing, and the processor further implements the following steps when executing the computer program:
[0154] The data stream is copied through an optical device to obtain a backup data stream corresponding to the data stream;
[0155] The backup data stream is transmitted to the GPU for data processing.
[0156] In one embodiment, the data stream is transmitted to the application layer of the processing device for data processing, and the processor further implements the following steps when executing the computer program:
[0157] A target data stream of a small data volume type is extracted from the data stream, and the target data stream is transmitted to the application layer for data processing through the storage space and registers of the logic controller in the processing device.
[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0159] An accelerator is used to accelerate the configuration of the register to obtain the configured register;
[0160] The target data stream is transmitted to the application layer for data processing through the storage space and registers of the logic controller in the processing device. When the processor executes the computer program, the following steps are also implemented:
[0161] The target data stream is transferred to the application layer for data processing through the storage space and configured registers.
[0162] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0163] Receiving a data stream sent by a medical image acquisition device;
[0164] While storing the data stream, data processing is performed on the data stream;
[0165] Ways to store data streams, including:
[0166] Receiving a storage request sent by a medical image acquisition device; the storage request includes a data stream and a logical storage address;
[0167] Determine the physical storage address of the data stream according to the logical storage address and the preset mapping relationship;
[0168] Store the data stream to a physical storage address.
[0169] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0170] Determine the type of data flow;
[0171] If the data stream type is a large data volume type, the data stream is transmitted to a graphics processor GPU for data processing; the large data volume type of data stream includes three-dimensional medical data;
[0172] If the data stream type is a small data volume type, the data stream is transmitted to the application layer of the processing device for data processing; the data stream of the small data volume type includes myocardial perfusion curve data and electrocardiorespiration curve data.
[0173] In one embodiment, the data stream is transmitted to a graphics processor (GPU) for data processing, and when the computer program is executed by the processor, the following steps are also implemented:
[0174] The data stream is copied through an optical device to obtain a backup data stream corresponding to the data stream;
[0175] The backup data stream is transmitted to the GPU for data processing.
[0176] In one embodiment, the data stream is transmitted to the application layer of the processing device for data processing, and the computer program, when executed by the processor, further implements the following steps:
[0177] A target data stream of a small data volume type is extracted from the data stream, and the target data stream is transmitted to the application layer for data processing through the storage space and registers of the logic controller in the processing device.
[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0179] An accelerator is used to accelerate the configuration of the register to obtain the configured register;
[0180] The target data stream is transmitted to the application layer for data processing through the storage space and registers of the logic controller in the processing device. When the computer program is executed by the processor, the following steps are also implemented:
[0181] The target data stream is transferred to the application layer for data processing through the storage space and configured registers.
[0182] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0183] Receiving a data stream sent by a medical image acquisition device;
[0184] While storing the data stream, data processing is performed on the data stream;
[0185] Ways to store data streams, including:
[0186] Receiving a storage request sent by a medical image acquisition device; the storage request includes a data stream and a logical storage address;
[0187] Determine the physical storage address of the data stream according to the logical storage address and the preset mapping relationship;
[0188] Store the data stream to a physical storage address.
[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0190] Determine the type of data flow;
[0191] If the data stream type is a large data volume type, the data stream is transmitted to a graphics processor GPU for data processing; the large data volume type of data stream includes three-dimensional medical data;
[0192] If the data stream type is a small data volume type, the data stream is transmitted to the application layer of the processing device for data processing; the data stream of the small data volume type includes myocardial perfusion curve data and electrocardiorespiration curve data.
[0193] In one embodiment, the data stream is transmitted to a graphics processor (GPU) for data processing, and when the computer program is executed by the processor, the following steps are also implemented:
[0194] The data stream is copied through an optical device to obtain a backup data stream corresponding to the data stream;
[0195] The backup data stream is transmitted to the GPU for data processing.
[0196] In one embodiment, the data stream is transmitted to the application layer of the processing device for data processing, and the computer program, when executed by the processor, further implements the following steps:
[0197] A target data stream of a small data volume type is extracted from the data stream, and the target data stream is transmitted to the application layer for data processing through the storage space and registers of the logic controller in the processing device.
[0198] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0199] An accelerator is used to accelerate the configuration of the register to obtain the configured register;
[0200] The target data stream is transmitted to the application layer for data processing through the storage space and registers of the logic controller in the processing device. When the computer program is executed by the processor, the following steps are also implemented:
[0201] The target data stream is transferred to the application layer for data processing through the storage space and configured registers.
[0202] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0203] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0204] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for processing image data, characterized in that: The method is applied to a processing device, and the method comprises: Receiving a data stream sent by a medical image acquisition device; While storing the data stream, performing data processing on the data stream; The method of storing the data stream includes: Receiving a storage request sent by the medical image acquisition device; the storage request includes the data stream and a logical storage address; Determining a physical storage address of the data stream according to the logical storage address and a preset mapping relationship; The data stream is stored in the physical storage address.
2. The method according to claim 1, characterized in that The performing data processing on the data stream comprises: determining a type of the data stream; If the data stream type is a large data volume type, the data stream is transmitted to a graphics processor (GPU) for data processing; the large data volume type of data stream includes three-dimensional medical data; If the data stream type is a small data volume type, the data stream is transmitted to the application layer of the processing device for data processing; the data stream of the small data volume type includes myocardial perfusion curve data and electrocardiorespiration curve data.
3. The method according to claim 2, characterized in that The step of transmitting the data stream to a graphics processor (GPU) for data processing includes: Copying the data stream through an optical device to obtain a backup data stream corresponding to the data stream; The backup data stream is transmitted to the GPU for data processing.
4. The method according to claim 2, characterized in that: The step of transmitting the data stream to the application layer of the processing device for data processing comprises: A target data stream of a small data volume type is extracted from the data stream, and the target data stream is transmitted to the application layer for data processing through the storage space and register of the logic controller in the processing device.
5. The method according to claim 4, characterized in that The method further comprises: Using an accelerator to accelerate configuration of the register to obtain a configured register; The step of transmitting the target data stream to the application layer for data processing through the storage space and register of the logic controller in the processing device includes: The target data stream is transmitted to the application layer through the storage space and the configured registers for data processing.
6. An image data processing system, characterized in that: The image data processing system includes an optical device and a logic controller; The optical device is used to receive the data stream sent by the medical image acquisition device; The logic controller is used to perform data processing on the data stream while storing the data stream.
7. The system according to claim 6, characterized in that The image data processing system also includes: a GPU and an accelerator; The optical device is further used for transmitting the data stream to the GPU for data processing when the data stream is of a large data volume type; The logic controller is further configured to transmit the data stream through the accelerator to the application layer of the image data processing system for data processing when the data stream is of a small data volume type.
8. An image data processing device, characterized in that: The device comprises: A receiving module, used for receiving a data stream sent by a medical image acquisition device; A processing module, used for performing data processing on the data stream while storing the data stream; The processing modules include: A storage request receiving unit, used for receiving a storage request sent by the medical image acquisition device; the storage request includes the data stream and a logical storage address; A determination unit, configured to determine a physical storage address of the data stream according to the logical storage address and a preset mapping relationship; A storage unit is used to store the data stream to the physical storage address.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.