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

dcm2pnm with j2k files #6

Open
adilt opened this issue Feb 19, 2018 · 4 comments
Open

dcm2pnm with j2k files #6

adilt opened this issue Feb 19, 2018 · 4 comments

Comments

@adilt
Copy link

adilt commented Feb 19, 2018

Hi,

First thank you for your source good.
I am facing with one issue.
I used your dcmcjp2k then I implemented dcm2pnm with your j2k lib to created bitmap from these dcm j2k files.
Then I tried to created bitmap with 3 images:
One called 8bits (8 bits allocated, 7 bits stored, high bits 7).
One called 12bits (16 bits allocated, 12 bits stored, high bits 11).
One called 16bits (16 bits allocated, 15 bits stored, high bits 14).

The conversion to bitmap file for 8 bits and 12 bits working.
But the 16bits create a bad file (image distorted) see the linked file.

I opened as well the file 16bits with Osirix, Weasis and MicroDICOM.
Do you have an idea what it?

Thanks,

Adil
16bits
weasis16bits

@DraconPern
Copy link
Owner

Looks like high bits is missing during encode. Does round tripping the image work?

@adilt
Copy link
Author

adilt commented Feb 20, 2018

Do you want me to put the images in j2k here?

@DraconPern
Copy link
Owner

need the uncompressed & compressed dcm file.

@adilt
Copy link
Author

adilt commented Mar 5, 2018

Hi,
here you will find the two orginals files.

mlut_p03.zip
mlut_p07.zip

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

2 participants