icptodat converts icpfile, a ICP-format image component, to dataset datfile, a DAT-format file. Two-dimensional tiles are extracted from icpfile in raster-scan order, converted to one-dimensional vectors, and written sequentially to datfile. Option -ts specifies that square tiles of size sqrt(tilesize) x sqrt(tilesize) are extracted from icpfile and written to datfile as vectors with dimension tilesize. The -tw and -th options are used together to specify that vectors of dimension tilewidth x tileheight are written to datfile from rectangular tiles extracted from icpfile. Note: either -ts or -tw and -th must be given.
If the image component icpfile does not have size that is a multiple of the requested tile size, then tiles are extracted from the upper-left part of the image. Leftover rows and/or columns at the bottom and right sides of the image, if any, are ignored and not output to datfile.
icptodat calls QccIMGImageComponentToDataset(3) .