dicom to nifti

from pathlib import Path # pathlib for easy path handling
import pydicom # pydicom to handle dicom files
import matplotlib.pyplot as plt
import numpy as np
import dicom2nifti # to convert DICOM files to the NIftI format
import nibabel as nib # nibabel to handle nifti files
head_mri_dicom = Path("/kaggle/input/zenodo-mri-dicom-data-set/SE000001")
dicom2nifti.convert_directory(head_mri_dicom, ".")

参考:
[1] https://www.kaggle.com/code/rinichristy/dicom-to-nifti-conversion-using-nibabel

posted @ 2023-05-03 13:23  xiaoxuxli  阅读(35)  评论(0编辑  收藏  举报