ENHANCE-PET / nifti2dicom

Welcome to Nifti2Dicom! Born from countless hours of yelling at screens, this software aims to swap NIfTI for DICOM without inviting any more hair-pulling or infernal uprisings. Because, honestly, who needs another software-induced existential crisis? 🔁💻😫🔥
Apache License 2.0
15 stars 3 forks source link

Nifti to dicom with different size #25

Open Mersede1990 opened 5 months ago

Mersede1990 commented 5 months ago

My nifti images (4D) wich are the output of the trained network have different size size of their reference dicom format images. How could I use your library? I tried and I always receive the error of dimension mismatch.

Keyn34 commented 5 months ago

Hi @Mersede1990,

This is currently not supported in 4D and only an experimental feature in 3D.

Do you have a 4D Dicom series with the new size?

Mersede1990 commented 5 months ago

both my dicom and nifti are 4D but their size is different

LalithShiyam commented 5 months ago

Hi there @Mersede1990, when you say the sizes are different. Is it a x,y,z,t image? Meaning 3 spatial and 1 time? And which axis or dimension is it different? Spatial or time?

Mersede1990 commented 5 months ago

The spatial size was different. But now i resize and both my dicom and nifti have the same size. Then I again tried nifti2dicom based on the instruction in the website, it runs without error but no dicom is produced

LalithShiyam commented 5 months ago

Hi @Mersede1990 would it be possible for you to share the image, so that I can help better?

Mersede1990 commented 5 months ago

they are too big to upload it here. is there any other way that I can share them with you

LalithShiyam commented 5 months ago

Hi @Mersede1990 kindly send me your mail ID, I will send you a transfer link.

Mersede1990 commented 5 months ago

I run this command in my terminal : nifti2dicom -d original_folder/Test_same_size/102-Patient -n original_folder/Test_same_size/full_img_102_predict ed.nii.gz -o original_folder/Test_same_size/ -desc SeriesDescription -t img -v SMS but nothing happen.

sure here you are: m.mokri1990@gmail.com

LalithShiyam commented 5 months ago

Sent you a voucher. Will check out your images.

Mersede1990 commented 5 months ago

Thank you so much, they are coming

andiegong commented 2 days ago

I think I am encountering a similar issue. I am attempting NIFTI to DICOM conversion on 3D images. I've had no issue with converting images when my reference DICOM image (dicom_dir) and the NIFTI file to be converted (nifti_path) were images of the same size (same number of slices, etc).

However I am having trouble with converting images when my reference DICOM and my NIFTI file have different spacing / voxel size from my NIFTI file.

@Mersede1990 @LalithShiyam Have you found a solution? Thanks for your help!