Can you please help me in extracting image(binary data) from a dicom file.
Asked
Active
Viewed 3,418 times
1
-
Please post the code you have written so far. People generally do not like to just write your code for you. – Mitch Wheat May 05 '10 at 04:28
1 Answers
2
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;

Community
- 1
- 1

Steve Wranovsky
- 5,503
- 4
- 34
- 52
-
Is there any update to render the dicom file in to picture box using winform+ C# – Pritish Apr 19 '16 at 09:34
-
@Pritish did find any way to render dicom to picture box ? – mahmoud nezar sarhan Oct 14 '17 at 10:30