open-discussion
open-discussion > RE: nii to dicom conversion
Nov 29, 2016 07:11 AM | Tayyab Ateeq - UET Taxila
RE: nii to dicom conversion
Originally posted by Allen Waggoner:
Ok. I tried to do it in MATLAB but failed. I don't think that basic support to manipulate NIFTI files is provided in MATLAB thats why I shifted to other tools like xmedcon and ITK-Snap to do it manually. Maybe I am wrong, if you think it is possible in MATLAB then plz recommend me some links. Many Thanks
Originally posted by Tayyab Ateeq:
Okay, I guess I misunderstood, I thought your nifti data was a time-series of a single slice and you wanted to convert it to a single dicom. But if I understand what you wrote here correctly, it seems it is a 3D data set and you want to generate separate dicom files for each slice. Is that correct? Maybe Mango can do this, but I don't see an obvious way. There is a Mango discussion forum on the Mango website, you might ask for help there. But if I were going to do this, I would do it in Matlab. To create dicom files in Matlab, you need the image processing toolbox. Then you can just read in the nifti file and write the dicom files as you like.
Originally posted by Allen Waggoner:
This is the summary of NIFTI file and I have found out about image dimensions. It says Image Dimensions (1-8): 3, 512, 512, 150, 1, 1, 1, 1 which means I have 3 dimensions, 150 slices and each image is 512 x 512. I want to to extract all these 150 slices as separate dicom files. Thanks
Originally posted by Tayyab Ateeq:
Is this summary for the nifti file or the dicom file? The nifti file must have a line for image dimensions. The dicom header does not have an image dimensions tag. Whichever file the summary is from, it says there are 150 slices.
I opened file info. There is no label such as
Image dimension in header section. In summary there is
one.
Image Dimensions (X, Y, Z): 512 x 512 x 150
Regards
Image Dimensions (X, Y, Z): 512 x 512 x 150
Regards
Is this summary for the nifti file or the dicom file? The nifti file must have a line for image dimensions. The dicom header does not have an image dimensions tag. Whichever file the summary is from, it says there are 150 slices.
This is the summary of NIFTI file and I have found out about image dimensions. It says Image Dimensions (1-8): 3, 512, 512, 150, 1, 1, 1, 1 which means I have 3 dimensions, 150 slices and each image is 512 x 512. I want to to extract all these 150 slices as separate dicom files. Thanks
Okay, I guess I misunderstood, I thought your nifti data was a time-series of a single slice and you wanted to convert it to a single dicom. But if I understand what you wrote here correctly, it seems it is a 3D data set and you want to generate separate dicom files for each slice. Is that correct? Maybe Mango can do this, but I don't see an obvious way. There is a Mango discussion forum on the Mango website, you might ask for help there. But if I were going to do this, I would do it in Matlab. To create dicom files in Matlab, you need the image processing toolbox. Then you can just read in the nifti file and write the dicom files as you like.
Ok. I tried to do it in MATLAB but failed. I don't think that basic support to manipulate NIFTI files is provided in MATLAB thats why I shifted to other tools like xmedcon and ITK-Snap to do it manually. Maybe I am wrong, if you think it is possible in MATLAB then plz recommend me some links. Many Thanks
Threaded View
| Title | Author | Date |
|---|---|---|
| Tayyab Ateeq | Nov 25, 2016 | |
| Allen Waggoner | Nov 25, 2016 | |
| Tayyab Ateeq | Nov 25, 2016 | |
| Allen Waggoner | Nov 28, 2016 | |
| Tayyab Ateeq | Nov 28, 2016 | |
| Allen Waggoner | Nov 28, 2016 | |
| Tayyab Ateeq | Nov 28, 2016 | |
| Allen Waggoner | Nov 29, 2016 | |
| Tayyab Ateeq | Nov 29, 2016 | |
| Allen Waggoner | Nov 29, 2016 | |
| Tayyab Ateeq | Dec 6, 2016 | |
