pevers / gdcm-rs

GDCM bindings for Rust
7 stars 6 forks source link

jpeg conversion, maybe interesting to you? #1

Open vsaase opened 3 years ago

vsaase commented 3 years ago

Hi, just found your repo. Here is something I did a while ago to decompress jpg DICOM, maybe of interest to you?

https://github.com/vsaase/gdcmjpeg-sys

cheers, Victor

pevers commented 3 years ago

Hi @vsaase ! Thanks a lot!

I'll definitely have a look. I am pretty new to FFI and Rust, so I'll hopefully have some inspiration to fix and finish multi-frame support in https://github.com/Enet4/dicom-rs (even though we want to move away from the GDCM bindings eventually and have a native Rust implementation).

vsaase commented 3 years ago

hi, I am new to Rust myself, these were some of the first experiments.

Somewhere on github I saw a quite short decoder for JPEG-LS, maybe it was charls, but i think to remember something else written purely in C, which should be reasonably easy to port to Rust.

The build step with gdcm is a bit painful as it requires cmake, ninja, python etc, especially when targetting multiple platforms. long term goal for me would be to have a full dicom library running in WASM.

pevers commented 3 years ago

hi, I am new to Rust myself, these were some of the first experiments.

Somewhere on github I saw a quite short decoder for JPEG-LS, maybe it was charls, but i think to remember something else written purely in C, which should be reasonably easy to port to Rust.

The build step with gdcm is a bit painful as it requires cmake, ninja, python etc, especially when targetting multiple platforms. long term goal for me would be to have a full dicom library running in WASM.

Yes that would be awesome! I would love to see this in the browser as well. Especially for large CT scans on top of something like WebGPU.