Hello I need urgent help . I have a dataset of caner patients, every patient with an ID has a folder with 28 dcm MRI images . I am using slicer to convert it to NRRD format but I want to ask is there any way I can convert the dcm files of each patients to images and labels , so that i can use it in pyradiomics library to extract shape features ?
Thank you . Any help is appreciated
Do you have segmentations (labels) in your DICOM files or you need to segment the images?
I need to segment the images , but how do I segment the images in a way that I have both image and its label.
I need it so that I can run pyradiomics library code available on github .
I need the data in this way (given in the provided folder link , cancer1_image.nrrd and caner1_label.nrrd ) I have converted to NRRD using Slicer what do i do next .
Thank you
To answer your question, if you only have the original MR scans for most cases you will need to perform the segmentation of the structures of interest by hand using the Segment Editor, then you can export the MR and segmentation to nrrd files that work with pyradiomics. Have a read through the tutorials and documentation and let us know if anything is unclear.
Just as a word of caution, extracting image-based radiomics from MRI can give results that are difficult to interpret because most kinds of MR acquisitions are not in standardized units. Even for scans that are expected to have quantitative meaning the results can be mixed.
See this paper for more information:
https://www.nature.com/articles/s41598-019-45766-z
All are MRI scans, if you can tell me what basically is the label.nrrd mentioned in the github directory …is the label name of image or is it something else ?
Suppose if I have an MRI scan saved with patient ID’s … Would the patient ID be considered a label and MRI scan would be the image of course,
A label in this case means a labelmap volume like what is described here.
thank you so much , the issue was resolved … one last question . can you please tell me about the data used in github repository …is the image already segmented ?
actually I have dcm files(MRI scans) belonging to one patient what should i do next ? i want to convert them in same format as given in directory .
I am thinking to first convert them to NRRD and then convert NRRD image to segment and label map? Is that right , if not please tell me what should i do then to obtain both label map and image from single NRRD file.
The labels in radiomics refer to spatial regions over which the features should be calculated. For example, brain_image.nrrd has the MRI of the head and brain_label is the segmentation of the tumor region like in the picture below (the sample data from the pyradiomics repository). The radiomics features can include things like size of the label, whether it’s generally spherical vs. flat, etc. It can also include signal features, like bright vs dark, smooth vs speckled, etc, but as I mentioned this can not be valuable for MRI.
So if you have a new set of MRI, you need to segment it as appropriate for your use case and then calculate the features. If you aren’t familiar with nrrd files, you might find the SlicerRadiomics extension a good way to get going. You can get it from the extension manager.
Got It! Thanks alot.
i have tried segmenting the t2 weighted images using thresholding but I don’t know where the tumor is present…Do i need to consult a radiologist because i need to find region of interest
?Or will the pyradiomics library automatically calculate the ROI from segmented parts.
To my knowledge there are currently no good fully automated tumor segmentation tools that work on generic data. You may be able to find some research tools that give good results for some challenge datasets and you can try to see if they work on your data. Reading up on the BraTS challenge should give you an idea what to expect.
Yes. This is key to the clinical success of most medical image computing project. You need to have a good working relationship with clinicians and meet them regularly, not just because of getting help on tasks like identifying tumors, but so that you can identify problems that are clinically relevant and technically feasible to solve.