public DicomFile GetCompleteSop() { //Just get the entire thing from the loader. var args = new LoadDicomFileArgs(StudyInstanceUid, SeriesInstanceUid, SopInstanceUid, true, true); return(HeaderProvider.LoadDicomFile(args)); }
private void LoadFullHeader() { if (_fullHeader != null) { return; //We've already got it without the pixel data. } var args = new LoadDicomFileArgs(this.StudyInstanceUid, this.SeriesInstanceUid, this.SopInstanceUid, true, false); _fullHeader = _dicomFileLoader.LoadDicomFile(args); _metaInfo = null; }
private void LoadFullHeader(bool includePixelData) { if (_fullHeader != null) { return; } var args = new LoadDicomFileArgs(this.StudyInstanceUid, this.SeriesInstanceUid, this.SopInstanceUid, true, includePixelData); _fullHeader = ParentSeries.ParentStudy.HeaderProvider.LoadDicomFile(args); _metaInfo = null; }
public DicomFile LoadDicomFile(LoadDicomFileArgs args) { try { var client = new StreamingClient(_wadoUri); var file = new DicomFile(); using (var stream = client.RetrieveImageHeader(_aeTitle, args.StudyInstanceUid, args.SeriesInstanceUid, args.SopInstanceUid)) { file.Load(stream); } return(file); } catch (Exception e) { throw TranslateStreamingException(e); } }
public DicomFile LoadDicomFile(LoadDicomFileArgs args) { try { Uri uri = new Uri(string.Format(StreamingSettings.Default.FormatWadoUriPrefix, _hostName, _wadoServicePort)); var client = new StreamingClient(uri); var file = new DicomFile(); using (var stream = client.RetrieveImageHeader(_aeTitle, args.StudyInstanceUid, args.SeriesInstanceUid, args.SopInstanceUid)) { file.Load(stream); } return(file); } catch (Exception e) { throw TranslateStreamingException(e); } }