`
shappy1978
  • 浏览: 678083 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

About libTIFF

 
阅读更多

CCITT Group 4 compression, also referred to as G4 or Modified Modified READ (MMR), is a lossless method of image compression used in Group 4 fax machines defined in the ITU-T T.6 fax standard. It is only used for bitonal (black and white) images. Group 4 compression is based on the Group 3 two-dimensional compression scheme (G3-2D), also known as Modified READ, which is in turn based on the Group 3 one-dimensional compression scheme (G3), also known as Modified Huffman coding. Group 4 compression is available in many proprietary image file formats as well as standardized formats such as TIFF, CALS, and the PDF document format.

G4 offers a small improvement over G3-2D by removing the end of line (EOL) codes. G3 and G4 compression both treat an image as a series of horizontal black strips on a white page. Better compression is achieved when there are fewer unique black dots/lines on the page. Both G3-2D and G4 add a two dimensional feature to achieve greater compression by taking advantage of vertical symmetry. A worst-case image would be an alternating pattern of single-pixel black and white dots offset by one pixel on even/odd lines. G4 compression would actually increase the file size on this type of image. G4 typically achieves a 20:1 compression ratio.[citation needed] For an 8.5"x11" page scanned at 200 DPI, this equates to a reduction from 456.54 kB to 22.82 kB (95% compression ratio).

 

//*********************** About JBIG2

JBIG2 is an image compression standard for bi-level images, developed by the Joint Bi-level Image Experts Group. It is suitable for both lossless and lossy compression. According to a press release[1] from the Group, in its lossless mode JBIG2 typically generates files one third to one fifth the size of Fax Group 4 and one half to one quarter the size of JBIG, the previous bi-level compression standard released by the Group. JBIG2 has been published in 2000 as the international standard ITU T.88,[2] and in 2001 as ISO/IEC 14492.[3]

 

libTiff.Net:

http://bitmiracle.com/libtiff/

https://bitmiracle.github.io/libtiff.net/?topic=html/c3b8a067-673b-42d0-9d38-991c8964d125.htm

https://github.com/BitMiracle/libtiff.net

http://www.remotesensing.org/libtiff/  //C lib

 

* libTiff do not implement JBIG/JIBG2, it just a placeholder in the compression.

//*********************************************

TIFF is the format of choice for archiving important images. TIFF is THE leading commercial and professional image standard. TIFF is the most universal and most widely supported format across all platforms, Mac, Windows, Unix. Data up to 48 bits is supported.

TIFF supports most color spaces, RGB, CMYK, YCbCr, etc. TIFF is a flexible format with many options. The data contains tags to declare what type of data follows. New types are easy to invent, and this versatility can cause incompatibly, but about any program anywhere will handle the standard TIFF types that we might encounter. TIFF can store data with bytes in either PC or Mac order (Intel or Motorola CPU chips differ in this way). This choice improves efficiency (speed), but all major programs today can read TIFF either way, and TIFF files can be exchanged without problem.

Several compression formats are used with TIF. TIF with G3 compression is the universal standard for fax and multi-page line art documents (line art).

For photographic images, TIFF image files can use LZW lossless compression. Lossless means there is no quality loss due to compression. Lossless guarantees that you can always read back exactly what you thought you saved, bit-for-bit identical, without data corruption. This is a critical factor for archiving master copies of important images. Most image compression formats are lossless, with JPG and Kodak PhotoCD PCD files being the main exceptions.

Compression works by recognizing repeated identical strings in the data, and replacing the many instances with one instance, in a way that allows unambiguous decoding without loss. This is fairly intensive work, and any compression method makes files slower to save or open.

LZW is most effective when compressing solid indexed colors (graphics), and is less effective for 24 bit continuous photo images. Featureless areas compress better than detailed areas. LZW is more effective for grayscale images than color. LZW is often counter-productive for 48 bit images, the 16 bit TIF file using LZW will probably be considerably larger than one with no compression. (VueScan 48 bit TIF LZW is an exception to this, using an efficient data type that not all others use ).

LZW is Lempel-Ziv-Welch, named for Israeli researchers Abraham Lempel and Jacob Zif who published IEEE papers in 1977 and 1978 (now called LZ77 and LZ78) which were the basis for most later work in compression. Terry Welch built on this, and published and patented a compression technique that is called LZW now. This is the 1984 Unisys patent (now Sperry) involved in TIF LZW and GIF (and V.42bis for modems). There was much controversy about a royalty for LZW for GIF, but royalty was always paid for LZW for TIF files and for v.42bis modems. International patents recently expired in mid-2004.

It is not necessary to say much about TIF. It works, it's important, it's great, it's practical, it's the standard universal format for high quality images, it simply does the best job the best way. Give TIF very major consideration, both for photos and documents, especially for archiving anything where quality is important.

But TIF files for photo images are generally pretty large. Uncompressed TIFF files are about the same size in bytes as the image size in memory. Regardless of the novice view, this size is a plus, not a disadvantage. Large means lots of detail, and it's a good thing. 24 bit RGB image data is 3 bytes per pixel. That is simply how large the image data is, and TIF LZW stores it with recoverable full quality in a lossless format (and again, that's a good thing). Large disks are inexpensive today.

There are situations for less serious purposes when the full quality may not always be important or necessary. JPEG files are much smaller, and are suitable for non-archival purposes, like photos for read-only email and web page use, when small file size may be more important than maximum quality. JPG has its important uses, but be aware of the large price in quality that you must pay for the small size of JPG, it is not without cost.


分享到:
评论

相关推荐

    libtiff4.1及jpeg zip静态库windows

    Please see the libtiff home page for more information about libtiff and to download source code, executable libraries, and documentation. Until recently TIFF files were limited in size to 4GB. A new...

    LibTiff库

    LibTiff

    libtiff.so.3

    libtiff.so.3

    libtiff for VC&VS.NET tiff库

    libtiff-cygwin-port.tar.gz libtiff-mingw-port.tar.gz libtiff-vc-vs.net-port.rar 说明: 所有这些PORTS项目都是horse_b的个人制作,2001年我为NIDS系统软件SNORT项目做了一个WIN32-Port的项目...

    libtiff库函数配置文件

    在VS2013运行环境下配置libtiff库文件,可以直接打开文件里的项目文件调用libtiff库函数

    libtiff.lib.rar,libtiff库文件,包含.dll以及.lib

    编译libtiff得到的库文件,直接添加后可以直接使用。主要支持windows32位曹祖系统。文件中包含有:libtiff.lib以及libtiff.lib

    libtiff windows 库加头文件

    libtiff windows 库加头文件

    libtiff库C语言版

    libtiff库C语言版(源码)

    libtiff c++

    libtiff引用了jpeg,zip库,一开始我用不着这两个,就把他们去掉了: 1.libtiff\makefile.vc 注释tif_jpeg/pixarlog/zip三行 2.tiffconf.h 注释 JPEG_SUPPORT,PIXARLOG,ZIP三行 编译64位版本是我用了VS2008 x64 ...

    编译好的libtiff4.0.3

    编译好的libtiff4.0.3 编译好的libtiff4.0.3 编译好的libtiff4.0.3

    libtiff的环境配置资源

    tiff库4.0.9版 可以直接用于vs的环境配置 压缩包中包含了使用vs...工程中添加libtiff 的头文件路径 lib路径 链接器中加入libtiff.lib 然后包含如下的头文件 #include "libtiff/tiff.h" #include "libtiff/tiffio.h

    libtiff头文件及库

    用于C++读取三维TIFF的库,libtiff,解压后即可使用,象征性的收2分。

    libtiff读tiff.rar

    libtiff库的源码程序的演示代码,该例子用来演示如何读tiff图像,是初学tiff图像格式的入门程序! (libtiff library procedures demo source code, the examples used to demonstrate how to read tiff images, when...

    libtiff.so.5.2.0

    linux系统下libtiff组件libtiff.so.5.2.0/libtiffxx.so.5.2.0

    libtiff(源码+静态库)

    libtiff,里面有源码和静态库,直接导入VS就可以用了

    LIBTIFF_Setup.zip

    TIFF for Windows 的.exe 安装包 配置过程请详见我的博客: LIBTIFF 配置 (vs2010 + win8 + 64位 ) http://blog.csdn.net/smallstones/article/details/48211409

    libtiff-4.0.9完整版已编译(最新版2018)

    libtiff-4.0.9完整版已编译,动态库在tiff-4.0.9/libtiff/内,提供tiff图像处理基础操作

    c# 版本的 libtiff,找了老半天才找到

    c# 版本的 libtiff,找了老半天才找到 c# 版本的 libtiff,找了老半天才找到

    libtiff编译好的文件

    已经将编译好的libtiff文件上传,请大家放心使用

    bitmiracle.libtiff.net.2.4.638.nupkg

    BitMiracle.LibTiff.NET的安装包nupkg,版本2.4.638,离线安装。需要的可以拿去。 github上的地址:https://github.com/BitMiracle/libtiff.net 可以下载具体用例

Global site tag (gtag.js) - Google Analytics