-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering high bit depth image data #9
Comments
Hi Richard! We could definitely create a “HighBitDepthLutPipeline” by allowing the user to set |
Certainly correct that most displays only show 8-bit, though some consumer displays can now do 10-bit colour such as the current MacBook Pros. I think browser support for actually using this via native image formats is fairly limited, probably until AVIF or similar become more widespread. Still, that aside, one reason for it being more immediately useful to render the full dynamic range with this library is it allows the full underlying data to be extracted & decompressed from its native transfer syntax and then stored in another system/format where transforms such as windowing can be applied dynamically to it during display, as they can make full use of the entire range in the image data, even on an 8-bit display. This corresponds to DICOM tags such as |
Hi Richard! Regarding the dynamic change of In any case, I see your point! Although the library was created with rendering-on-monitors in mind, there could be use cases in which the rendered pixel data should be stored in different formats that do support 16 bit pixel values. |
Hi Pantelis,
I'm looking at how the library is handling high bit depths, 10-bit or 12-bit grayscale data in particular. It looks like it's mostly supported but the
DicomImage.render()
method is converting down to 0-255 via a& 0xff
. Would it be reasonable to add support for returning an Int32Array instead to support both higher bit depths as well as signed pixel data? The latter can come in via uncompressed transfer syntaxes as well as formats such as JPEG 2k.Thanks!
The text was updated successfully, but these errors were encountered: