1金币
直接解析dicom文件 图像层解析时 转码后的RasterImage image怎么保存到本地呢
DicomEngine.Startup();
DicomDataSet ds = new DicomDataSet();
ds.Load(strDicomFileName, DicomDataSetLoadFlags.None);
DicomElement element = ds.FindFirstElement(null, DicomTag.PixelData, true);
Leadtools.Codecs.RasterCodecs codecs = new Leadtools.Codecs.RasterCodecs();
RasterImage image = ds.GetImage(element, 0, 0, RasterByteOrder.Gray,
DicomGetImageFlags.AutoApplyModalityLut | DicomGetImageFlags.AutoApplyVoiLut);
|
|