WO2022017085A1 - Dicom file processing method, device and system - Google Patents

Dicom file processing method, device and system Download PDF

Info

Publication number
WO2022017085A1
WO2022017085A1 PCT/CN2021/100438 CN2021100438W WO2022017085A1 WO 2022017085 A1 WO2022017085 A1 WO 2022017085A1 CN 2021100438 W CN2021100438 W CN 2021100438W WO 2022017085 A1 WO2022017085 A1 WO 2022017085A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
dicom
image
format
sending
Prior art date
Application number
PCT/CN2021/100438
Other languages
French (fr)
Chinese (zh)
Inventor
陈颀潇
张豪
彭嵩阳
Original Assignee
西门子(中国)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西门子(中国)有限公司 filed Critical 西门子(中国)有限公司
Publication of WO2022017085A1 publication Critical patent/WO2022017085A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

A digital imaging and communications in medicine (DICOM) file processing method, device and system. Said method comprises: generating an image file on the basis of pixel data contained in a DICOM file (101); generating a compressed file of the DICOM file (102); upon receiving of an image sending instruction, sending the image file, and upon receiving of a file sending instruction, sending the DICOM file or the compressed file (103). The method can improve the transmission efficiency of DICOM files, and can display images efficiently.

Description

一种处理DICOM文件的方法、装置和系统A method, device and system for processing DICOM files 技术领域technical field
本发明涉及医疗设备技术领域,特别是涉及一种处理医学数字成像和通信(Digital Imaging and Communications in Medicine,DICOM)文件的方法、装置和系统。本发明尤其涉及发送医学数字成像和通信文件的方法、装置和系统。The present invention relates to the technical field of medical equipment, in particular to a method, device and system for processing medical digital imaging and communications (DICOM) files. In particular, the present invention relates to methods, apparatus and systems for transmitting medical digital imaging and communication files.
背景技术Background technique
DICOM是医学图像和相关信息的国际标准。它定义了质量能满足临床需要的可用于数据交换的医学图像格式。DICOM被广泛应用于放射医疗,心血管成像以及放射诊疗诊断设备(比如,X射线设备、CT设备、磁共振设备,超声设备等),并且在眼科和牙科等医学领域得到越来越深入广泛的应用。DICOM文件不仅包含图像本身的信息,同时还携带大量的医疗相关信息。DICOM标准的推出与实现,简化了医学影像信息交换的实现,推动了影像归档和通信系统(Picture Archiving and Communication Systems,PACS)的研究与发展。DICOM is an international standard for medical images and related information. It defines a medical image format that can be used for data exchange with a quality that meets clinical needs. DICOM is widely used in radiology, cardiovascular imaging and radiological diagnosis equipment (such as X-ray equipment, CT equipment, magnetic resonance equipment, ultrasound equipment, etc.) application. DICOM files not only contain information about the image itself, but also carry a lot of medical-related information. The introduction and implementation of the DICOM standard simplifies the realization of medical image information exchange, and promotes the research and development of Image Archiving and Communication Systems (PACS).
在现有技术中,当客户端需要浏览DICOM文件时,从PACS或医学影像设备获取所需的DICOM文件。然而,DICOM文件通常较大,直接向客户端传输DICOM文件降低了文件传输效率。而且,当DICOM文件中包含大量图像时,客户端加载图像速度较慢,难以高效展示图像。In the prior art, when a client needs to browse a DICOM file, it obtains the required DICOM file from a PACS or a medical imaging device. However, DICOM files are usually large, and transferring DICOM files directly to the client reduces the file transfer efficiency. Moreover, when the DICOM file contains a large number of images, the loading speed of the images on the client side is slow, and it is difficult to display the images efficiently.
发明内容SUMMARY OF THE INVENTION
本发明实施方式提出一种发送DICOM文件的方法、装置和系统。The embodiments of the present invention provide a method, apparatus and system for sending a DICOM file.
本发明实施方式的技术方案如下:The technical scheme of the embodiment of the present invention is as follows:
一种处理,特别是发送DICOM文件的方法,包括:A method of processing, especially sending DICOM files, including:
基于包含在DICOM文件中的像素数据生成图像文件;Generate image files based on pixel data contained in DICOM files;
生成所述DICOM文件的压缩文件;generating a compressed file of the DICOM file;
当接收到图像发送指令时,发送所述图像文件;当接收到文件发送指令时,发送所述DICOM文件或所述压缩文件。When an image sending instruction is received, the image file is sent; when a file sending instruction is received, the DICOM file or the compressed file is sent.
可见,本发明实施方式中,当接收到图像发送指令时,发送图像文件,当接收到文件发送指令时发送DICOM文件或压缩文件。因此,可以基于用户需求选择性地发送图像文件、DICOM文件或其压缩文件,提高了文件传输效率。It can be seen that, in the embodiment of the present invention, an image file is sent when an image sending instruction is received, and a DICOM file or a compressed file is sent when a file sending instruction is received. Therefore, image files, DICOM files or their compressed files can be selectively sent based on user requirements, which improves file transmission efficiency.
在一个实施方式中,所述基于包含在DICOM文件中的像素数据生成图像文件包括:In one embodiment, the generating an image file based on pixel data contained in the DICOM file includes:
基于预定的窗宽窗位参数,降低包含在DICOM文件中的像素数据的采样率;Based on a predetermined window width and window level parameter, reducing the sampling rate of pixel data contained in the DICOM file;
基于降低采样率后的像素数据,生成所述图像文件,其中所述图像文件的格式包括下列中的至少一个:The image file is generated based on the downsampled pixel data, wherein the format of the image file includes at least one of the following:
位图文件(BMP)格式;图像交换格式(GIF);标签图像文件格式(TIF);联合照片专家组(JPEG)格式;互换文件格式(IFF);可交换图像文件格式(EXIF);可移植网络图像(PNG)格式。Bitmap file (BMP) format; Image Interchange Format (GIF); Tagged Image File Format (TIF); Joint Photographic Experts Group (JPEG) format; Interchange File Format (IFF); Exchangeable Image File Format (EXIF); Ported Network Image (PNG) format.
因此,本发明实施方式通过降低像素数据的采样率以及将像素数据转换为具有格式的图像文件,进一步降低了数据传输量。Therefore, the embodiments of the present invention further reduce the amount of data transmission by reducing the sampling rate of the pixel data and converting the pixel data into an image file with a format.
在一个实施方式中,所述发送DICOM文件或所述压缩文件包括:In one embodiment, the sending of the DICOM file or the compressed file comprises:
当所述DICOM文件的大小超过预定的门限值时,发送所述压缩文件;When the size of the DICOM file exceeds a predetermined threshold, sending the compressed file;
当所述DICOM文件的大小不超过所述门限值时,发送所述DICOM文件。When the size of the DICOM file does not exceed the threshold value, the DICOM file is sent.
可见,本发明实施方式基于DICOM文件的大小确定发送DICOM文件或其压缩文件,进一步提高了文件传输效率。It can be seen that the embodiments of the present invention determine and send the DICOM file or its compressed file based on the size of the DICOM file, which further improves the file transmission efficiency.
在一个实施方式中,还包括:In one embodiment, it also includes:
发送所述图像文件的分页信息;Send the paging information of the image file;
当接收到包含当前页面编号的预加载指令时,发送与所述当前页面编号相关的页面编号中的图像文件。When a preload instruction including the current page number is received, the image file in the page number related to the current page number is sent.
因此,本发明实施方式进一步发送图像文件的分页信息,从而可以基于返回的包含当前页面编号的预加载指令,针对性地发送与当前页面编号相关的页面编号中的图像文件,有助于图像文件的预加载,可以高效快速地展示图像。Therefore, the embodiment of the present invention further sends the paging information of the image file, so that the image file in the page number related to the current page number can be sent in a targeted manner based on the returned preload instruction including the current page number, which is helpful for the image file preloading, which can display images efficiently and quickly.
一种处理,特别是发送DICOM文件的装置,包括:A device for processing, in particular sending DICOM files, comprising:
图像文件生成模块,其适配于基于包含在DICOM文件中的像素数据生成图像文件;an image file generation module adapted to generate an image file based on pixel data contained in a DICOM file;
压缩文件生成模块,其适配于生成所述DICOM文件的压缩文件;A compressed file generation module, which is adapted to generate a compressed file of the DICOM file;
发送模块,其适配于当接收到图像发送指令时,发送所述图像文件;当接收到文件发送指令时,发送所述DICOM文件或所述压缩文件。The sending module is adapted to send the image file when receiving the image sending instruction; send the DICOM file or the compressed file when receiving the file sending instruction.
可见,本发明实施方式中,当接收到图像发送指令时,发送图像文件,当接收到文件发送指令时发送DICOM文件或压缩文件。因此,可以基于用户需求选择性地发送图像文件、DICOM文件或其压缩文件,提高了文件传输效率。It can be seen that, in the embodiment of the present invention, an image file is sent when an image sending instruction is received, and a DICOM file or a compressed file is sent when a file sending instruction is received. Therefore, image files, DICOM files or their compressed files can be selectively sent based on user requirements, which improves file transmission efficiency.
在一个实施方式中,图像文件生成模块,其适配于基于预定的窗宽窗位参数,降低包含在所述DICOM文件中的像素数据的采样率;基于降低采样率后的像素数据,生成所述图像文件,其中所述图像文件的格式包括下列中的至少一个:In one embodiment, an image file generation module adapted to reduce the sampling rate of pixel data contained in the DICOM file based on a predetermined window width and window level parameter; The image file, wherein the format of the image file includes at least one of the following:
位图文件格式;图像交换格式;标签图像文件格式;联合照片专家组格式;互换文件格式;可交换图像文件格式;可移植网络图像格式。Bitmap File Format; Image Interchange Format; Tagged Image File Format; Joint Photographic Experts Group Format; Interchange File Format; Interchangeable Image File Format; Portable Network Image Format.
因此,本发明实施方式通过降低像素数据的采样率以及将像素数据转换为具有格式的图像文件,进一步降低了数据传输量。Therefore, the embodiments of the present invention further reduce the amount of data transmission by reducing the sampling rate of the pixel data and converting the pixel data into an image file with a format.
在一个实施方式中,In one embodiment,
发送模块,其适配于当所述DICOM文件的大小超过预定的门限值时,发送所述压缩文件;当所述DICOM文件的大小不超过所述门限值时,发送所述DICOM文件。A sending module, adapted to send the compressed file when the size of the DICOM file exceeds a predetermined threshold value; and send the DICOM file when the size of the DICOM file does not exceed the threshold value.
可见,本发明实施方式基于DICOM文件的大小确定发送DICOM文件或其压缩文件,进一步提高了文件传输效率。It can be seen that the embodiments of the present invention determine and send the DICOM file or its compressed file based on the size of the DICOM file, which further improves the file transmission efficiency.
在一个实施方式中,发送模块,其适配于发送所述图像文件的分页信息;当接收到包含当前页面编号的预加载指令时,发送与所述当前页面编号相关的页面编号中的图像文件。In one embodiment, a sending module adapted to send the paging information of the image file; when receiving a preloading instruction including the current page number, sending the image file in the page number related to the current page number .
因此,本发明实施方式进一步发送图像文件的分页信息,从而可以基于返回的包含当前页面编号的预加载指令,针对性地发送与当前页面编号相关的页面编号中的图像文件,有助于图像文件的预加载,可以高效快速地展示图像。Therefore, the embodiment of the present invention further sends the paging information of the image file, so that the image file in the page number related to the current page number can be sent in a targeted manner based on the returned preload instruction including the current page number, which is helpful for the image file preloading, which can display images efficiently and quickly.
一种处理,特别是发送DICOM文件的系统,包括:A system for processing, especially sending DICOM files, including:
服务器,其适配于基于包含在DICOM文件中的像素数据生成图像文件,生成所述DICOM文件的压缩文件;A server adapted to generate an image file based on the pixel data contained in the DICOM file, generating a compressed file of the DICOM file;
客户端,其适配于发送图像发送指令或文件发送指令;A client, which is adapted to send an image sending instruction or a file sending instruction;
其中所述服务器,其还适配于当接收到所述图像发送指令时,向客户端发送所述图像文件;当接收到所述文件发送指令时,向客户端发送所述DICOM文件或所述压缩文件。The server is further adapted to send the image file to the client when receiving the image sending instruction; send the DICOM file or the DICOM file to the client when receiving the file sending instruction Compressed file.
可见,本发明实施方式中,当服务器接收到图像发送指令时发送图像文件,当服务器接收到文件发送指令时发送DICOM文件或压缩文件,服务器可以基于用户需求选择性地发送图像文件、DICOM文件或其压缩文件,提高了文件传输效率。It can be seen that, in the embodiment of the present invention, when the server receives an image sending instruction, it sends an image file, and when the server receives a file sending instruction, it sends a DICOM file or a compressed file, and the server can selectively send image files, DICOM files or compressed files based on user requirements. It compresses files and improves the efficiency of file transmission.
在一个实施方式中,所述服务器,其适配于向客户端发送所述图像文件的分页信息;In one embodiment, the server is adapted to send the paging information of the image file to the client;
客户端,其适配于基于所述分页信息生成展示页面,基于用户在展示页面上的预定操作发送包含当前页面编号的预加载指令;a client, which is adapted to generate a display page based on the paging information, and sends a preload instruction including the current page number based on a user's predetermined operation on the display page;
其中所述服务器,其还适配于当接收到所述预加载指令时,向客户端发送与所述当前页面编号相关的页面编号中的图像文件。The server is further adapted to send the image file in the page number related to the current page number to the client when receiving the preloading instruction.
因此,本发明实施方式的服务器进一步发送图像文件的分页信息,从而可以基于客户端返回的、包含当前页面编号的预加载指令,针对性地向客户端发送与当前页面编号相关的页面编号中的图像文件,有助于客户端中的图像文件的预加载,可以高效快速地展示图像。Therefore, the server in the embodiment of the present invention further sends the paging information of the image file, so that based on the preloading instruction returned by the client and including the current page number, the server can send the page number related to the current page number to the client in a targeted manner. Image files are helpful for the preloading of image files in the client, and can display images efficiently and quickly.
在一个实施方式中,所述服务器,其适配于从医学影像设备获取所述DICOM文件,或从PACS获取所述DICOM文件,其中所述PACS经由数据交换设备从医学影像设备获取所述DICOM文件。In one embodiment, the server adapted to obtain the DICOM file from a medical imaging device, or to obtain the DICOM file from a PACS, wherein the PACS obtains the DICOM file from a medical imaging device via a data exchange device .
可见,服务器可以通过多种方式获取DICOM文件,适用范围广。It can be seen that the server can obtain DICOM files in a variety of ways, with a wide range of applications.
一种服务器,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上任一项所述的发送DICOM文件的方法。A server, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to implement the sending DICOM according to any one of the above file method.
因此,本发明实施方式还提出了一种具有处理器-存储器架构的服务器,可以基于用户需求选择性地发送图像文件、DICOM文件或其压缩文件,提高了文件传输效率。Therefore, an embodiment of the present invention also proposes a server with a processor-memory architecture, which can selectively send image files, DICOM files or compressed files based on user requirements, thereby improving file transmission efficiency.
一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上任一项所述的发送DICOM文件的方法。A computer-readable storage medium storing a computer program on the computer-readable storage medium, when the computer program is executed by a processor, implements the method for sending a DICOM file as described in any one of the above.
因此,本发明实施方式还提出了一种包含计算机程序的计算机可读存储介质,可以基于用户需求选择性地发送图像文件、DICOM文件或其压缩文件,提高了文件传输效率。Therefore, embodiments of the present invention also provide a computer-readable storage medium containing a computer program, which can selectively send image files, DICOM files or compressed files thereof based on user requirements, thereby improving file transmission efficiency.
附图说明Description of drawings
图1为根据本发明实施方式发送DICOM文件的方法的流程图。FIG. 1 is a flowchart of a method for sending a DICOM file according to an embodiment of the present invention.
图2为DICOM文件格式的示意图。Figure 2 is a schematic diagram of the DICOM file format.
图3为根据本发明实施方式发送DICOM文件的装置的模块图。FIG. 3 is a block diagram of an apparatus for transmitting a DICOM file according to an embodiment of the present invention.
图4为根据本发明实施方式发送DICOM文件的系统的第一示范性结构图。FIG. 4 is a first exemplary structural diagram of a system for transmitting a DICOM file according to an embodiment of the present invention.
图5为根据本发明实施方式发送DICOM文件的系统的第二示范性结构图。FIG. 5 is a second exemplary structural diagram of a system for transmitting a DICOM file according to an embodiment of the present invention.
图6为根据本发明实施方式具有处理器-存储器架构的、发送DICOM文件的装置的模块图。6 is a block diagram of an apparatus for transmitting a DICOM file with a processor-memory architecture according to an embodiment of the present invention.
其中,附图标记如下:Among them, the reference numerals are as follows:
100100 发送DICOM文件的方法How to send DICOM files
101~103101~103 步骤 step
2020 DICOM文件 DICOM file
3131 DICOM文件头 DICOM file header
3232 DICOM数据集合DICOM Data Collection
21twenty one 文件导言Introduction to the document
22twenty two DICOM前缀DICOM prefix
23twenty three 文件信息元素file information element
24twenty four 数据元 data element
4141 DICOM标签 DICOM label
4242 值表现字段 Value representation field
4343 值长字段value long field
4444 值字段 value field
300300 发送DICOM文件的装置Device for sending DICOM files
301301 图像文件生成模块Image file generation module
302302 压缩文件生成模块Compressed file generation module
303303 发送模块sending module
5050 发送DICOM文件的系统System for sending DICOM files
5151 医学影像设备 medical imaging equipment
5252 数据交换设备 data exchange equipment
5353 PACS PACS
5454 服务器server
5555 布置在固定位置的客户端Clients placed in fixed positions
6565 可移动的客户端 removable client
600600 发送DICOM文件的装置Device for sending DICOM files
601601 处理器 processor
602602 存储器memory
具体实施方式detailed description
为了使本发明的技术方案及优点更加清楚明白,以下结合附图及实施方式,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施方式仅仅用以阐述性说明本发明,并不用于限定本发明的保护范围。In order to make the technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to illustrate the present invention, and are not used to limit the protection scope of the present invention.
为了描述上的简洁和直观,下文通过描述若干代表性的实施方式来对本发明的方案进行阐述。实施方式中大量的细节仅用于帮助理解本发明的方案。但是很明显,本发明的技术方案实现时可以不局限于这些细节。为了避免不必要地模糊了本发明的方案,一些实施方式没有进行细致地描述,而是仅给出了框架。下文中,“包括”是指“包括但不限于”,“根据……”是指“至少根据……,但不限于仅根据……”。由于汉语的语言习惯,下文中没有特别指出一个成分的数量时,意味着该成分可以是一个也可以是多个,或可理解为至少一个。For the sake of brevity and intuition in description, the solution of the present invention is explained below by describing several representative embodiments. Numerous details in the embodiments are provided only to aid in understanding the aspects of the invention. However, it is obvious that the technical solutions of the present invention may not be limited to these details during implementation. In order to avoid unnecessarily obscuring aspects of the present invention, some embodiments are not described in detail, but merely framed. Hereinafter, "including" means "including but not limited to", and "according to..." means "at least in accordance with..., but not limited to, only in accordance with...". Due to the language habit of Chinese, when the number of a component is not specified below, it means that the component can be one or more, or can be understood as at least one.
申请人发现:在现有技术中,PACS或医学影像设备直接向客户端提供完整的DICOM文件。然而,DICOM文件通常较大,这种盲目的文件传输方式具有传输效率低的缺点。在意图解决该技术问题的研究中,申请人还发现:DICOM文件的发送装置可以基于从客户端接收到的不同指令,精确判断向客户端发送图像文件、DICOM文件或其压缩文件,从而提高传输效率。The applicant found that in the prior art, a PACS or a medical imaging device directly provides a complete DICOM file to a client. However, DICOM files are usually large, and this blind file transfer method has the disadvantage of low transfer efficiency. In the research aimed at solving this technical problem, the applicant also found that the device for sending DICOM files can accurately determine to send image files, DICOM files or compressed files to the client based on different instructions received from the client, thereby improving the transmission efficiency. efficient.
图1为根据本发明实施方式发送DICOM文件的方法的流程图。该方法适用于由发送DICOM文件的装置所执行。比如,发送DICOM文件的装置具体可以实施为部署在PACS中的服务器,或与PACS分立的服务器。FIG. 1 is a flowchart of a method for sending a DICOM file according to an embodiment of the present invention. The method is suitable for execution by the device sending the DICOM file. For example, the device for sending DICOM files can be specifically implemented as a server deployed in the PACS, or a server separate from the PACS.
如图1所示,该方法包括:As shown in Figure 1, the method includes:
步骤101:基于包含在DICOM文件中的像素数据生成图像文件。Step 101: Generate an image file based on the pixel data contained in the DICOM file.
在这里,发送DICOM文件的装置可以访问PACS以获取DICOM文件,并且在自身的存储介质中保存该DICOM文件。可选地,发送DICOM文件的装置还可以从医学影像设备直接获取DICOM文件,并 且在自身的存储介质中保存该DICOM文件。医学影像设备是指利用各种不同媒介作为信息载体,将人体内部的结构重现为影像的各种仪器,其影像信息与人体实际结构有着空间和时间分布上的对应关系。通常,医学影像设备可以包括X射线设备、CT设备、磁共振设备,超声设备等等。医学影像设备可以生成DICOM文件,并基于预定的传输协议(比如,TCP/IP协议或CAN协议,等等)将DICOM文件封装为数据包,经由与医学影像设备连接的数据交换设备(比如,交换机或路由器,等等)将数据包发送出去,比如发送到PACS或发送DICOM文件的装置。Here, the device sending the DICOM file can access the PACS to obtain the DICOM file, and save the DICOM file in its own storage medium. Optionally, the device for sending the DICOM file may also directly obtain the DICOM file from the medical imaging device, and save the DICOM file in its own storage medium. Medical imaging equipment refers to various instruments that use various media as information carriers to reproduce the internal structure of the human body as images. The image information and the actual structure of the human body have a corresponding relationship in space and time distribution. Generally, the medical imaging equipment may include X-ray equipment, CT equipment, magnetic resonance equipment, ultrasound equipment and so on. The medical imaging device can generate DICOM files, and encapsulate the DICOM files into data packets based on a predetermined transmission protocol (eg, TCP/IP protocol or CAN protocol, etc.) or router, etc.) to send the packet out, such as to a PACS or a device that sends a DICOM file.
在一个实施方式中,当发送DICOM文件的装置具体实施为部署在PACS中的服务器时,该服务器可以从PACS获取DICOM文件。In one embodiment, when the apparatus for sending the DICOM file is embodied as a server deployed in the PACS, the server can obtain the DICOM file from the PACS.
在一个实施方式中,当发送DICOM文件的装置具体实施为与PACS分立的服务器时,该服务器可以基于与PACS的通信连接从PACS获取DICOM文件。In one embodiment, when the apparatus for sending the DICOM file is embodied as a server separate from the PACS, the server may obtain the DICOM file from the PACS based on the communication connection with the PACS.
在一个实施方式中,当发送DICOM文件的装置具体实施为与PACS分立的服务器时,该服务器可以基于与医学影像设备的通信连接从医学影像设备获取DICOM文件。In one embodiment, when the apparatus for sending the DICOM file is embodied as a server separate from the PACS, the server can obtain the DICOM file from the medical imaging device based on the communication connection with the medical imaging device.
以上示范性描述了获取DICOM文件的典型实施方式,本领域技术人员可以意识到,这种描述仅是示范性的,并不用于限定本发明实施方式的保护范围。The above exemplarily describes a typical implementation of acquiring a DICOM file, and those skilled in the art can realize that this description is only exemplary, and is not intended to limit the protection scope of the implementation of the present invention.
在发送DICOM文件的装置中,基于包含在DICOM文件中的像素数据生成图像文件,并且在发送DICOM文件的装置中进一步保存该图像文件。In the device that transmits the DICOM file, an image file is generated based on pixel data contained in the DICOM file, and the image file is further saved in the device that transmits the DICOM file.
在一个实施方式中,基于预定的窗宽窗位参数,降低包含在DICOM文件中的像素数据的采样率;基于降低采样率后的像素数据,生成具有图像格式的图像文件,其中图像格式包括下列中的至少一个:位图文件(BMP)格式;图像交换格式(GIF);标签图像文件格式(TIF);联合照片专家组(JPEG)格式;IOS15444文件格式;互换文件格式(IFF);可交换图像文件格式(EXIF);可移植网络图像(PNG)格式,等等。In one embodiment, the sampling rate of the pixel data contained in the DICOM file is reduced based on a predetermined window width and window level parameter; based on the pixel data after the reduced sampling rate, an image file having an image format is generated, wherein the image format includes the following At least one of: Bitmap file (BMP) format; Image Interchange Format (GIF); Tagged Image File Format (TIF); Joint Photographic Experts Group (JPEG) format; IOS15444 file format; Interchange File Format (IFF); Exchange Image File Format (EXIF); Portable Network Graphics (PNG) format, etc.
可见,通过降低DICOM文件中的像素数据的采样率,可以降低像素数据(二进制)的存储量。而且,基于像素数据生成的、具有图像格式的图像文件,其存储量进一步被降低,从而便于存储和传输图像文件。It can be seen that by reducing the sampling rate of pixel data in the DICOM file, the storage amount of pixel data (binary) can be reduced. Moreover, the storage amount of the image file having the image format generated based on the pixel data is further reduced, thereby facilitating the storage and transmission of the image file.
步骤102:生成DICOM文件的压缩文件。Step 102: Generate a compressed file of the DICOM file.
在这里,在发送DICOM文件的装置中生成DICOM文件的压缩文件,并且保存该DICOM文件和该压缩文件。Here, a compressed file of the DICOM file is generated in the device that transmits the DICOM file, and the DICOM file and the compressed file are saved.
其中,可以基于各种预定的文件压缩方式生成DICOM文件的压缩文件。比如,可以采用无损压缩算法或有损压缩算法生成DICOM文件的压缩文件。其中,无损压缩算法包括:差分编码、RLE、Huffman编码、LZW编码、算术编码,等等。有损压缩算法包括:预测编码、音感编码、分形压缩、小波压缩、JPEG/MPEG,等等。Wherein, the compressed file of the DICOM file can be generated based on various predetermined file compression methods. For example, a lossless compression algorithm or a lossy compression algorithm can be used to generate a compressed file of the DICOM file. Among them, lossless compression algorithms include: differential coding, RLE, Huffman coding, LZW coding, arithmetic coding, and so on. Lossy compression algorithms include: predictive coding, pitch coding, fractal compression, wavelet compression, JPEG/MPEG, and so on.
以上示范性描述了生成DICOM文件的压缩文件的典型实施方式,本领域技术人员可以意识到,这种 描述仅是示范性的,并不用于限定本发明实施方式的保护范围。The above exemplarily describes a typical implementation for generating a compressed file of a DICOM file, and those skilled in the art can realize that this description is only exemplary, and is not intended to limit the protection scope of the embodiments of the present invention.
其中,步骤101和步骤102的执行顺序并无特定要求。即:(1)、可以首先执行步骤101,再执行步骤102;(2)、可以首先执行步骤102,再执行步骤101;(3)、可以同时执行步骤101和步骤102。There is no specific requirement for the execution sequence of step 101 and step 102. That is: (1), step 101 may be performed first, and then step 102; (2), step 102 may be performed first, and then step 101; (3), step 101 and step 102 may be performed simultaneously.
步骤103:当接收到图像发送指令时,发送图像文件;当接收到文件发送指令时,发送DICOM文件或压缩文件。Step 103: When receiving an image sending instruction, send an image file; when receiving a file sending instruction, send a DICOM file or a compressed file.
在这里,当发送DICOM文件的装置从客户端接收到图像发送指令时,向客户端发送图像文件;当发送DICOM文件的装置从客户端接收到文件发送指令时,向客户端发送DICOM文件或压缩文件。其中当DICOM文件的大小超过预定的门限值时,发送压缩文件;当DICOM文件的大小不超过门限值时,发送所述DICOM文件。优选地,门限值可以为10兆字节(MB)。Here, when the device for sending the DICOM file receives an image sending instruction from the client, it sends the image file to the client; when the device for sending the DICOM file receives the file sending instruction from the client, it sends the DICOM file or compression to the client document. When the size of the DICOM file exceeds a predetermined threshold, the compressed file is sent; when the size of the DICOM file does not exceed the threshold, the DICOM file is sent. Preferably, the threshold value may be 10 megabytes (MB).
当客户端期望浏览图像文件时,客户端向发送DICOM文件的装置发送图像发送指令;当客户端期望浏览DICOM文件时,客户端向发送DICOM文件的装置发送文件发送指令。发送DICOM文件的装置可以基于从客户端接收到的不同指令,精确判断发送图像文件、DICOM文件或其压缩文件,从而提高了传输效率。When the client wants to browse the image file, the client sends an image sending instruction to the device that sends the DICOM file; when the client wants to browse the DICOM file, the client sends a file sending instruction to the device that sends the DICOM file. The device for sending DICOM files can accurately determine to send image files, DICOM files or compressed files based on different instructions received from the client, thereby improving transmission efficiency.
在一个实施方式中,该方法还包括:发送图像文件的分页信息;当接收到包含当前页面编号的预加载指令时,发送与当前页面编号相关的页面编号中的图像文件。优选地,图像文件的分页信息包括图像文件的总数目以及分页数目。In one embodiment, the method further includes: sending paging information of the image file; when receiving a preloading instruction including the current page number, sending the image file in the page number related to the current page number. Preferably, the paging information of the image file includes the total number of image files and the number of paging.
优选地,与当前页面编号相关的页面编号的图像文件通常包括:Preferably, the image file of the page number relative to the current page number usually includes:
(1)、当前页面编号中的图像文件;(1), the image file in the current page number;
(2)、当前页面编号之前预定范围内的页面编中号的图像文件;(2), the image file of the page number medium number within the predetermined range before the current page number;
(3)、当前页面编号之后预定范围内的页面编号中的图像文件。(3) An image file in a page number within a predetermined range after the current page number.
可见,本发明实施方式通过预加载方式,可以高效展示图像。It can be seen that, in the embodiment of the present invention, images can be displayed efficiently by means of preloading.
举例:服务器向客户端发送图像文件的分页信息,该分页信息具体包括图像文件的总数目(比如,100张)以及分页数目(比如,5页,每页20张图像)。客户端基于该分页信息生成包含5页的展示页面,其中每页可以展示20张图像。当客户端检测到用户拖动到第3页面的底部且停留预定时间(比如两秒)时,客户端向服务器发送包含当前页面编号(即3)的预加载指令,服务器向客户端发送第2页面的图像文件、第3页面的图像文件和第4页面的图像文件。客户端展示第3页面的图像文件,并且在后台预加载第2页面的图像文件和第4页面的图像文件。因此,当用户浏览完毕第3页面后,向前拖动页面或向后拖动页面时,可以快速展示第2页面的图像和第4页面的图像,从而高效展示图像。For example: the server sends the paging information of the image file to the client, the paging information specifically includes the total number of image files (for example, 100) and the number of pages (for example, 5 pages, each page has 20 images). Based on the paging information, the client generates a display page containing 5 pages, where each page can display 20 images. When the client detects that the user drags to the bottom of the third page and stays there for a predetermined time (for example, two seconds), the client sends a preload instruction containing the current page number (ie, 3) to the server, and the server sends the second The image file for the page, the image file for the 3rd page, and the image file for the 4th page. The client displays the image file of page 3, and preloads the image file of page 2 and the image file of page 4 in the background. Therefore, when the user drags the page forward or backward after browsing the third page, the image of the second page and the image of the fourth page can be quickly displayed, so that the images can be displayed efficiently.
其中,客户端与发送DICOM文件的装置之间可以通过有线接口或无线接口实现传输指令和文件。有线接口包括下列中至少一个:通用串行总线接口、控制器局域网接口、串口,等等;无线接口包括下列中至少一个:红外接口、近场通讯接口、蓝牙接口、紫蜂接口、无线宽带接口,第三代移动通信接口、第四 代移动通信接口、第五代移动通信接口,等等。Wherein, between the client and the device for sending the DICOM file, the transmission of instructions and files can be realized through a wired interface or a wireless interface. The wired interface includes at least one of the following: a universal serial bus interface, a controller area network interface, a serial port, etc.; the wireless interface includes at least one of the following: an infrared interface, a near field communication interface, a Bluetooth interface, a ZigBee interface, and a wireless broadband interface , third-generation mobile communication interface, fourth-generation mobile communication interface, fifth-generation mobile communication interface, and so on.
图2为DICOM文件格式的示意图。如图2所示,DICOM文件20包括DICOM文件头31和DICOM数据集合32。Figure 2 is a schematic diagram of the DICOM file format. As shown in FIG. 2 , the DICOM file 20 includes a DICOM file header 31 and a DICOM data set 32 .
DICOM文件头31包含标识数据集合的相关信息,每个DICOM文件都包括一个文件头。DICOM文件头31包含了标识数据集合的相关信息。具体地,DICOM文件头31包括:(1)、文件导言21,由128个字节组成;(2)、DICOM前缀22,可根据长度为4个字节的字符串是否等于“DICM”来判断该文件是不是DICOM文件;(3)、文件信息元素23。The DICOM file header 31 contains relevant information identifying the data set, and each DICOM file includes a file header. The DICOM file header 31 contains relevant information identifying the data set. Specifically, the DICOM file header 31 includes: (1), a file introduction 21, which is composed of 128 bytes; (2), a DICOM prefix 22, which can be judged according to whether a character string with a length of 4 bytes is equal to "DICM" Whether the file is a DICOM file; (3), the file information element 23.
DICOM数据集合32是DICOM文件31的主要组成部分,它包含多个数据元24。每个数据元24包括:(1)、DICOM标签(TAG)41:存储该项信息的标识;(2)、值表现(value representation,VR)字段42:存储描述该项信息的数据类型;(3)、值长(value length)字段43:存储描述该项信息的数据长度;(4)、值(value)字段44:存储描述该项信息的数据值。The DICOM data set 32 is the main component of the DICOM file 31 and contains a plurality of data elements 24 . Each data element 24 includes: (1) DICOM tag (TAG) 41: the identifier for storing the item of information; (2), value representation (VR) field 42: storing the data type describing the item of information; ( 3), the value length field 43: storing the data length describing the item of information; (4), the value (value) field 44: storing the data value describing the item of information.
DICOM标准在PS3.5中定义了27个基本数据类型,即定义了27个VR。具体地,值表现字段42可以包括:(1)、代码字符串(Code String,CS);(2)、短字符串(Short String,SH);(3)、长字符串(Long String,LO);(4)、短文本(Short Text,ST);(5)、长文本(Long Text,LT);(6)、无限制文本(Unlimited Text,UT);(6)、应用实体(Application Entity,AE);(8)、病人姓名(Person Name,PN);(9)、唯一标识符(Unique Identifier,UI);(10)、日期(Data,DA);(11)、时间(Time,TM);(12)、日期时间(Date Time,DT);(13)、年龄字符串(Age String,AS);(14)、整型字符串(Integer String,IS);(15)、小数字符串(Decimal String,DS);(16)、有符号短型(Signed Short,SS);(17)、无符号短型(Unsigned Short,US);(18)、有符号长型(Signed Long,SL);(19)、无符号长型(Unsigned Long,UL);(20)、属性标签(Attribute Tag,AT);(21)、单精度浮点(Floating Single,FL);(22)、双精度二进制浮点数字(Floating Point Double,FD);(23)、其他字节字符串(Other Byte String,OB);(24)、其他单词字符串(Other Word String,OW);(25)、其他浮点字符串(Other Float String,OF);(26)、条目序列(Sequence Items,SQ);(27)、未知(Unknown,UN)。The DICOM standard defines 27 basic data types in PS3.5, that is, 27 VRs are defined. Specifically, the value representation field 42 may include: (1), code string (Code String, CS); (2), short string (Short String, SH); (3), long string (Long String, LO) ); (4), Short Text (ST); (5), Long Text (LT); (6), Unlimited Text (Unlimited Text, UT); (6), Application Entity (Application Entity, AE); (8), Patient Name (Person Name, PN); (9), Unique Identifier (UI); (10), Date (Data, DA); (11), Time (Time) , TM); (12), Date Time (Date Time, DT); (13), Age String (Age String, AS); (14), Integer String (Integer String, IS); (15), Decimal String (Decimal String, DS); (16), Signed Short (SS); (17), Unsigned Short (Unsigned Short, US); (18), Signed Long (Signed) Long, SL); (19), Unsigned Long (UL); (20), Attribute Tag (AT); (21), Floating Single (FL); (22) ), double-precision binary floating point numbers (Floating Point Double, FD); (23), other byte strings (Other Byte String, OB); (24), other word strings (Other Word String, OW); ( 25), other floating-point strings (Other Float String, OF); (26), item sequence (Sequence Items, SQ); (27), unknown (Unknown, UN).
其中,在值字段44中存储有像素数据。可以基于在值字段44中存储的像素数据生成图像文件。Among them, pixel data is stored in the value field 44 . The image file may be generated based on the pixel data stored in the value field 44 .
基于上述描述,本发明实施方式还提出了发送DICOM文件的装置。Based on the above description, an embodiment of the present invention also proposes an apparatus for sending a DICOM file.
图3为根据本发明实施方式发送DICOM文件的装置的模块图。FIG. 3 is a block diagram of an apparatus for transmitting a DICOM file according to an embodiment of the present invention.
如图3所示,发送DICOM文件的装置300包括:As shown in Figure 3, the apparatus 300 for sending DICOM files includes:
图像文件生成模块301,其适配于基于包含在DICOM文件中的像素数据生成图像文件;an image file generation module 301 adapted to generate an image file based on the pixel data contained in the DICOM file;
压缩文件生成模块302,其适配于生成DICOM文件的压缩文件;A compressed file generation module 302, which is adapted to generate a compressed file of a DICOM file;
发送模块303,其适配于当接收到图像发送指令时,发送图像文件;当接收到文件发送指令时,发送DICOM文件或压缩文件。The sending module 303 is adapted to send an image file when receiving an image sending instruction; send a DICOM file or a compressed file when receiving a file sending instruction.
在一个实施方式中,图像文件生成模块301,其适配于基于预定的窗宽窗位参数,降低包含在DICOM文件中的像素数据的采样率;基于降低采样率后的像素数据,生成具有图像格式的图像文件,其中图像格式包括下列中的至少一个:BMP格式;GIF格式;TIF格式;JPEG格式;IFF格式;EXIF格式;PNG格式,等等。In one embodiment, the image file generation module 301 is adapted to reduce the sampling rate of pixel data contained in the DICOM file based on a predetermined window width and window level parameter; An image file in a format, wherein the image format includes at least one of the following: BMP format; GIF format; TIF format; JPEG format; IFF format; EXIF format; PNG format, etc.
在一个实施方式中,发送模块303,其适配于当DICOM文件的大小超过预定的门限值时,发送压缩文件;当DICOM文件的大小不超过所述门限值时,发送DICOM文件。In one embodiment, the sending module 303 is adapted to send the compressed file when the size of the DICOM file exceeds a predetermined threshold value; when the size of the DICOM file does not exceed the threshold value, send the DICOM file.
在一个实施方式中,发送模块303,其适配于发送图像文件的分页信息;当接收到包含当前页面编号的预加载指令时,发送与当前页面编号相关的页面编号中的图像文件。In one embodiment, the sending module 303 is adapted to send the paging information of the image file; when a preloading instruction including the current page number is received, the image file in the page number related to the current page number is sent.
发送DICOM文件的装置300具体可以实施为部署在PACS中的服务器,或与PACS分立的服务器。The apparatus 300 for sending DICOM files can be specifically implemented as a server deployed in the PACS, or a server separate from the PACS.
基于上述描述,本发明实施方式还提出了发送DICOM文件的系统。Based on the above description, an embodiment of the present invention also proposes a system for sending a DICOM file.
图4为根据本发明实施方式发送DICOM文件的系统的第一示范性结构图。FIG. 4 is a first exemplary structural diagram of a system for transmitting a DICOM file according to an embodiment of the present invention.
如图4所示,该系统50包括:As shown in Figure 4, the system 50 includes:
医学影像设备51,用于生成DICOM图像,并发送DICOM图像;The medical imaging device 51 is used for generating DICOM images and sending DICOM images;
数据交换设备52,与医学影像设备51连接,用于将DICOM图像发送到PACS53;The data exchange device 52 is connected with the medical imaging device 51, and is used for sending the DICOM image to the PACS53;
服务器54,用于从医学影像设备51获取DICOM文件,或从PACS53获取DICOM文件,还用于基于包含在DICOM文件中的像素数据生成图像文件,生成DICOM文件的压缩文件;The server 54 is used to obtain the DICOM file from the medical imaging device 51, or obtain the DICOM file from the PACS53, and is also used to generate an image file based on the pixel data contained in the DICOM file, and to generate a compressed file of the DICOM file;
布置在固定位置的客户端55,向服务器54发送图像发送指令或文件发送指令;The client 55 arranged in a fixed position sends an image sending instruction or a file sending instruction to the server 54;
其中,服务器54,还适配于当接收到图像发送指令时,向布置在固定位置的客户端55发送图像文件;当接收到文件发送指令时,向布置在固定位置的客户端55发送DICOM文件或所述压缩文件。Wherein, the server 54 is also adapted to send the image file to the client 55 arranged in a fixed position when receiving the image sending instruction; when receiving the file sending instruction, send the DICOM file to the client 55 arranged in the fixed position or the compressed file.
比如,布置在固定位置的客户端55可以实施为个人电脑(PC)。服务器54可以部署在PACS中或与PACS分立布置。具体地,服务器54可以包含如图3所示的发送DICOM文件的装置300。For example, the client 55 arranged at a fixed location may be implemented as a personal computer (PC). Server 54 may be deployed in the PACS or separate from the PACS. Specifically, the server 54 may include an apparatus 300 for sending DICOM files as shown in FIG. 3 .
其中,当布置在固定位置的客户端55期望只浏览图像时,则基于用户操作向服务器54发送图像发送指令;当布置在固定位置的客户端55期望浏览完整的DICOM文件时,则基于用户操作向服务器54发送文件发送指令。当客户端55从服务器54接收到压缩文件时,针对该压缩文件执行解压缩处理,从而获取DICOM文件。Wherein, when the client 55 arranged in a fixed position expects to browse only images, it sends an image sending instruction to the server 54 based on the user operation; A file sending instruction is sent to the server 54 . When the client 55 receives the compressed file from the server 54, it performs decompression processing on the compressed file, thereby acquiring the DICOM file.
图5为根据本发明实施方式获取DICOM文件的系统的第二示范性结构图。FIG. 5 is a second exemplary structural diagram of a system for acquiring a DICOM file according to an embodiment of the present invention.
如图5所示,发送DICOM文件的系统60包括:As shown in Figure 5, the system 60 for sending DICOM files includes:
医学影像设备51,用于生成DICOM图像,并发送DICOM图像;The medical imaging device 51 is used for generating DICOM images and sending DICOM images;
数据交换设备52,与医学影像设备51连接,用于将DICOM图像发送到PACS53;The data exchange device 52 is connected with the medical imaging device 51, and is used for sending the DICOM image to the PACS53;
服务器54,用于从医学影像设备51获取DICOM文件,或从PACS53获取DICOM文件,还用于基于包含在DICOM文件中的像素数据生成图像文件,生成DICOM文件的压缩文件;The server 54 is used to obtain the DICOM file from the medical imaging device 51, or obtain the DICOM file from the PACS53, and is also used to generate an image file based on the pixel data contained in the DICOM file, and to generate a compressed file of the DICOM file;
可移动的客户端65,发送图像发送指令或文件发送指令;The movable client 65 sends an image sending instruction or a file sending instruction;
其中,服务器54,还适配于当接收到图像发送指令时,向可移动的客户端65发送图像文件;当接收到文件发送指令时,向可移动的客户端65发送DICOM文件或所述压缩文件。Wherein, the server 54 is also adapted to send the image file to the movable client 65 when receiving the image sending instruction; when receiving the file sending instruction, send the DICOM file or the compressed file to the movable client 65 document.
比如,可移动的客户端65可以实施为智能手机、平板电脑或个人数字助理,等等。服务器64可以部署在PACS中或与PACS分立布置。服务器54可以包含如图3所示的发送DICOM文件的装置300。For example, the mobile client 65 may be implemented as a smartphone, tablet, or personal digital assistant, among others. Server 64 may be deployed in the PACS or separate from the PACS. Server 54 may include means 300 for sending DICOM files as shown in FIG. 3 .
其中,当可移动的客户端65期望只浏览图像时,则基于用户操作向服务器54发送图像发送指令;当可移动的客户端65期望浏览完整的DICOM文件时,则基于用户操作向服务器54发送文件发送指令。当可移动的客户端55从服务器54接收到压缩文件时,针对该压缩文件执行解压缩处理,从而获取DICOM文件。Wherein, when the movable client 65 expects to browse only images, it sends an image sending instruction to the server 54 based on the user operation; when the movable client 65 expects to browse the complete DICOM file, it sends an instruction to the server 54 based on the user operation. File sending instructions. When the removable client 55 receives the compressed file from the server 54, it performs decompression processing on the compressed file, thereby acquiring the DICOM file.
图6为根据本发明实施方式具有处理器-存储器架构的、发送DICOM文件的装置的模块图。6 is a block diagram of an apparatus for transmitting a DICOM file with a processor-memory architecture according to an embodiment of the present invention.
如图6所示,装置600包括处理器601和存储器602;As shown in FIG. 6 , the apparatus 600 includes a processor 601 and a memory 602;
存储器602中存储有可被处理器601执行的应用程序,用于使得处理器601执行如图1所示的DICOM文件的发送方法100。An application program executable by the processor 601 is stored in the memory 602 to cause the processor 601 to execute the method 100 for sending a DICOM file as shown in FIG. 1 .
其中,存储器602具体可以实施为电可擦可编程只读存储器(EEPROM)、快闪存储器(Flash memory)、可编程程序只读存储器(PROM)等多种存储介质。处理器601可以实施为包括一或多个中央处理器或一或多个现场可编程门阵列,其中现场可编程门阵列集成一或多个中央处理器核。具体地,中央处理器或中央处理器核可以实施为CPU或MCU。Wherein, the memory 602 can be specifically implemented as various storage media such as Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash Memory (Flash memory), Programmable Program Read-Only Memory (PROM). The processor 601 may be implemented to include one or more central processing units or one or more field programmable gate arrays, wherein the field programmable gate arrays integrate one or more central processing unit cores. Specifically, a central processing unit or central processing unit core may be implemented as a CPU or an MCU.
需要说明的是,上述各流程和各结构图中不是所有的步骤和模块都是必须的,可以根据实际的需要忽略某些步骤或模块。各步骤的执行顺序不是固定的,可以根据需要进行调整。各模块的划分仅仅是为了便于描述采用的功能上的划分,实际实现时,一个模块可以分由多个模块实现,多个模块的功能也可以由同一个模块实现,这些模块可以位于同一个设备中,也可以位于不同的设备中。It should be noted that not all steps and modules in the above-mentioned processes and structural diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of each step is not fixed and can be adjusted as required. The division of each module is only for the convenience of describing the functional division used. In actual implementation, a module can be implemented by multiple modules, and the functions of multiple modules can also be implemented by the same module. These modules can be located in the same device. , or in a different device.
各实施方式中的硬件模块可以以机械方式或电子方式实现。例如,一个硬件模块可以包括专门设计的永久性电路或逻辑器件(如专用处理器,如FPGA或ASIC)用于完成特定的操作。硬件模块也可以包括由软件临时配置的可编程逻辑器件或电路(如包括通用处理器或其它可编程处理器)用于执行特定操作。至于具体采用机械方式,或是采用专用的永久性电路,或是采用临时配置的电路(如由软件进行配置)来实现硬件模块,可以根据成本和时间上的考虑来决定。The hardware modules in various embodiments may be implemented mechanically or electronically. For example, a hardware module may include specially designed permanent circuits or logic devices (eg, special purpose processors, such as FPGAs or ASICs) for performing specific operations. Hardware modules may also include programmable logic devices or circuits (eg, including general-purpose processors or other programmable processors) temporarily configured by software for performing particular operations. As for the specific use of a mechanical method, or a dedicated permanent circuit, or a temporarily configured circuit (for example, configured by software) to realize the hardware module, it can be decided according to cost and time considerations.
本发明还提供了一种机器可读的存储介质,存储用于使一机器执行如本文所述方法的指令。具体地,可以提供配有存储介质的系统或者装置,在该存储介质上存储着实现上述实施例中任一实施方式的功能的软件程序代码,且使该系统或者装置的计算机(或CPU或MPU)读出并执行存储在存储介质中的程序代码。此外,还可以通过基于程序代码的指令使计算机上操作的操作系统等来完成部分或者全部的实际操作。还可以将从存储介质读出的程序代码写到插入计算机内的扩展板中所设置的存储器中或者写到与计算机 相连接的扩展单元中设置的存储器中,随后基于程序代码的指令使安装在扩展板或者扩展单元上的CPU等来执行部分和全部实际操作,从而实现上述实施方式中任一实施方式的功能。The present invention also provides a machine-readable storage medium storing instructions for causing a machine to perform a method as described herein. Specifically, it is possible to provide a system or device equipped with a storage medium on which software program codes for realizing the functions of any one of the above-described embodiments are stored, and make the computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium. In addition, a part or all of the actual operation can also be completed by an operating system or the like operating on the computer based on the instructions of the program code. The program code read from the storage medium can also be written into the memory provided in the expansion board inserted into the computer or into the memory provided in the expansion unit connected to the computer, and then the instructions based on the program code make the device installed in the computer. The CPU on the expansion board or the expansion unit or the like performs part and all of the actual operations, so as to realize the functions of any one of the above-mentioned embodiments.
用于提供程序代码的存储介质实施方式包括软盘、硬盘、磁光盘、光盘(如CD-ROM、CD-R、CD-RW、DVD-ROM、DVD-RAM、DVD-RW、DVD+RW)、磁带、非易失性存储卡和ROM。可选择地,可以由通信网络从服务器计算机或云上下载程序代码。Embodiments of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (eg, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), Magnetic tapes, non-volatile memory cards and ROMs. Alternatively, the program code may be downloaded from a server computer or cloud over a communications network.
以上所述,仅为本发明的较佳实施方式而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (13)

  1. 一种处理DICOM文件的方法(100),其特征在于,包括:A method (100) for processing DICOM files, comprising:
    基于包含在DICOM文件中的像素数据生成图像文件(101);Generate an image file (101) based on the pixel data contained in the DICOM file;
    生成所述DICOM文件的压缩文件(102);generating a compressed file of the DICOM file (102);
    当接收到图像发送指令时,发送所述图像文件;当接收到文件发送指令时,发送所述DICOM文件或所述压缩文件(103)。When an image sending instruction is received, the image file is sent; when a file sending instruction is received, the DICOM file or the compressed file is sent (103).
  2. 根据权利要求1所述的处理DICOM文件的方法(100),其特征在于,所述基于包含在DICOM文件中的像素数据生成图像文件(100)包括:The method (100) for processing a DICOM file according to claim 1, wherein the generating an image file (100) based on pixel data contained in the DICOM file comprises:
    基于预定的窗宽窗位参数,降低包含在DICOM文件中的像素数据的采样率;Based on a predetermined window width and window level parameter, reducing the sampling rate of pixel data contained in the DICOM file;
    基于降低采样率后的像素数据,生成所述图像文件,其中所述图像文件的格式包括下列中的至少一个:The image file is generated based on the downsampled pixel data, wherein the format of the image file includes at least one of the following:
    位图文件格式;图像交换格式;标签图像文件格式;联合照片专家组格式;互换文件格式;可交换图像文件格式;可移植网络图像格式。Bitmap File Format; Image Interchange Format; Tagged Image File Format; Joint Photographic Experts Group Format; Interchange File Format; Interchangeable Image File Format; Portable Network Image Format.
  3. 根据权利要求1所述的处理DICOM文件的方法(100),其特征在于,The method (100) for processing a DICOM file according to claim 1, wherein,
    所述发送DICOM文件或所述压缩文件包括:The sending of the DICOM file or the compressed file includes:
    当所述DICOM文件的大小超过预定的门限值时,发送所述压缩文件;When the size of the DICOM file exceeds a predetermined threshold, sending the compressed file;
    当所述DICOM文件的大小不超过所述门限值时,发送所述DICOM文件。When the size of the DICOM file does not exceed the threshold value, the DICOM file is sent.
  4. 根据权利要求1所述的处理DICOM文件的方法(100),其特征在于,还包括:The method (100) for processing a DICOM file according to claim 1, further comprising:
    发送所述图像文件的分页信息;Send the paging information of the image file;
    当接收到包含当前页面编号的预加载指令时,发送与所述当前页面编号相关的页面编号中的图像文件。When a preload instruction including the current page number is received, the image file in the page number related to the current page number is sent.
  5. 一种处理DICOM文件的装置(300),其特征在于,包括:A device (300) for processing DICOM files, comprising:
    图像文件生成模块(301),其适配于基于包含在DICOM文件中的像素数据生成图像文件;an image file generation module (301) adapted to generate an image file based on pixel data contained in the DICOM file;
    压缩文件生成模块(302),其适配于生成所述DICOM文件的压缩文件;A compressed file generation module (302) adapted to generate a compressed file of the DICOM file;
    发送模块(303),其适配于当接收到图像发送指令时,发送所述图像文件;当接收到文件发送指令时,发送所述DICOM文件或所述压缩文件。A sending module (303), which is adapted to send the image file when an image sending instruction is received; send the DICOM file or the compressed file when receiving a file sending instruction.
  6. 根据权利要求5所述的处理DICOM文件的装置(300),其特征在于,The device (300) for processing DICOM files according to claim 5, characterized in that,
    图像文件生成模块(301),其适配于基于预定的窗宽窗位参数,降低包含在所述DICOM文件中的像素数据的采样率;基于降低采样率后的像素数据,生成所述图像文件,其中所述图像文件的格式包括下列中的至少一个:An image file generation module (301), adapted to reduce the sampling rate of pixel data contained in the DICOM file based on a predetermined window width and window level parameter; generate the image file based on the pixel data after the reduced sampling rate , wherein the format of the image file includes at least one of the following:
    位图文件格式;图像交换格式;标签图像文件格式;联合照片专家组格式;互换文件格式;可交换图像文件格式;可移植网络图像格式。Bitmap File Format; Image Interchange Format; Tagged Image File Format; Joint Photographic Experts Group Format; Interchange File Format; Interchangeable Image File Format; Portable Network Image Format.
  7. 根据权利要求5所述的处理DICOM文件的装置(300),其特征在于,The device (300) for processing DICOM files according to claim 5, characterized in that,
    发送模块(303),其适配于当所述DICOM文件的大小超过预定的门限值时,发送所述压缩文件;当 所述DICOM文件的大小不超过所述门限值时,发送所述DICOM文件。A sending module (303), which is adapted to send the compressed file when the size of the DICOM file exceeds a predetermined threshold value; when the size of the DICOM file does not exceed the threshold value, send the compressed file DICOM file.
  8. 根据权利要求5所述的处理DICOM文件的装置(300),其特征在于,The device (300) for processing DICOM files according to claim 5, characterized in that,
    发送模块(303),其适配于发送所述图像文件的分页信息;当接收到包含当前页面编号的预加载指令时,发送与所述当前页面编号相关的页面编号中的图像文件。A sending module (303), which is adapted to send the paging information of the image file; when a preloading instruction including the current page number is received, send the image file in the page number related to the current page number.
  9. 一种处理DICOM文件的系统(50),其特征在于,包括:A system (50) for processing DICOM files, comprising:
    服务器(54),其适配于基于包含在DICOM文件中的像素数据生成图像文件,生成所述DICOM文件的压缩文件;A server (54) adapted to generate an image file based on pixel data contained in a DICOM file, generating a compressed file of the DICOM file;
    客户端(55,65),其适配于发送图像发送指令或文件发送指令;a client (55, 65) adapted to send an image sending instruction or a file sending instruction;
    其中所述服务器(54),其还适配于当接收到所述图像发送指令时,向客户端(55,65)发送所述图像文件;当接收到所述文件发送指令时,向客户端(55,65)发送所述DICOM文件或所述压缩文件。Wherein the server (54) is further adapted to send the image file to the client (55, 65) when receiving the image sending instruction; when receiving the file sending instruction, send the image file to the client (55, 65) Send the DICOM file or the compressed file.
  10. 根据权利要求9所述的处理DICOM文件的系统(50),其特征在于,The system (50) for processing DICOM files according to claim 9, characterized in that,
    所述服务器(54),其适配于向客户端(55,65)发送所述图像文件的分页信息;the server (54), which is adapted to send the paging information of the image file to the client (55, 65);
    所述客户端(55,65),其适配于基于所述分页信息生成展示页面,基于用户在展示页面上的预定操作发送包含当前页面编号的预加载指令;the client (55, 65), which is adapted to generate a display page based on the paging information, and sends a preload instruction including the current page number based on a predetermined operation of the user on the display page;
    其中所述服务器(54),其还适配于当接收到所述预加载指令时,向客户端(55,65)发送与所述当前页面编号相关的页面编号中的图像文件。Wherein the server (54) is further adapted to send the image file in the page number related to the current page number to the client (55, 65) when receiving the preloading instruction.
  11. 根据权利要求9所述的处理DICOM文件的系统(50),其特征在于,The system (50) for processing DICOM files according to claim 9, characterized in that,
    所述服务器(54),其适配于从医学影像设备(51)获取所述DICOM文件,或从影像归档和通信系统(53)获取所述DICOM文件,其中所述影像归档和通信系统(53)经由数据交换设备(52)从医学影像设备(51)获取所述DICOM文件。said server (54) adapted to obtain said DICOM file from a medical imaging device (51) or from an image archiving and communication system (53), wherein said image archiving and communication system (53) ) obtains the DICOM file from a medical imaging device (51) via a data exchange device (52).
  12. 一种服务器(600),其特征在于,包括处理器(601)、存储器(602)及存储在所述存储器(602)上并可在所述处理器(601)上运行的计算机程序,所述计算机程序被所述处理器(601)执行时实现如权利要求1至4中任一项所述的处理DICOM文件的方法(100)。A server (600), characterized by comprising a processor (601), a memory (602), and a computer program stored on the memory (602) and executable on the processor (601), the The computer program, when executed by the processor (601), implements the method (100) of processing a DICOM file according to any one of claims 1 to 4.
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述的处理DICOM文件的方法(100)。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processing of the DICOM file according to any one of claims 1 to 4 is realized. method (100).
PCT/CN2021/100438 2020-07-24 2021-06-16 Dicom file processing method, device and system WO2022017085A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010723213.2 2020-07-24
CN202010723213.2A CN111813755A (en) 2020-07-24 2020-07-24 Method, device and system for processing DICOM file

Publications (1)

Publication Number Publication Date
WO2022017085A1 true WO2022017085A1 (en) 2022-01-27

Family

ID=72861234

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/100438 WO2022017085A1 (en) 2020-07-24 2021-06-16 Dicom file processing method, device and system

Country Status (2)

Country Link
CN (1) CN111813755A (en)
WO (1) WO2022017085A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115662581A (en) * 2022-12-28 2023-01-31 神州医疗科技股份有限公司 Medical image interaction system, application and method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813755A (en) * 2020-07-24 2020-10-23 西门子(中国)有限公司 Method, device and system for processing DICOM file
JPWO2023013240A1 (en) * 2021-08-04 2023-02-09
CN116627919A (en) * 2023-06-14 2023-08-22 富士胶片(中国)投资有限公司 Medical image display method and system, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414904A (en) * 2013-09-05 2013-11-27 苏州皓琪信息科技有限公司 Data compression storage method for medical high-capacity digital imaging and communications in medicine (DICOM) dynamic images
US20140010421A1 (en) * 2012-07-04 2014-01-09 Charlotte Colaco System and method for viewing medical images
CN108574807A (en) * 2018-04-28 2018-09-25 上海商汤智能科技有限公司 A kind of image treatment method and relevant device
CN109545333A (en) * 2018-11-15 2019-03-29 青岛海信医疗设备股份有限公司 The method and device that Dicom image shows, handles
CN111813755A (en) * 2020-07-24 2020-10-23 西门子(中国)有限公司 Method, device and system for processing DICOM file

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7996495B2 (en) * 2006-04-06 2011-08-09 General Electric Company Adaptive selection of image streaming mode
US20090103789A1 (en) * 2007-10-23 2009-04-23 Proscan Imaging, Llc Delivering and receiving medical images
CN102075742B (en) * 2009-10-30 2013-07-03 西门子公司 Method and system for transmitting medical image
CN110504020B (en) * 2019-08-23 2022-06-07 苏州浪潮智能科技有限公司 Medical image information system and method for displaying dicom image file by browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140010421A1 (en) * 2012-07-04 2014-01-09 Charlotte Colaco System and method for viewing medical images
CN103414904A (en) * 2013-09-05 2013-11-27 苏州皓琪信息科技有限公司 Data compression storage method for medical high-capacity digital imaging and communications in medicine (DICOM) dynamic images
CN108574807A (en) * 2018-04-28 2018-09-25 上海商汤智能科技有限公司 A kind of image treatment method and relevant device
CN109545333A (en) * 2018-11-15 2019-03-29 青岛海信医疗设备股份有限公司 The method and device that Dicom image shows, handles
CN111813755A (en) * 2020-07-24 2020-10-23 西门子(中国)有限公司 Method, device and system for processing DICOM file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115662581A (en) * 2022-12-28 2023-01-31 神州医疗科技股份有限公司 Medical image interaction system, application and method

Also Published As

Publication number Publication date
CN111813755A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
WO2022017085A1 (en) Dicom file processing method, device and system
WO2021000856A1 (en) Bone age detection method and system, device, and readable storage medium
US20120250956A1 (en) Method, apparatus and computer program product for normalizing and processing medical images
RU2640296C1 (en) Method and device for determining document suitability for optical character recognition (ocr) on server
CN105787280A (en) Patient data processing method of medical cloud gateway, cloud gateway and medical cloud system
US20130272587A1 (en) System and method for interactive segmentation on mobile devices in a cloud computing environment
WO2022017084A1 (en) Method, apparatus and system for acquiring dicom file
CN101366660A (en) Image diagnosis support system, medical image management apparatus, image diagnosis support processing apparatus and image diagnosis support method
WO2022048204A1 (en) Image generation method and apparatus, electronic device, and computer readable storage medium
Rahmat et al. Analysis of dicom image compression alternative using huffman coding
WO2021189914A1 (en) Electronic device, medical image index generation method and apparatus, and storage medium
JP2006301965A (en) Information processor, image processor, image processing system and method, and storage medium
JP2013111092A (en) Remote image system and server
Liu et al. Medical image conversion with DICOM
CN107742055A (en) A kind of mobile client of medical image diagosis
CN113538253B (en) Medical image processing method, medium and CT device
EP4125094A1 (en) Pseudonymized storage and retrieval of medical data and information
US11080846B2 (en) Hybrid cloud-based measurement automation in medical imagery
CN107145745A (en) Electronic health record information collecting method
CN115700789A (en) Pneumonia preliminary examination triage system based on multi-modal medical data
Rusev A module for visualisation and analysis of digital images in DICOM file format.
JP2008293189A (en) Medical image management device and program
WO2005050519A1 (en) Large scale tomography image storage and transmission and system.
Loh et al. Mobile Imagery eXchange (MIX) toolkit: data sharing for the unconnected
US20180293759A1 (en) Adaptive image display characteristics

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21845800

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21845800

Country of ref document: EP

Kind code of ref document: A1