pydicom / pylibjpeg-libjpeg

A JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use JPEG XT

Kik099 opened this issue · comments

Hello and sorry for the bothering. I have checked the readme but still can't understand how can I use the Decoding JPEG XT on a HDR image. Can you help me with that, or give me a hint?

Thanks, Rodrigo Saraiva

Does this work?

from libjpeg import decode

arr = decode("path/to/file")

Yes it works. We don't need to refer the decode type?

I thought that if we only use the command decode() it would use the predefined type ( ISO/IEC Standard 10918)

And thanks for the help

No, the libjpeg backend will determine the correct JPEG type by looking at the codestream passed to it by decode().

And thanks for the help

No problem