0

i have some left atrium data that is h5 form and i was wondering if its possible to change into niftis so i can train my model

I have done this already with dicom to nifties using dicom2niftis package however i couldent find one for h5 to nifty package

from Heart_segmentation.Prepering_data import Processing
from glob import glob
#STEP2

import dicom2nifti
import os
# will be used to chnage dicom files into nifties

# dicom series  2 paramters

in_path_images = 'C:/Users/Omar/Task02_Heart/decomGroups/images/*'
# contains images and labels
in_path_labels= 'C:/Users/Omar/Task02_Heart/decomGroups/labels/*'

out_path_images='C:/Users/Omar/Task02_Heart/nifti_files/images'
out_path_labels='C:/Users/Omar/Task02_Heart/nifti_files/labels'



list_of_images= glob(in_path_images)
list_of_labels=glob(in_path_labels)

print(list_of_labels)

print(list_of_images)
  • Some searching could lead you [here](https://sourceforge.net/p/advants/discussion/840261/thread/ba6a10b0)? It's not in my wheelhouse I'm afraid but someone seems to have managed! – alle_meije Feb 24 '23 at 10:23

0 Answers0