[Dcmlib] My first JPEG LL / J2k images
Mathieu Malaterre
mathieu.malaterre at kitware.com
Thu Jul 6 20:18:20 CEST 2006
Jean-Pierre Roux wrote:
> Mathieu Malaterre wrote:
>
>> go here:
>> http://www.creatis.insa-lyon.fr/~malaterre/gdcm/jpeg/
>>
>> Ok I don't understand why vtkgdcmViewer is only showing up the first
>> frame only...
>>
>>
>
> --> Easy : only the first frame is 'non zero'
> try :
> ReWrite filein=yourImageJ2K.dcm fileout=uncompressedImage.dcm
Ok I just confirmed that jpeg2000 is broken for multiframes in GDCM.
Unfortunately AFAIK openjpeg needs to know the length of the jpeg
stream. So far we assumed there was only one j2k stream so appending all
fragment would always work. But for multiple images, when we append all
images, openjpeg stop decompressing when finding the first j2k end of
stream (and discard the rest). That's whay we could only load the first
frame.
I have ask the openjpeg team for a solution,
Mathieu
Ps: I can provide a code that work either for multiframes or single
frame (need recompilation).
More information about the Dcmlib
mailing list