diaryple.blogg.se

Edit dicomdir file
Edit dicomdir file











edit dicomdir file

This information can then be taken in order to sort the files correctly.įor SimpleITK in Python this can be done with the following code # noinspection PyPep8Naming import SimpleITK as sitk def safe_sitk_read(img_list, *args, ** kwargs): """ Since the default function just looks at images 0 and 1 to determine slice thickness and the images are often not correctly alphabetically sorted, much slower :param img_list: :return : """ pimg_list = s_img_list = )] # sort by z return sitk.ReadImage(s_img_list, *args, ** kwargs)

edit dicomdir file edit dicomdir file

The files (or just their headers) need to be read in individually first and the Slice Location or GetOrigin() extracted. It also causes brain slices to turn up between two lung slices and other strange artifacts. This causes the Slice Spacing (a tag that is missing in these data) to be computed incorrectly since it is the difference in position between file 0 and 1. The mapping between the slices and the files are not in alphabetical order and are instead in a random order. The problem occurs with a number of the datasets, but we particularly noticed it with A radiomics model from joint FDG-PET and MRI texture features for the prediction of lung metastases in soft-tissue sarcomas of the extremities (Soft-tissue-Sarcoma) in the dicoms in













Edit dicomdir file