📄 dattoimg.1
字号:
.TH DATTOIMG 1 "QCCPACK" "".SH NAMEdattoimg \- converts dataset to image.SH SYNOPSIS.B dattoimg.RB "[\|" \-tw.IR tilewidth "\|]".RB "[\|" \-th.IR tileheight "\|]".I imagewidth.I imageheight.I datfiles....I imgfile.SH DESCRIPTION.LP.B dattoimgconverts one or more datasets,.IR datfile ,in DAT format,to an image,.IR imgfile .Each one-dimensional vector in each.I datfileis assembled into a two-dimensional tileand then placed in.IR imgfile .The tiles are read sequentially from.I datfileand placed into.I imgfilein raster-scan order.The options.B \-tw and .B \-th are used to specify thatrectangular tiles of dimension .I tilewidth x .I tileheight are written to.I imgfile from vectors of the same size from .IR datfile .In the absence of .B \-tw and .BR \-th , square tiles of .RI sqrt( v ") x sqrt(" v )are written to imgfile, where .I v is the vector dimensionof the vectors in.I datfile .RI ( v " must be a perfect square)."Note: both.B \-twand .B \-thmust be specified for rectangular tiles, and, if specified,.IR tilewidth " * " tileheightmust be equal to.IR v ..LP.BR dattoimgdetermines the type of the output image by calling.BR QccIMGImageDetermineType (3).If the output image is determined to be grayscale, then exactly one.I datfileis expected to be specified to.BR dattoimg .Otherwise, if the output image is determined to be a color image, thenexactly three.I datfilesare expected to be specified to.BR dattoimg ,and the three.I datfilesgive the Y, U, and V image components in that order..LP.I imagewidthand.I imageheightgive the size of .I imgfileand must be specified.If.I imagewidthor.I imageheightare not multiples of the requested tile size,additional rows and/or columns are appended to the bottomand/or right of the image as necessary to meet therequested size.These rows and/or columns are duplicates of the last full row orcolumn available in the image..LP.BR dattoimgcalls.BR QccIMGDatasetToImageComponent (3)for each image component in the image..LPNote: converting from DAT format to PGM or PPM image format implies convertingfloating-point values to integer-valued pixels.Floating-point values are consequently rounded down and clipped tothe range 0-255; see.BR QccIMGImageComponentClipPixel (3)..SH "SEE ALSO".BR imgtodat (1),.BR QccIMGImageDetermineType (3),.BR QccIMGImageComponentClipPixel (3),.BR QccIMGDatasetToImageComponent (3),.BR QccPackIMG (3),.BR QccPack (3).SH AUTHORCopyright (C) 1997-2009 James E. Fowler.\" The programs herein are free software; you can redistribute them and/or.\" modify them under the terms of the GNU General Public License.\" as published by the Free Software Foundation; either version 2.\" of the License, or (at your option) any later version..\" .\" These programs are distributed in the hope that they will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the.\" GNU General Public License for more details..\" .\" You should have received a copy of the GNU General Public License.\" along with these programs; if not, write to the Free Software.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -