DICOM 图像到 BMP 图像的转换 2008 年 09 月 16 日 星期二 11:04【摘要】 目的 探讨
DICOM 图像转换成 BMP 图像的方法,以便于对 DICOM 图像进行读取、处理、存贮。方
法 分析 DICOM 图像和 BMP 图像文件格式,读取 DICOM 图像数据并进行加窗显示、垂直
镜像变换,以 BMP 格式存储。结果 此方法实现了 DICOM 图像到 BMP 图像的转换。结论
多数的计算机没有读取 DICOM 图像的软件,转换为 BMP 图像后几乎所有的计算机均可读
取图像。
【关键词】 DICOM;BMP;加窗显示
Translating from DICOM image into BMP imageWANG Shi-gang , LI Yue-qing , WANG
Chang-yuan(Taishan Medical College, Taian 271000,China)
Abstract:Objective: To explore the method of translating the DICOM image into BMP
one in order to read, process and memorize the DICOM image. Methods:The structures
of DICOM image and BMP one were analyzed; the data of DICOM image were read with
the window displayed; plumb mirror were transformed and memorized in the format of
BMP image. Results: The DICOM image was translated into BMP one by this method.
Conclusion: The majority of computers are not provided with the software that can read
DICOM image, but almost any computers can read the translated image in the format of
BMP.
Key words:DICOM; BMP; window display
医学数字成像与通讯(digital imaging and communication in medicine,DICOM)标准
的应用促进了医学影像设备之间的互操作性,提供了一种用于医学信息的开放性的数据交
换标准,使得不同厂商生产的影像设备形成的图像统一存档与通讯成为可能,加快了图像
存档与通讯系统(picture archiving and communication systems,PACS)的发展;但是
大多数图像处理软件都不支持 DICOM 图像文件格式,所以要处理 DICOM 图像文件必然要
对其进行格式转换,而 BMP 格式图像是应用最广泛的一种图像文件格式,且 Windows 操
作系统带有 BMP 图像处理软件——画图。因此,将 DICOM 图像转换成 BMP 图像是非常
必要的。
1 材料与方法
1.1 材料
胜利油田中心医院 somatom sensation 16CT DICOM 图像、Windows2000 操作系统、
Microsoft Visual C++ 6.0 编程软件。
1.2 方法
1.2.1 DICOM 文 件 格 式 DICOM 图像 由 文 件 信 息 头 和至 少 一 个 图 像 数 据集 合组 成 。
DICOM 文件格式见图 1,其文件头是可选的,其中前同步码长 128Bytes,没有结构,不
能作为数据元编码,它的存在是为了提供一些通用计算机文件格式的兼容性,文件的说明