Ejemplo n.º 1
0
        public IFramePixelData LoadFramePixelData(LoadFramePixelDataArgs args)
        {
            if (!CanLoadFramePixelData)
            {
                throw new NotSupportedException("Provider doesn't support loading individual frame pixel data.");
            }

            return(_loadFramePixelData(args));
        }
Ejemplo n.º 2
0
		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);
			}
		}
Ejemplo n.º 3
0
		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);
			}
		}
Ejemplo n.º 4
0
		public IFramePixelData GetFramePixelData(int frameNumber)
		{
			var args = new LoadFramePixelDataArgs(this.StudyInstanceUid, this.SeriesInstanceUid, this.SopInstanceUid, frameNumber);
			return HeaderProvider.LoadFramePixelData(args);
		}
Ejemplo n.º 5
0
		private IFramePixelData LoadFramePixelData(int frameNumber)
		{
			var args = new LoadFramePixelDataArgs(this.StudyInstanceUid, this.SeriesInstanceUid, this.SopInstanceUid, frameNumber);
			return ParentSeries.ParentStudy.HeaderProvider.LoadFramePixelData(args);
		}
Ejemplo n.º 6
0
		public IFramePixelData LoadFramePixelData(LoadFramePixelDataArgs args)
		{
			if (!CanLoadFramePixelData)
				throw new NotSupportedException("Provider doesn't support loading individual frame pixel data.");

			return _loadFramePixelData(args);
		}