The size of the segmentation image (DICOM-SEG) does not match the size of the main image (DICOM)

hello everyone!

As shown in the figure, I downloaded the LIDC-IDRC dataset (LIDC-IDRI - The Cancer Imaging Archive (TCIA) Public Access - Cancer Imaging Archive Wiki) and the corresponding annotation data (https://wiki.cancerimagingarchive) from TICA .net/display/DOI/Standardized+representation+of+the+TCIA+LIDC-IDRI+annotations+using+DICOM), and then use the plug-in to convert DICOM-SEG format files to nrrd format files.
They can be opened and feature extraction well in 3D-Slicer, but I want to use the python library radiomics programming for feature extraction, and the dimensionality does not match when reading the data. Similarly, when reading ITK-snap The same problem also appeared at the time, is there any way to solve it?

Operating system: win 10
Slicer version: Slicer 4.11

Hi Everyone,

As shown in the figure, I downloaded the LIDC-IDRC dataset and standardized representation of the TCIA LIDC-IDRI annotations using from TICA , and then use the dcmqi to convert DICOM-SEG format files to nrrd format files.
They can be opened and feature extraction well in 3D-Slicer, but I want to use the python library radiomics with programming to do feature extraction, and the dimension does not match when reading the data. Similarly, when reading those data with ITK-snap the same problem also appeared at the time, is there any way to solve it? Or, is there any way to change the dimension of the 5125128 annotation file to be the same as the 512512133 of the source image?
image
image


Thank you all !!!

It seems that in the TCIA data set segmentation is only specified for those 8 frames. This is completely normal and should not cause any problem, as both the segmentation and the reference image are correctly specified in physical space.

If ITK-Snap cannot deal with this then you can resample the segmentation by choosing a reference image when you export the segmentation. Alternatively, you can segment the image in Slicer, which you need to use anyway, and that can handle any segmentation and master volume dimensions and have much more segmentation tools than ITK-Snap (see this page to get started).

1 Like

Thank you very much for your answer! It is indeed a good way to choose a reference image when exporting. In addition, because I have too many data, I need to use a python script to achieve it. Specifically, I achieved it by resampling the mask from (5125128) to (512512133) through the nibabel library of python.

All Slicer features are available in Python, so you can do the entire import, conversion, export with reference volume in a single script. See examples in the script repository and you can ask here for details/advice.