Creating DICOM Images from raw Pixel data
Sometimes we are asked the question of how to create a new DICOM image from imaging source (such as a detector) that outputs raw pixel data. With the help of DicomImage.SetPixelFile method, this becomes fairly simple. The following C# code shows how to load a single frame CT pixel data file from disk and create a new DicomImage object for display purposes only: DicomObjects.NET SetPixelFile method DicomImage img = new DicomImage(); // add all relevant group 28 attributes to image to tell DicomObjects how to display img.