简体   繁体   English

使用无损JPEG压缩读取TIFF和DICOM图像

[英]Reading TIFF and DICOM images with lossless JPEG compression

I'm interested in any way to read TIFF image with lossless JPEG compressed data. 我对以无损JPEG压缩数据读取TIFF图像的任何方式感兴趣。 I've tried ImageMagick, but it fails: 我已经尝试过ImageMagick,但是失败了:

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. 根据ImageMagick论坛的说法,在ImageMagick的正式发行版中没有无损JPEG支持,但是有一个补丁程序可以提供帮助。 The problem is this patch is a bit out of date. 问题是此补丁有点过时了。

I've also tried Leadtools and ImageGear libs; 我也尝试了Leadtools和ImageGear库。 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. 因此,如果有任何方法可以在ImageMagick的当前版本中启用无损JPEG处理,或者有任何可以读取此类图像的库,请告诉我。

I do not know about TIFF, but GDCM does support lossless JPEG. 我不了解TIFF,但GDCM确实支持无损JPEG。 Simply use it this way: 只需以这种方式使用它:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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