Processing of medical images such as MRI or CT presents unique challenges compared to RGB images typically used in computer vision. These include a lack of labels for large datasets, high computational costs, and metadata to describe the physical properties of voxels. Data augmentation is used to artificially increase the size of the training datasets. Training with image patches decreases the need for computational power. Spatial metadata needs to be carefully taken into account in order to ensure a correct alignment of volumes. We present TorchIO, an open-source Python library to enable efficient loading, preprocessing, augmentation and patch-based sampling of medical images for deep learning. TorchIO follows the style of PyTorch and integrates standard medical image processing libraries to efficiently process images during training of neural networks. TorchIO transforms can be composed, reproduced, traced and extended. We provide multiple generic preprocessing and augmentation operations as well as simulation of MRI-specific artifacts. Source code, comprehensive tutorials and extensive documentation for TorchIO can be found at https://torchio.rtfd.io/. The package can be installed from the Python Package Index running 'pip install torchio'. It includes a command-line interface which allows users to apply transforms to image files without using Python. Additionally, we provide a graphical interface within a TorchIO extension in 3D Slicer to visualize the effects of transforms. TorchIO was developed to help researchers standardize medical image processing pipelines and allow them to focus on the deep learning experiments. It encourages open science, as it supports reproducibility and is version controlled so that the software can be cited precisely. Due to its modularity, the library is compatible with other frameworks for deep learning with medical images.
翻译:MRI 或CT 等医疗图像的处理与通常用于计算机视觉的 RGB 图像相比,提出了独特的挑战,其中包括缺少大数据集标签、高计算成本和描述 voxel 物理特性的元数据。数据增强用于人为地增加培训数据集的大小。图像补丁培训减少了计算能力的需求。需要谨慎考虑空间元数据,以确保对数量进行正确校正。我们提供了托尔奇IO,一个开放源代码 Python 库,以高效地装载、预处理、扩增和基于补基的医学图像取样,供深层学习。托尔奇组织遵循了PyTochrch的风格,并整合了标准的医疗图像处理库,以便在培训神经网络期间高效地处理图像。托尔奇组织可以组成、复制、追踪和扩展多个通用预处理前处理和增强操作,以及模拟MRIC-具体工艺品。源代码、全面的教程和托尔奇O的开源界面可以在 https://tochio.revd.io/trentIO 上找到高效的图像取样样本取样, 软件可以将Spreal reliflifliflip 安装到服务器到服务器。