icbtoraw converts an image cube (ICB-format) into a raw-format file consisting of a 3D array of integer samples (voxels).
The option -bpv specifies the number of bits that each voxel value contains. bits_per_voxel must be between 1 and 32. If bits_per_voxel is <= 8, then each sample is stored in rawfile as the least significant bits in a single byte; otherwise, if bits_per_voxel is <= 16, then each sample is stored in rawfile as the least significant bits of two consecutive bytes (the default); otherwise, if bits_per_voxel is <= 32, then each sample is stored in rawfile as the least significant bits of four consecutive bytes. -bend and -lend indicate whether the raw file is to be written in big-endian or little-endian format, respectively. If neither is specified, big-endian is assumed.
The options -bsq, -bil, and -bip indicate the scanning order of the rawfile; see QccHYPRaw(3) . If none of -bsq, -bil, or -bip are present, BSQ is assumed.