DicomHeaderParser Constructor |
Namespace: Atalasoft.Imaging.Codec.Dicom
using (FileStream fs = new FileStream("xray.dcm", FileMode.Open, FileAccess.Read, FileShare.Read)) { using (DicomHeaderParser parser = new DicomHeaderParser(fs)) { String imageType = parser.GetString(DicomGroup.Identifying, 0, DicomTag.IdentifyingImageType, 0); uint numFrames = parser.GetUnsignedLong(DicomGroup.ImagePresentation, 0, DicomTag.ImagePresentationNumberOfFrames, 0), 0); } }