I am reading a dicom file and want to display the image in the file, but are getting the following error: Unable to load BilinearInterpolation.dll, The specified module could not be loaded.
I am using the following code:
ImageSop sop = new ImageSop(new LocalSopDataSource("C:\\dicom.dcm"));
IPresentationImage image = PresentationImageFactory.Create(sop.Frames[1]);
Bitmap bmp = image.DrawToBitmap(800, 800);
bmp.Save("C:\\testDicom.bmp", System.Drawing.Imaging.ImageFormat.Bmp);
I tried adding the dll manually, but the following error appears:
ClearCanvas SDK\1.5\bin\plugins\BilinearInterpolation.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.
I am using VS 2008 and are creating a WPF C# application!
Thanks