Russell Pamela H, Ghosh Debashis
Biostatistics and Informatics, Colorado School of Public Health, Aurora, CO, 80045, USA.
F1000Res. 2018 Dec 24;7. doi: 10.12688/f1000research.17139.3. eCollection 2018.
The radiology community has adopted several widely used standards for medical image files, including the popular DICOM (Digital Imaging and Communication in Medicine) and NIfTI (Neuroimaging Informatics Technology Initiative) standards. These file formats include image intensities as well as potentially extensive metadata. The NIfTI standard specifies a particular set of header fields describing the image and minimal information about the scan. DICOM headers can include any of >4,000 available metadata attributes spanning a variety of topics. NIfTI files contain all slices for an image series, while DICOM files capture single slices and image series are typically organized into a directory. Each DICOM file contains metadata for the image series as well as the individual image slice. The programming environment R is popular for data analysis due to its free and open code, active ecosystem of tools and users, and excellent system of contributed packages. Currently, many published radiological image analyses are performed with proprietary software or custom unpublished scripts. However, R is increasing in popularity in this area due to several packages for processing and analysis of image files. While these R packages handle image import and processing, no existing package makes image metadata conveniently accessible. Extracting image metadata, combining across slices, and converting to useful formats can be prohibitively cumbersome, especially for DICOM files. We present radtools, an R package for convenient extraction of medical image metadata. Radtools provides simple functions to explore and return metadata in familiar R data structures. For convenience, radtools also includes wrappers of existing tools for extraction of pixel data and viewing of image slices. The package is freely available under the MIT license at GitHub and is easily installable from the Comprehensive R Archive Network.
放射学界采用了几种广泛使用的医学图像文件标准,包括广受欢迎的DICOM(医学数字成像和通信)和NIfTI(神经成像信息学技术倡议)标准。这些文件格式包括图像强度以及可能大量的元数据。NIfTI标准指定了一组特定的头部字段来描述图像和关于扫描的最少信息。DICOM头部可以包含超过4000个可用的元数据属性,涵盖各种主题。NIfTI文件包含图像系列的所有切片,而DICOM文件捕获单个切片,图像系列通常组织成一个目录。每个DICOM文件都包含图像系列以及单个图像切片的元数据。编程环境R因其免费和开放的代码、活跃的工具和用户生态系统以及出色的贡献包系统而在数据分析中很受欢迎。目前,许多已发表的放射图像分析是使用专有软件或未公开的自定义脚本进行的。然而,由于有几个用于处理和分析图像文件的包,R在这个领域越来越受欢迎。虽然这些R包可以处理图像导入和处理,但现有的包都不能方便地访问图像元数据。提取图像元数据、跨切片合并并转换为有用的格式可能极其繁琐,尤其是对于DICOM文件。我们展示了radtools,一个用于方便提取医学图像元数据的R包。Radtools提供了简单的函数,以熟悉的R数据结构来探索和返回元数据。为了方便起见,radtools还包括用于提取像素数据和查看图像切片的现有工具的包装器。该包在GitHub上根据MIT许可免费提供,并且可以很容易地从综合R存档网络安装。