Exemple #1
0
 protected override byte[] CreateNormalizedPixelData()
 {
     using (VolumeSlicer slicer = new VolumeSlicer(this.Parent.Volume, this.Parent.SlicerParams, this.Parent.SeriesInstanceUid))
     {
         return(slicer.CreateSliceNormalizedPixelData(this.ThroughPoint));
     }
 }
Exemple #2
0
 public byte[] GetPixelData()
 {
     using (var slicer = new VolumeSlicer(_volumeReference, _slicerParams))
     {
         return(slicer.CreateSliceNormalizedPixelData(_throughPoint));
     }
 }
		protected void Reslice()
		{
			base.SuspendSliceSopsChangedEvent();
			try
			{
				base.ClearAndDisposeSops();

				using (VolumeSlicer slicer = new VolumeSlicer(base.Volume, _slicerParams))
				{
					foreach (ISopDataSource dataSource in slicer.CreateSliceSops(Uid))
					{
						base.SliceSops.Add(new MprSliceSop(dataSource));
					}
				}
			}
			finally
			{
				base.ResumeSliceSopsChangedEvent(true);
			}
		}
Exemple #4
0
        protected void Reslice()
        {
            base.SuspendSliceSopsChangedEvent();
            try
            {
                base.ClearAndDisposeSops();

                using (VolumeSlicer slicer = new VolumeSlicer(base.Volume, _slicerParams, base.Uid))
                {
                    foreach (ISopDataSource dataSource in slicer.CreateSlices())
                    {
                        base.SliceSops.Add(new MprSliceSop(dataSource));
                    }
                }
            }
            finally
            {
                base.ResumeSliceSopsChangedEvent(true);
            }
        }
			protected override byte[] CreateNormalizedPixelData()
			{
				using (VolumeSlicer slicer = new VolumeSlicer(this.Parent.Volume, this.Parent.SlicerParams, this.Parent.SeriesInstanceUid))
				{
					return slicer.CreateSliceNormalizedPixelData(this.ThroughPoint);
				}
			}
Exemple #6
0
		public ISopDataSource[] CreateSops(bool signed, Modality modality, Vector3D voxelSpacing, Vector3D sliceAxisX, Vector3D sliceAxisY, Vector3D sliceAxisZ)
		{
			var seriesInstanceUid = DicomUid.GenerateUid().UID;
			var slicerParams = new VolumeSlicerParams(sliceAxisX, sliceAxisY, sliceAxisZ);
			var volume = CreateVolume(signed, modality, voxelSpacing);
			using (VolumeSlicer slicer = new VolumeSlicer(volume, slicerParams, seriesInstanceUid))
			{
				return new List<ISopDataSource>(slicer.CreateSlices()).ToArray();
			}
		}
Exemple #7
0
		public byte[] GetPixelData()
		{
			using (var slicer = new VolumeSlicer(_volumeReference, _slicerParams))
			{
				return slicer.CreateSliceNormalizedPixelData(_throughPoint);
			}
		}