Expand description
Pixel-data decode + CPU windowing.
load_raw decodes a DICOM file once into rescaled f32 values plus
metadata about default window and photometric inversion. render_rgba
then turns those values into RGBA8 with a window/level applied — fast
enough to call on every drag delta for interactive W/L.
Structs§
- Decoded
Frame - RGBA8 buffer returned by
decode_to_rgba. - RawImage
- Rescaled monochrome pixel values, ready for interactive windowing.
Enums§
- Window
Setting - Which VOI window to apply when calling
decode_to_rgba.
Functions§
- auto_
window - Pick a sensible default window for
raw. - decode_
to_ rgba - Convenience: load + render in one shot. Used by tests.
- load_
raw - Decode the pixel data of a DICOM file into a
RawImage. - render_
rgba - Apply a window/level and convert a
RawImageto RGBA8.