Esempio n. 1
0
        //TODO (cr Oct 2009): return Slice, remove SeriesUID
        private VolumeSliceSopDataSource CreateSlice(int sliceIndex, Vector3D throughPoint)
        {
            float thicknessAndSpacing      = Math.Abs(GetSliceSpacing());
            VolumeSliceSopDataSource slice = new VolumeSliceSopDataSource(_volume.Clone(), _slicerParams, new[] { throughPoint });

            slice[DicomTags.SliceThickness].SetFloat32(0, thicknessAndSpacing);
            slice[DicomTags.SpacingBetweenSlices].SetFloat32(0, thicknessAndSpacing);
            slice[DicomTags.SeriesInstanceUid].SetString(0, _seriesInstanceUid);
            slice[DicomTags.InstanceNumber].SetInt32(0, sliceIndex + 1);
            return(slice);
        }
 public VolumeSliceSopFrameData(int frameNumber, VolumeSliceSopDataSource parent) : base(frameNumber, parent)
 {
 }