DraconPern / fmjpeg2koj

JPEG2000 codec for DCMTK using openjpeg
Apache License 2.0
49 stars 34 forks source link

dcm2pnm with j2k files #6

Open adilt opened 6 years ago

adilt commented 6 years ago

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 commented 6 years ago

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

adilt commented 6 years ago

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

DraconPern commented 6 years ago

need the uncompressed & compressed dcm file.

adilt commented 6 years ago

Hi, here you will find the two orginals files.

mlut_p03.zip mlut_p07.zip