Beispiel #1
0
        public string[] GetIDs()
        {
            this.gdcmReader = new gdcm.ImageReader();
            this.gdcmReader.SetFileName(this.filePath);

            if (this.gdcmReader.Read())
            {
                this.file = this.gdcmReader.GetFile();
                return new string[] { this.ReadTag(0x20, 0xD), this.ReadTag(0x20, 0xE) };
            }
            else
                return new string[] { };
        }
Beispiel #2
0
        public bool Read()
        {
            this.gdcmReader = new gdcm.ImageReader();
            this.gdcmReader.SetFileName(this.filePath);

            if (this.gdcmReader.Read())
            {
                this.file = this.gdcmReader.GetFile();
                this.image = this.gdcmReader.GetImage();
                this.ReadToBitmap();
                this.ReadTags();

                return true;
            }
            else
                return false;
        }