Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dcm2mnc and JPEG compression #67

Closed
andrewjanke opened this issue May 5, 2017 · 3 comments
Closed

dcm2mnc and JPEG compression #67

andrewjanke opened this issue May 5, 2017 · 3 comments

Comments

@andrewjanke
Copy link
Member

andrewjanke commented May 5, 2017

I note that dcm2mnc will silently fail on images with JPEG compression (you get black/blank images). Specifically ones that say things like this:

# Dicom-Data-Set
# Used TransferSyntax: JPEG Lossless, Non-hierarchical, 1st Order Prediction

I recognise that this is a licencing thing, meaning we'd have to include a JPEG licence in dcm2mnc to make this happen but am curious if others have ways around this. OSIRIX is one way, fork a decode process to something else?

For now I do something like this:

for i in ls -1 *.dcm; do dcmdjpeg $i unjpg/$i; done

And then the conversion is all fine. Can we link/call/something dcmdjpeg?

@rdvincent
Copy link
Member

There is actually some code in there now to handle jpeg compression, and to crash if the compression is something we don't know how to handle. There are open-source libraries for most of the useful transfer encodings.

@andrewjanke
Copy link
Member Author

andrewjanke commented May 6, 2017 via email

@vfonov
Copy link
Member

vfonov commented Jul 7, 2020

fixed by 157d053

@vfonov vfonov closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants