pub fn load_raw(path: &Path) -> Result<RawImage>Expand description
Decode the pixel data of a DICOM file into a RawImage.
Applies the modality LUT (rescale slope/intercept) but not the VOI
LUT. Decimates oversized images so that the longest side is at most
2048 pixels (see MAX_DISPLAY_DIM).
§Errors
Returns an error when the file can’t be opened, pixel data can’t be decoded, or the layout isn’t supported (e.g. RGB / multi-sample inputs the viewer doesn’t yet handle).