ct-volume-preprocessing
ct-volume-preprocessing copied to clipboard
End-to-end Python CT volume preprocessing pipeline to convert raw DICOMs into clean 3D numpy arrays for ML. From paper Draelos et al. "Machine-Learning-Based Multiple Abnormality Prediction with Large...
import os import SimpleITK as sitk import numpy as np data = np.load("ct/trn00022.npz") ct_data = data["ct"] ct = sitk.GetImageFromArray(ct_data) ct = sitk.Cast(ct, sitk.sitkInt16) ct.SetSpacing((0.8, 0.8, 0.8)) orientation = [1, 0,...
Thank you so much for open-sourcing this dataset and for your valuable work on RadChest-CT. I was wondering if, in addition to the fully preprocessed dataset, there is a way...