This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void ConvertDicomToText() | |
{ | |
var dicomfile = Dicom.DicomFile.Open(@"D:\dicom\fo-dicom\gh-1083\dx.dcm"); | |
var output = new StringBuilder(); | |
var indentation = 0; | |
WriteDataset(dicomfile.Dataset, indentation, output); | |
System.IO.File.WriteAllText(@"D:\dicom\fo-dicom\gh-1083\dx.txt", output.ToString()); | |
} | |
private static void WriteDataset(DicomDataset ds, int indentation, StringBuilder output) |