简体   繁体   中英

Reading TIFF and DICOM images with lossless JPEG compression

I'm interested in any way to read TIFF image with lossless JPEG compressed data. I've tried ImageMagick, but it fails:

convert.exe: Unsupported JPEG process: SOF type 0xc3. `JPEGLib' @ error/tiff.c/TIFFErrors/562.

According to ImageMagick forum, there is no lossless JPEG support in official distribution of ImageMagick, but there is a patch that can help. The problem is this patch is a bit out of date.

I've also tried Leadtools and ImageGear libs; they worked well, but they are too much expensive for me.

So if there is any way to enable lossless JPEG processing in current versions of ImageMagick or there is any library, that can read such kind of images, please tell me.

I do not know about TIFF, but GDCM does support lossless JPEG. Simply use it this way:

$ gdcmconv --raw jpeg.dcm uncompress.dcm
$ gdcm2pnm uncompress.dcm uncompress.ppm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM