icometrix / dicom2nifti

MIT License
339 stars 79 forks source link

Request: direct re-use of a result.object #142

Open Ede1994 opened 6 months ago

Ede1994 commented 6 months ago

I have a request regarding a functionality that I would like to have. I would like to do the following:

nii = dicom2nifti.convert_directory(dcm_path, '/tmp/test_phtmp')
print(nii.img_path)
print(nii.dcm_meta)

I would think it would be great if you could:

  1. the path + file name of the nifti file could be accessed directly in order to continue working with it
  2. if you could also later access the DICOM meta information, for example, which is lost through the conversion to nifti

Whereby 1. would be much more exciting for me.