Table of Contents

NAME

icptodat - converts image component to dataset

SYNOPSIS

icptodat [-ts tilesize] [-tw tilewidth] [-th tileheight] icpfile datfile

OPTIONS

-ts tilesize
Integer. Size of square tiles
-tw tilewidth
Integer. Horizontal width of rectangular tiles
-th tileheight
Integer. Vertical height of rectangular tiles

DESCRIPTION

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) .

SEE ALSO

dattoicp(1) , QccIMGImageComponentToDataset(3) , QccPackIMG(3) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads