9/10/2023 0 Comments Open dcm file on mac![]() ![]() I think my original problem was my directory path was not written correctly because I have tried it all three ways and they all work. LoadedNodeIDs.extend(DICOMUtils.loadPatientByUID(patientUID)) ![]() With DICOMUtils.TemporaryDICOMDatabase() as db: LoadedNodeIDs = # this list will contain the list of all loaded node IDs dicomDataDir = "c:/my/folder/with/dicom-files" # input folder with DICOM files Files are imported into a temporary DICOM database, so the current Slicer DICOM database is not impacted. All the registered plugins are evaluated and the one with the highest confidence will be used to load the data. This code loads all DICOM objects into the scene from a file folder. How to load DICOM files into the scene from a folder I am using the script provided in the python script repository given below: No error is being given with my current implementation but nothing is happening. I will attach a picture of my Slicer screen. I am using the latest version of Slicer 4.11.0 and Python 3.6.7. I am simply trying to practice using this scripting method). I am expecting my folder full of dcm files to be imported as they would normally when using the DICOM import GUI (which works well. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |