📄 imgtodat.1
字号:
.TH IMGTODAT 1 "QCCPACK" "".SH NAMEimgtodat \- converts image to dataset.SH SYNOPSIS.B imgtodat.RB "[\|" \-ts.IR tilesize "\|]".RB "[\|" \-tw.IR tilewidth "\|]".RB "[\|" \-th.IR tileheight "\|]".I imgfile.I datfiles....SH DESCRIPTION.LP.B imgtodatconverts.IR imgfile ,an image, toDAT-format dataset files,.IR datfiles .Two-dimensional tiles are extracted from .I imgfilein raster-scan order, converted to one-dimensionalvectors, and written sequentially to each.IR datfile .Option.B \-ts specifies that square tiles of size.RI sqrt( tilesize ") x sqrt(" tilesize ) are extracted from .I imgfileand written to each.I datfile as vectors with dimension .IR tilesize .The .B \-tw and .B \-th options are used together to specify thatvectors of dimension .IR tilewidth " x " tileheight are written to each.I datfile from rectangular tiles extracted from .IR imgfile .Note: either .B \-ts or .B \-tw and .B \-th must be given..LPIf the input image.IR imgfileis a color image,.B imgtodatexpects three output DAT files specified,.IR datfile_Y ,.IR datfile_U ", and".IR datfile_V for the Y, U, and V components, respectively, of the image.For grayscale images,only one output DAT file is to be specified..LPIf the image.I imgfiledoes not have size that is a multiple of the requested tile size,then tiles are extracted from the upper-left part of the image. Leftoverrows and/or columns at the bottom and right sides of the image, if any,are ignored and not output to.IR datfile ..LP.BR imgtodatcalls.BR QccIMGImageComponentToDataset (3)for each component of the image..LPNote: converting from PGM or PPM images to DAT format implies convertinginteger pixels to floating-point values..SH "SEE ALSO".BR dattoimg (1),.BR QccIMGImageComponentToDataset (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 + -