I would like to import DICOM files in my own module by calling the import function in the “DICOM” module without actually switching to the “DICOM” module. Is this possible to do?
I was thinking of calling the import functions in the “DICOM” module in the backend, but the DICOM module is written in python and my module is in C++.
The python code is something like this:
plugin = slicer.modules.dicomPlugins’DICOMScalarVolumePlugin’
loadables = plugin.examineFiles(dicom_fileList)
if len(loadables) > 1:
print(“Multiple DICOM scans detected! Not proceeding”)
volume = plugin.load(loadables)