Replies: 1 comment
-
|
Hello! That would be exactly what use dicom_pixeldata::Transcode;
let mut obj = dicom_object::open_file(file)?;
// lookup target transfer syntax
let ts = dicom_transfer_syntax_registry::TransferSyntaxRegistry
.get(dicom_dictionary_std::uids::EXPLICIT_VR_LITTLE_ENDIAN)
.expect("Explicit VR Little Endian always exists");
obj.transcode(ts)?;
// write to file
obj.write_to_file(output)?; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Thank you a lot for this great library.
I have a use case where I need to convert DICOM files that have compressed pixel data (e.g. JPEG, etc.) into uncompressed DICOMs using Explicit VR Little Endian, so that they can be ingested by a third-party system, similar to what
pydicom.Dataset.decompress()does in Python (https://pydicom.github.io/pydicom/stable/reference/generated/pydicom.pixels.decompress.html).What I need to know is whether there is a simple way in dicom-rs to:
As I’m still learning Rust, any guidance or example (even minimal) would be greatly appreciated.
Thank you very much for any guidance!
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions