开发者

How to get an image from a given dicom file using clearcanvas libraries in c#

开发者 https://www.devze.com 2022-12-29 09:20 出处:网络
Can开发者_高级运维 you please help me in extracting image(binary data) from a dicom file.The question is not completely clear.If you want a bitmap for display purposes, then this is basically a duplic

Can开发者_高级运维 you please help me in extracting image(binary data) from a dicom file.


The question is not completely clear. If you want a bitmap for display purposes, then this is basically a duplicate of this question. Please see the accepted answer.

If you are just trying to extract the pixel data into a byte array, then you can use code like this:


DicomFile theFile = new DicomFile("c:\tmp.dcm");
theFile.Load();
byte[] thePixels = theFile.DataSet[DicomTags.PixelData].Values;

0

精彩评论

暂无评论...
验证码 换一张
取 消