Closed mikaelhaji closed 5 months ago
Unable to determine slice thickness: please check voxel size
error if both Spacing Between Slices (0018,008) and Slice Thickness (0018,0050) are not populated. These are required DICOM tags, so you should check the provenance of your images to see if they got removed by an over-zealous anonymization stage. Computing the slice thickness is tricky. Since NIfTI only stores the distance between voxel centers (slice thickness + slice gap), the NIfTI file may be able to resolve the distance by comparing the Image Position Patient (0020,0032) between two neighboring slices. I would use dcmdump and fslhd to check your input DICOMs and output NIfTI images carefully. Thank you so much for the prompt response!
Data that came with the CT Scan
Side Question: Would love to hear your thoughts on the file formatting, specifically interested in why several NII files get created during conversion!
Thank you so much for all your help once again.
Updates [still inquiring about the messages above!] ->
2 (more info). The issue seems to arise as there is about 512 slices (with 5 [not sure the units] spacing) for two axes and then 37 (with 0.5 [not sure the units] spacing) for the other slice causing the squish. I updated the Matlab code to effectively make up for this in the actual grid spacing, as well as in the aspect ratio of the grid, but it seems to be blowing up. Not sure if there's a better way to go about doing this (ie normalizing the skull to become isotropic?) as this is what my CT scan looks like right now:
im also not quite sure if this large difference in number of slices is normal
Side Question: Would love to hear your thoughts on the file formatting, specifically interested in why several NII files get created during conversion! I realize these are simply just different views/sessions - with "2" being the standard slice of interest I believe.
Really appreciate the help in advance!
series
: the first series is used to position the subsequent scans, with subsequent scans using different positioning, parameters and contrast agents to optimize different types of signal. For most series, dcm2niix and MRIcroGL will save each DICOM series as a separate 3D or 4D file. Therefore, a DICOM session with multiple series will yield multiple NIfTI files.
The Bug
I am working on a project that involves converting personal CT data to .nii. However, I came across a couple of challenges that I was hoping to get help on!
Situation Overview
Expected behavior
Despite these warnings, the tool successfully converts the DICOM files, producing NIfTI files with varying dimensions, however, the files are all of different sizes and seem to have gone down in resolution and squishified into itself when visualizing in Matlab (screenshot provided).
Output log
Matlab Visualization
I tried visualizing the other NII files and it seems to show other parts of the CT scan:
CT Files