写入原始文件不行,暂不清楚问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
87dcebd00b
commit
37b942f0a6
|
|
@ -498,7 +498,9 @@ namespace IRaCIS.Core.SCP.Service
|
||||||
|
|
||||||
var newFragments = new DicomOtherByteFragment(DicomTag.PixelData);
|
var newFragments = new DicomOtherByteFragment(DicomTag.PixelData);
|
||||||
|
|
||||||
var newDataset = dicomFile.Dataset.Clone();
|
var newDicomFile = dicomFile.Clone();
|
||||||
|
|
||||||
|
var newDataset = newDicomFile.Dataset;
|
||||||
|
|
||||||
var dstPd = DicomPixelData.Create(newDataset, true);
|
var dstPd = DicomPixelData.Create(newDataset, true);
|
||||||
|
|
||||||
|
|
@ -569,16 +571,12 @@ namespace IRaCIS.Core.SCP.Service
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
dicomFile.Dataset.AddOrUpdate(newFragments);
|
||||||
|
|
||||||
// 替换原 PixelData
|
|
||||||
dicomFile.Dataset.AddOrUpdate(DicomTag.PixelData, newFragments);
|
|
||||||
|
|
||||||
//dicomFile.Dataset.AddOrUpdate(newFragments);
|
|
||||||
|
|
||||||
|
|
||||||
// 重新保存 dicom 到流
|
// 重新保存 dicom 到流
|
||||||
ms.SetLength(0);
|
ms.SetLength(0);
|
||||||
|
|
||||||
dicomFile.Save(ms);
|
dicomFile.Save(ms);
|
||||||
}
|
}
|
||||||
//传递过来的就是拆分的,但是是没有偏移表的,我需要自己创建偏移表,不然生成缩略图失败
|
//传递过来的就是拆分的,但是是没有偏移表的,我需要自己创建偏移表,不然生成缩略图失败
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue