首页 > 其他分享 >dicom to nifti

dicom to nifti

时间:2023-05-03 13:33:37浏览次数:44  
标签:files nibabel nifti dicom mri import

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

标签:files,nibabel,nifti,dicom,mri,import
From: https://www.cnblogs.com/xiaoxu-xli/p/17368975.html

相关文章