@Riesmeier, can you be more specific? I am encountering some issues while using the same DCMTK module. I have a multiframe image that I want to display. Before rendering each frame I pass to DicomImage::setWindow()
the values corresponding to DCM_WindowCenter
and DCM_WindowWidth
(the "tag path" to them is PerFunctionalGroupsSequence -> Item X
-> FrameVOILUTSequence -> Item X
-> WindowCenter/WindowWidth, where X
is the frame number).
This way, my program displays the image darker (lower contrast and lower luminosity) than it is displayed by other softwares (DICOMscope, Weasis), so I believe something is wrong with my implementation.
I tried another approach: I used the window center and window width corresponding to the first frame for all frames in the image. This way, I see no difference in luminosity and contrast to how the image is displayed in the above mentioned viewers. However, I think this is technically wrong.
What would you do to display a multiframe image where each frame has its own DCM_WindowCenter
and DCM_WindowWidth
?
Does DicomImage::setWindow()
expect raw values corresponding to DICOM tags or do I have to preprocess DCM_WindowCenter
and DCM_WindowWidth
before feeding them to DicomImage::setWindow()
? If yes, what kind of preprocessing?