model-zoo icon indicating copy to clipboard operation
model-zoo copied to clipboard

wholeBody_ct_segmentation model for DICOM input file

Open ytl0623 opened this issue 1 year ago • 2 comments

Hi, I was used wholeBody_ct_segmentation model to test custom clinical image.

But the format file is NIFITI (.nii), how can I inference the model with DICOM file format.

Is there any method to prove it.

Thanks in advance.

ytl0623 avatar Sep 25 '23 08:09 ytl0623

Hi @ytl0623,

This is a good question. I guess there are two options here:

  • Use monaibundle app in MONAI Label and a DICOM Web server (Slicer, Orthanc) to run batch inference
  • Convert DICOM images to NIfTI/NRRD and run batch inference as it is shown in the tutorial

Hope this helps,

diazandr3s avatar Sep 25 '23 08:09 diazandr3s

If you're using the model via a python script you can just pass the dicom directory to the preprocess like that:

CTDicomFolder = "./data/yourdicomfolder"
configPath = "./models/yourmodelhere/configs/inference.json"

config = ConfigParser()
config.read_config(configPath)
preprocessing = config.get_parsed_content("preprocessing")
data = preprocessing({'image': CTDicomFolder})

ArthurRomansini avatar Nov 22 '23 12:11 ArthurRomansini