This is a very narrow and specific question, but I know that there is someone else, so I will hold my fingers and hope that one of you will make this question.
I am working on a WPF application, where one part of it is the Dicom viewer. We would like to use a third-party component for processing Dicom materials, and ClearCanvas is the one we have the best impression on. We can load the Dicom file and get the attributes, but we are having trouble putting the image data in the Source property of the Image control to show it. Anyone with hints on how to do this?
Here is the code that I use to extract image data:
var file = new DicomFile(dicomFilePath); var patientName = file.DataSet.GetAttribute(DicomTags.PatientsName); var imageData = file.DataSet.GetAttribute(DicomTags.PixelData);
I also tried using the ImageViewer library, but still the same data.
var localSopDataSource = new LocalSopDataSource(new DicomFile(dicomFilePath)); var patientName = localSopDataSource.File.DataSet.GetAttribute(DicomTags.PatientsName); var imageData = localSopDataSource.File.DataSet.GetAttribute(DicomTags.PixelData);
image wpf dicom clearcanvas
stiank81
source share