public IFramePixelData LoadFramePixelData(LoadFramePixelDataArgs args) { if (!CanLoadFramePixelData) { throw new NotSupportedException("Provider doesn't support loading individual frame pixel data."); } return(_loadFramePixelData(args)); }
public IFramePixelData LoadFramePixelData(LoadFramePixelDataArgs args) { try { var client = new StreamingClient(_wadoUri); var result = client.RetrievePixelData(_aeTitle, args.StudyInstanceUid, args.SeriesInstanceUid, args.SopInstanceUid, args.FrameNumber - 1); return new ImageServerFramePixelData(result); } catch (Exception e) { throw TranslateStreamingException(e); } }
public IFramePixelData LoadFramePixelData(LoadFramePixelDataArgs args) { try { var uri = new Uri(string.Format(StreamingSettings.Default.FormatWadoUriPrefix, _hostName, _wadoServicePort)); var client = new StreamingClient(uri); var result = client.RetrievePixelData(_aeTitle, args.StudyInstanceUid, args.SeriesInstanceUid, args.SopInstanceUid, args.FrameNumber - 1); return new ImageServerFramePixelData(result); } catch (Exception e) { throw TranslateStreamingException(e); } }
public IFramePixelData GetFramePixelData(int frameNumber) { var args = new LoadFramePixelDataArgs(this.StudyInstanceUid, this.SeriesInstanceUid, this.SopInstanceUid, frameNumber); return HeaderProvider.LoadFramePixelData(args); }
private IFramePixelData LoadFramePixelData(int frameNumber) { var args = new LoadFramePixelDataArgs(this.StudyInstanceUid, this.SeriesInstanceUid, this.SopInstanceUid, frameNumber); return ParentSeries.ParentStudy.HeaderProvider.LoadFramePixelData(args); }
public IFramePixelData LoadFramePixelData(LoadFramePixelDataArgs args) { if (!CanLoadFramePixelData) throw new NotSupportedException("Provider doesn't support loading individual frame pixel data."); return _loadFramePixelData(args); }