📄 tiffcp.1
字号:
.\" $Header: /cvsroot/osrs/libtiff/man/tiffcp.1,v 1.4 2003/06/10 06:15:36 dron Exp $.\".\" Copyright (c) 1988-1997 Sam Leffler.\" Copyright (c) 1991-1997 Silicon Graphics, Inc..\".\" Permission to use, copy, modify, distribute, and sell this software and .\" its documentation for any purpose is hereby granted without fee, provided.\" that (i) the above copyright notices and this permission notice appear in.\" all copies of the software and related documentation, and (ii) the names of.\" Sam Leffler and Silicon Graphics may not be used in any advertising or.\" publicity relating to the software without the specific, prior written.\" permission of Sam Leffler and Silicon Graphics..\" .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. .\" .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE .\" OF THIS SOFTWARE..\".if n .po 0.TH TIFFCP 1 "February 18, 2001".SH NAMEtiffcp \- copy (and possibly convert) a.SM TIFFfile.SH SYNOPSIS.B tiffcp[.I options].I "src1.tif ... srcN.tif dst.tif".SH DESCRIPTION.I tiffcpcombines one or more files created accordingto the Tag Image File Format, Revision 6.0into a single.SM TIFFfile.Because the output file may be compressed using a differentalgorithm than the input files,.I tiffcpis most often used to convert between different compressionschemes..PPBy default, .I tiffcpwill copy all the understood tags in a.SM TIFFdirectory of an inputfile to the associated directory in the output file..PP.I tiffcpcan be used to reorganize the storage characteristics of datain a file, but it is explicitly intended to not alter or convertthe image data content in any way..SH OPTIONS.TP.B \-b imagesubtract the following monochrome image from all othersprocessed. This can be used to remove a noise biasfrom a set of images. This bias image is typlically animage of noise the camera saw with its shutter closed..TP.B \-BForce output to be written with Big-Endian byte order.This option only has an effect when the output file is created oroverwritten and not when it is appended to..TP.B \-CSuppress the use of ``strip chopping'' when reading imagesthat have a single strip/tile of uncompressed data..TP.B \-cSpecify the compression to use for data written to the output file:.B none for no compression,.B packbitsfor PackBits compression,.B lzwfor Lempel-Ziv & Welch compression,.B jpegfor baseline JPEG compression,.B zipfor Deflate compression,.B g3for CCITT Group 3 (T.4) compression,and.B g4for CCITT Group 4 (T.6) compression.By default.I tiffcpwill compress data according to the value of the.I Compressiontag found in the source file..IPThe.SM CCITTGroup 3 and Group 4 compression algorithms can onlybe used with bilevel data..IPGroup 3 compression can be specified together with severalT.4-specific options:.B 1dfor 1-dimensional encoding,.B 2dfor 2-dimensional encoding,and.B fillto force each encoded scanline to be zero-filled so that theterminating EOL code lies on a byte boundary.Group 3-specific options are specified by appending a ``:''-separatedlist to the ``g3'' option; e.g..B "\-c g3:2d:fill"to get 2D-encoded data with byte-aligned EOL codes..IP.SM LZWcompression can be specified together with a .I predictorvalue.A predictor value of 2 causeseach scanline of the output image to undergo horizontaldifferencing before it is encoded; a valueof 1 forces each scanline to be encoded without differencing.LZW-specific options are specified by appending a ``:''-separatedlist to the ``lzw'' option; e.g..B "\-c lzw:2"for.SM LZWcompression with horizontal differencing..TP.B \-fSpecify the bit fill order to use in writing output data.By default,.I tiffcpwill create a new file with the same fill order as the original.Specifying.B "\-f lsb2msb"will force data to be written with the FillOrder tag set to.SM LSB2MSB,while.B "\-f msb2lsb"will force data to be written with the FillOrder tag set to.SM MSB2LSB..TP.B \-lSpecify the length of a tile (in pixels)..I tiffcpattempts to set the tile dimensions sothat no more than 8 kilobytes of data appear in a tile..TP.B \-LForce output to be written with Little-Endian byte order.This option only has an effect when the output file is created oroverwritten and not when it is appended to..TP.B \-MSuppress the use of memory-mapped files when reading images..TP.B \-pSpecify the planar configuration to use in writing image datathat has one 8-bit sample per pixel.By default,.I tiffcpwill create a new file with the same planar configuration asthe original.Specifying.B "\-p contig"will force data to be written with multi-sample data packedtogether, while.B "\-p separate"will force samples to be written in separate planes..TP.B \-rSpecify the number of rows (scanlines) in each strip of datawritten to the output file.By default (or when value.B 0is specified),.I tiffcpattempts to set the rows/stripthat no more than 8 kilobytes of data appear in a strip. If you specifyspecial value.B -1it will results in infinite number of the rows per strip. The entire imagewill be the one strip in that case..TP.B \-sForce the output file to be written with data organized in strips(rather than tiles)..TP.B \-tForce the output file to be written wtih data organized in tiles(rather than strips).options can be used to force the resultant image to be writtenas strips or tiles of data, respectively..TP.B \-wSpecify the width of a tile (in pixels)..I tiffcpattempts to set the tile dimensions sothat no more than 8 kilobytes of data appear in a tile..I tiffcpattempts to set the tile dimensions sothat no more than 8 kilobytes of data appear in a tile..TP.B \-,={character}substitute {character} for ',' in parsing image directory indicesin files. This is necessary if filenames contain commas.Note that ',=' with whitespace immediately following will disablethe special meaning of the ',' entirely. See examples..SH EXAMPLESThe following concatenates two files and writes the result using .SM LZWencoding:.RS.nftiffcp -c lzw a.tif b.tif result.tif.fi.RE.PPTo convert a G3 1d-encoded .SM TIFFto a single strip of G4-encoded data the following might be used:.RS.nftiffcp -c g4 -r 10000 g3.tif g4.tif.fi.RE(1000 is just a number that is larger than the number of rows inthe source file.)To extract a selected set of images from a multi-imageTIFF file, the file name may be immediately followed by a ',' separated list of image directory indices. The first imageis always in directory 0. Thus, to copy the 1st and 3rdimages of image file "album.tif" to "result.tif":.RS.nftiffcp album.tif,0,2 result.tif.fi.REGiven file "CCD.tif" whose first image is a noise biasfollowed by images which include that bias,subtract the noise from all those images following it(while decompressing) with the command:.RS.nftiffcp -c none -b CCD.tif CCD.tif,1, result.tif.fi.REIf the file above were named "CCD,X.tif", the "-,=" option wouldbe required to correctly parse this filename with image numbers,as follows:.RS.nftiffcp -c none -,=% -b CCD,X.tif CCD,X%1%.tif result.tif.SH "SEE ALSO".IR pal2rgb (1),.IR tiffinfo (1),.IR tiffcmp (1),.IR tiffmedian (1),.IR tiffsplit (1),.IR libtiff (3)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -