I'm using the ClearCanvas.Dicom library in my application and working on a project only containing gray value images (CT and RTDose). I'm impress how easy DICOM can be i C# - thank you guys.
I would like to access the decompressed image data from the DICOM file and load the gray values (HU as integers) or dose (doubles). I need to do some image processing (enhancement, segmentation and registration) using a seperate numerical library.
I do NOT need W/L or any references to the ImageViewer like drawing the bitmap as suggested elsewhere in the forum:
ImageSop imgSop = new ImageSop(fname); Frame frame = imgSop.Frames[1];
IPresentationImage pi = PresentationImageFactory.Create(frame);
Bitmap bmp = pi.DrawToBitmap(frame.Columns, frame.Rows);
So, how do I get the gray values - will DicomPixelData do the job?