I am trying to render images created from a linear accelerator (DICOM RT Images). When using the instruction on the Wiki... I end up with a WriteableBitmap with all zeros... a black image. The code I am using is...
ImageManager.SetImplementation(WPFImageManager.Instance);
WriteableBitmap wBM = theDI.RenderImage().As<WriteableBitmap>();
The DICOM image has some unusual window and leveling values, because the linac uses units called "CU" for this image, which are approx. 0.21 and 0.11 respectively. Are these values being less than 1 causing this problem? When I specifically set the WindowWidth and WindowCenter values to something more reasonable in the code, it does not change the image... still all black. Any ideas?
Attached is the DICOM image in question. And note, I can display this image in all sorts of other programs (ImageJ for example) and it displays just fine using PyDICOM as well, so there is nothing inherently wrong with the image.