Enet4 / dicom-rs

Rust implementation of the DICOM standard
https://dicom-rs.github.io
Apache License 2.0
403 stars 75 forks source link

Decode a single frame via object pixel data decoding API #421

Closed Enet4 closed 9 months ago

Enet4 commented 9 months ago

Although it was possible to retrieve a single frame from a blob of decoded pixel data, the API provided by PixelDecoder required the user to decode all of the frames first. This PR extends this trait for the possibility to decode only one of the frames in a DICOM object. dicom-toimage has also been optimized by using it.