Search code examples
dicomclearcanvas

clearcanvas if file is a dicomfile


How to check if file is a dicomfile?


Solution

  • The Clearcanvas DicomFile.Load method throws an exception if the file is not a valid dicomfile. On the clearcanvas forums. I've found a similar topic. They are saying that if you ónly want to see if the file is a valid dicom file, you can add the following parameter to the DicomFile.Load method: DicomReadOptions.DoNotStorePixelDataInDataSet, this will speed it up a bit.