# How to fetch dicom file as next sample in MONAI Label extension in 3D Slicer

**URL:** <https://discourse.slicer.org/t/how-to-fetch-dicom-file-as-next-sample-in-monai-label-extension-in-3d-slicer/30131>\
**Category:** Support\
**Tags:** segmentation, dicom, monailabel\
**Created:** [June 20, 2023, 2:38am UTC](https://discourse.slicer.org/t/how-to-fetch-dicom-file-as-next-sample-in-monai-label-extension-in-3d-slicer/30131 "2023-06-20T02:38:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arpan\_Gyawali](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/arpan_gyawali/32/65977_2.png) [@Arpan\_Gyawali](https://discourse.slicer.org/u/Arpan_Gyawali)\
**Post date:** [June 20, 2023, 2:38am UTC](https://discourse.slicer.org/t/how-to-fetch-dicom-file-as-next-sample-in-monai-label-extension-in-3d-slicer/30131/1 "2023-06-20T02:38:40Z")

</div>

Hello,  
I have a brain CTA dataset for the task of brain extraction. The dataset contains both nifty as well as dicom format data. I have fetched all the nifty file and trained them. But i am not able to fetch dicom files using next sample button. But it supports dicom files right?  
How can i fetch next dicom file so that i can train them without converting them into nifty as most of the data we receive are in dicom format.  
I still have dicom data in the dataset folder but it shows 100% in active learning section.  
 ![Screenshot 2023-06-20 080653](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/0/b018a1d24c1ddc1b6345bb2c7f707316266d551e.png)

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [June 20, 2023, 5:19am UTC](https://discourse.slicer.org/t/how-to-fetch-dicom-file-as-next-sample-in-monai-label-extension-in-3d-slicer/30131/2 "2023-06-20T05:19:30Z")

</div>

[This thread](https://github.com/Project-MONAI/MONAILabel/discussions/1008) may get you started.

---

<div class="post-metadata">

**Author:** ![diazandr3s](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/diazandr3s/32/9973_2.png) [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)\
**Post date:** [June 27, 2023, 12:16pm UTC](https://discourse.slicer.org/t/how-to-fetch-dicom-file-as-next-sample-in-monai-label-extension-in-3d-slicer/30131/3 "2023-06-27T12:16:13Z")

</div>

Hi @Arpan_Gyawali,

Good question.  
As suggested by @rbumm, you could consider the solution proposed here: [Using DICOM folders of data instead of nifti files for image volumes. · Project-MONAI/MONAILabel · Discussion #1008 · GitHub](https://github.com/Project-MONAI/MONAILabel/discussions/1008#discussioncomment-3685380)

Another way is by using a DICOMWeb such as Orthanc. For this and start the MONAI Label server pointing to that server instead of a local folder: [MONAILabel/plugins/ohif at main · Project-MONAI/MONAILabel · GitHub](https://github.com/Project-MONAI/MONAILabel/tree/main/plugins/ohif#installing-orthanc-dicomweb)

Otherwise, you could continue using the MONAI Label server pointing to a folder, manually load the DICOM image, and push them one by one to the server.

Hope this helps,

---

<div class="post-metadata">

**Author:** ![Arpan\_Gyawali](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/arpan_gyawali/32/65977_2.png) [@Arpan\_Gyawali](https://discourse.slicer.org/u/Arpan_Gyawali)\
**Post date:** [July 6, 2023, 8:46am UTC](https://discourse.slicer.org/t/how-to-fetch-dicom-file-as-next-sample-in-monai-label-extension-in-3d-slicer/30131/4 "2023-07-06T08:46:45Z")

</div>

Thank you so much @diazandr3s .  
Sorry for late reply
