Looking for the conversion scripts

Looking for the conversion scripts  

  By: junma on April 20, 2022, 9:41 p.m.

Thanks for organizing the great challenge. When the following scripts will be availalbe?

"If you want to work on NiFTI or other file formats internally, we also provide some conversion scripts: https://github.com/lab-midas/autoPET"

Looking for the registration script between PET and CT:)

Re: Looking for the conversion scripts  

  By: thomas.kuestner on April 21, 2022, 9:32 a.m.

Thanks for your participation. We will have the repository ready hopefully by tomorrow. We will announce it on the main website then.

For the resampling of the CT onto the PET, I post you here the conversion script: def resample_ct(nii_out_path): # resample CT to PET and mask resolution ct = nib.load(nii_out_path/'CT.nii.gz') pet = nib.load(nii_out_path/'PET.nii.gz') CTres = nilearn.image.resample_to_img(ct, pet, fill_value=-1024) nib.save(CTres, nii_out_path/'CTres.nii.gz')

<< sorry for the messy print, but the forum doesn't display it better

 Last edited by: thomas.kuestner on Aug. 15, 2023, 12:56 p.m., edited 2 times in total.

Re: Looking for the conversion scripts  

  By: junma on April 22, 2022, 1:49 p.m.

Thanks for your answer:)