Var dicomFile = (file.FullName) ĭicomDir.AddFile(dicomFile, file. One may have to run some preliminary steps in order to get gdcmgendir to generate the DICOMDIR file. If (DicomFile.HasValidHeader(file.FullName) & () != "dicomdir") The DICOM files in the file-set are assigned File IDs, so that they can be referenced by the DICOMDIR File, which itself, is identified by a File ID of DICOMDIR. Var dirInfo = new DirectoryInfo(path.PathOrFilename) įoreach (var file in dirInfo.GetFiles(". DICOM files can be exchanged between two entities that are capable of receiving image and patient data in DICOM format. The DICOMDIR file contains Dicom Directory information, which makes it easier to access the information contained in the other DICOM files in the file set. Also, it created 2 patients, although there is only one (the patient IDs and names are the same). RadiAnt DICOM Viewer uses DICOMDIRs to quickly generate thumbnail images of all series found on the media. This file includes paths to the DICOM files found on the media. However, in the created DICOMDIR (inspecting it with Visual Studid Debugger), I get this: FileSetID = 'dicomDir.FileSetID' threw an exception of type 'Dicom.DicomDataException'. DICOMDIR is a special DICOM file usually found in the root folder of the CD/DVD media with DICOM studies. I am now trying to use that example from the samples page, where I let fo-dicom automatically build a DICOMDIR (if that is missing) out of a directory.
0 Comments
Leave a Reply. |