参考:http://www.blogjava.net/ivanwan/archive/2006/02/20/31657.html
问题说明:
在Ubuntu下使用tifftopnm处理tiff数据时,总是出现提示:
TIFFReadDirectory: Warning, 005179_2.tif: unknown field with tag 33550 (0x830e) encountered. TIFFReadDirectory: Warning, 005179_2.tif: unknown field with tag 33922 (0x8482) encountered. TIFFReadDirectory: Warning, 005179_2.tif: unknown field with tag 34735 (0x87af) encountered. tifftopnm: writing PGM file 005179_2.tif: Can not read scanlines from a tiled image. tifftopnm: Unable to read row 0, plane 0 of input Tiff image. TIFFReadScanline() failed.
TIFFReadDirectory: Warning, 005179_2.tif: unknown field with tag 33550 (0x830e) encountered. TIFFReadDirectory: Warning, 005179_2.tif: unknown field with tag 33922 (0x8482) encountered. TIFFReadDirectory: Warning, 005179_2.tif: unknown field with tag 34735 (0x87af) encountered. TIFF Directory at offset 0x200232 (2097714) Image Width: 703 Image Length: 676 Tile Width: 512 Tile Length: 512 Resolution: 1, 1 (unitless) Bits/Sample: 16 Sample Format: unsigned integer Compression Scheme: None Photometric Interpretation: min-is-black Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Planar Configuration: single image plane Software: IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.10.1.9.1.9.2.11 $ $Date: 2004/09/15 18:42:01EDT $ Tag 33550: 0.025400,0.025400,0.000000 Tag 33922: 0.000000,0.000000,0.000000,393.954788,595.326391,0.000000 Tag 34735: 1,1,0,2,1024,0,1,0,1025,0,1,1
一个真正的二进制编辑器用两种方式来显示文本: 二进制和十六进制格式。你可以在 Vim
里通过转换程序 "xxd" 来达到这效果。该程序是随 Vim 一起发布的。