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://github.com/fepegar/torchio. 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 库,以高效地装载、预处理、增强和基于补差的医学图像取样,供深层学习。托尔奇O 遵循PyTochrch的风格,整合标准的医疗图像处理库,以便在神经网络培训期间高效地处理图像。托尔希奥的变换可以组成、复制、追踪和扩展。我们提供多种通用的预处理和扩增操作操作以及模拟MRIG- 的工艺品。来源代码、全面的图解和托尔希奥的广文档可以在 https://github. deal/fepar/Drevar 上找到供深层图象标取样的样本样本取样样本取样, 。 软件可以安装到服务器到服务器到服务器到服务器的版本。