Just a suggestion -- libjpeg is widely installed in Unix/Linux land and is
available
for Windows (although it's not installed by default). Why not make pydicom
JPG
decompression conditional on libjpeg?
The same goes for PNG/libpng.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
> Just a suggestion -- libjpeg is widely installed in Unix/Linux land and
> is available
> for Windows (although it's not installed by default). Why not make
> pydicom JPG
> decompression conditional on libjpeg?
I'd be happy to use it if it would work. I did look at this a long time ago
(see
comment from Oct 15, 2008), and only got it to work for 8-bit lossy images
which
isn't very complete given that 12 or 16 bit images are common, and there
are many
lossless techniques. It's a long time ago that I looked at this, but IIRC
there were
some newsgroup discussions about many issues that other libraries such as
dcmtk
and PVRG have had to deal with. I believe dcmtk started with libjpeg but
had to
modify it and add in other codes for the various JPEG flavours allowed by
DICOM. It
may make more sense to adopt their C code if any.
For JPEG, how about the Jasper library? I believe that OsiriX (Mac OS X
DICOM viewer) uses it, and it's licensed under the MIT license.
http://www.ece.uvic.ca/~mdadams/jasper/
OsiriX also uses OpenJPEG, which is BSD licensed. Not sure why the need
for both.
http://www.openjpeg.org/