Guidance Needed: Combining Multiple NIfTI Files for inference in Brats_MRI_Segmentation Model #6796
-
Hi, First of all, thank you for this wonderful project! I'm a neuroradiologist and I'm trying to learn more about using this project for my research needs. I want to use the Brats MRI segmentation model to perform inference/segmentation on my own set of data, which consists of skull-stripped and coregistered T1, T2, FLAIR, and T1ce images (just like the Brats training and validation data). My question is this: in 3D-Slicer, there's only one input for "Source volume", yet I have four NIfTI files. If I place these four files in the dataset folders, they are treated as different samples. What is the best approach for this? Should I combine these four NIfTI files, and if so, how do I do that? Additionally, are there any other pre-processing steps required for external data to be used in the model inference? I don't know much about coding, but I'm willing to learn. However, please bear with me, and try to explain in a step-by-step manner or refer me to easy-to-understand references. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @hoedha12, Thanks for opening this discussion. Are you using MONAI Label for this? In any case, I won't suggest merging all modalities into a single file. We have discussed this before with other users:
Instead, I'd suggest placing one of the modalities in a folder (i.e. FLAIR), and the other three in a different one. Something like this:
Then you can start the MONAI Label server pointing to the one-modality folder and modify the LoadImage transform to load the other 3 when you want to train or do inference. Hope this makes sense. Let me know. Happy to help further. |
Beta Was this translation helpful? Give feedback.
-
Hello, I have 250 MR brain images of diffuse gliomas with T1, T1c, FLAIR, T2 and DWI sequences. I need to obtain the mask image corresponding to the tumor, for each of them. The images are in DICOM format, and I have converted them to nifty. From your comments I understand that I can apply inference with the brats mri segmentation model for obtaining the segmented images of my images. If so, I would like to understand what you have indicated needs to be done to accomplish this. That is, the structure of directories with the images, what is the transformation you mention, where to place the LoadOtherModalitiesd class, etc., and everything I need to apply inference of brats mri segmentation model on my images. Please, could you help me to move forward and achieve my goal? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Hi @hoedha12,
Thanks for opening this discussion.
Are you using MONAI Label for this? In any case, I won't suggest merging all modalities into a single file. We have discussed this before with other users:
Instead, I'd suggest placing one of the modalities in a folder (i.e. FLAIR), and the other three in a different one. Something like this: