We use cornerstone libraries to build our viewer, and we encountered a problem. If a dicom image doesn’t have Window Center and Window Width tags, these values are calculated by Cornerstone and displayed on the image. However, changing presets or window level would not update the image. As we drag the mouse, new WW and WC values are displayed, but the image remains the same. I logged the viewport.voi.windowCenter and viewport.voi.windowWidth, and they seem being updated. I tried cornerstone.updateImage, but it didn’t update the image.
We don’t see any problem if Window Center ad Window Width tags have values, but in X-rays these tags could be empty. How can I align the image with the changing ww and wc values?
Any advice, information, direction, or hint would be highly appreciated. Thanks!